[ Index ]

PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09)

title

Body

[close]

/template/inc_default/ -> guestbook.tmpl (source)

   1  <p style="background-color:#D7E3E2 "><strong>List of banned words - make a listing divided by simple space &quot; &quot;.
   2  </strong>if possible try to insert no HTML chars.<br />shit porno fuck and so on </p>
   3  <p>
   4  <!--BAN_START//-->
   5  shit     fuck    porno    sex http: www.
   6  <!--BAN_END//-->
   7  </p>
   8  <p style="background-color:#D7E3E2 "><strong>List of banned IPs - make a listing divided by simple space &quot; &quot;.
   9  </strong>if possible try to insert no HTML chars.<br />192.168.000.001 and so on </p>
  10  <p>
  11  <!--BAN_IP_START//-->
  12  192.168.0.0
  13  <!--BAN_IP_END//-->
  14  </p>
  15  <p style="background-color:#D7E3E2 "><strong>Replace banned words by this HTML code. </strong><br>banned OR &lt;img src=&quot;...&quot;&gt; </p>
  16  <p>
  17  <!--BAN_REPLACE_START//--> 
  18  ***
  19  <!--BAN_REPLACE_END//-->
  20  </p>
  21  <p style="background-color:#D7E3E2 "><strong>Guestbook HTML form and form error message <br>
  22    </strong>{EMAIL}, {NAME}, {URL}, {MSG}, {CAPTCHA}, [IMAGE_ERROR]{IMAGE_ERROR}[/IMAGE_ERROR]</p>
  23  <p>
  24  <!--FORM_START//-->
  25  <div class="gbInputForm">
  26      <h1>Your guestbook entry</h1>
  27  <!--FORM_ERROR_START//-->
  28      <p class="gbError">
  29    <ul>
  30   <!-- you can replace {ERROR_xxx} by translated error message -->
  31  [ERROR_EMAIL]            <li>{ERROR_EMAIL}</li>[/ERROR_EMAIL]
  32  [ERROR_NAME]            <li>{ERROR_NAME}</li>[/ERROR_NAME]
  33  [ERROR_URL]            <li>{ERROR_URL}</li>[/ERROR_URL]
  34  [ERROR_IMG]            <li>{ERROR_IMG}</li>[/ERROR_IMG]
  35  [ERROR_IMGUPLOAD]            <li>{ERROR_IMGUPLOAD}</li>[/ERROR_IMGUPLOAD]
  36  [ERROR_IMGFORMAT]            <li>{ERROR_IMGFORMAT}</li>[/ERROR_IMGFORMAT]
  37  [ERROR_IMGWRITE]            <li>{ERROR_IMGWRITE}</li>[/ERROR_IMGWRITE]
  38  [ERROR_IMGSAVE]            <li>{ERROR_IMGSAVE}</li>[/ERROR_IMGSAVE]
  39  [ERROR_IMGSIZE]            <li>{ERROR_IMGSIZE}</li>[/ERROR_IMGSIZE]
  40  [ERROR_CAPTCHA]            <li>{ERROR_CAPTCHA}</li>[/ERROR_CAPTCHA]
  41    </ul>
  42      
  43  <!--FORM_ERROR_END//-->
  44      <div class="gbFormFields">
  45      
  46          <p>
  47              <label for="guestbook_email">email (obligatory)</label>
  48              <input name="guestbook_email" type="text" id="guestbook_email" class="gbInputField" value="{EMAIL}" size="50" maxlength="250" />
  49          </p>
  50          
  51          <p>
  52              <label for="guestbook_name">name (obligatory)</label>
  53              <input name="guestbook_name" type="text" id="guestbook_name" class="gbInputField" value="{NAME}" size="50" maxlength="500" />
  54          </p>
  55          
  56          <p>
  57              <label for="guestbook_url">website</label>
  58              <input name="guestbook_url" type="text" id="guestbook_url" class="gbInputField" value="{URL}" size="50" maxlength="1000" />
  59          </p>
  60          
  61          <p>
  62              <label for="guestbook_msg">message</label>
  63              <textarea name="guestbook_msg" cols="50" rows="6" id="guestbook_msg" class="gbInputTextarea">{MSG}</textarea>
  64          </p>
  65  
  66  <!--IMAGE_UPLOAD_START//-->
  67  
  68          <p>
  69              <label for="guestbook_image">image</label>
  70              <input name="guestbook_image" id="guestbook_image" type="file" class="gbInputField" />
  71          </p>
  72          
  73  <!--IMAGE_UPLOAD_END//-->
  74  
  75          <p>
  76              <label>display</label>
  77              <input name="guestbook_show" type="radio" value="0" id="guestbook_show0"{GBSHOW_0} />
  78              <label for="guestbook_show0">show email</label>
  79              <input name="guestbook_show" type="radio" value="1" id="guestbook_show1"{GBSHOW_1} />
  80              <label for="guestbook_show1">hide email</label>
  81              <input name="guestbook_show" type="radio" value="2" id="guestbook_show2"{GBSHOW_2} />
  82              <label for="guestbook_show2">as &quot;info at mail dot com&quot;</label>
  83          </p>
  84  
  85  <!--CAPTCHA_START//-->
  86          
  87          <p>
  88              <label for="guestbook_captcha">code</label>
  89              <input name="guestbook_captcha" type="text" id="guestbook_captcha" class="gbInputFieldCaptcha" value="" size="10" maxlength="10" />
  90              {CAPTCHA}
  91          </p>
  92          
  93  <!--CAPTCHA_END//-->
  94  
  95          <p class="gbFormButton">
  96              <input name="guestbook_send" type="submit" id="guestbook_send" value="sign guestbook" />
  97          </p>
  98  
  99      </div>
 100  </div>
 101  <!--FORM_END//-->
 102  
 103  <p style="background-color:#D7E3E2 "> <strong>Success Text - displayed when guestbook
 104      entry created</strong><br>
 105      {NAME}</p>
 106  <p>
 107  <!--FORM_SUCCESS_START//-->
 108  <div class="gbSuccess">Thanks {NAME}! You have successfully signed our guestbook.</div>
 109  <!--FORM_SUCCESS_END//-->
 110  
 111  <p style="background-color:#D7E3E2 "> <strong>Guestbook navigation<br>
 112    </strong><span class="chatlist">{FIRST:HTML}, {LAST:HTML}, {BACK:HTML}, {NEXT:HTML},
 113    {JUMP:LISTTEXT|BUTTON|SPACER}, {PAGE:COUNT:SPACER|WRAP_ACTIVE_BEFORE|AFTER}<br>
 114  (HTML = link text or image tag, like &lt;img src=&quot;back.gif&quot; border=&quot;0&quot; /&gt;)</span></p>
 115  <p>
 116  <!--NAV_START//-->
 117  <div class="gbNav">
 118          
 119          <div class="gbNavLeft">
 120              <strong>{FIRST:&lt;&lt;} {BACK:&lt;}</strong> 
 121              {PAGE:5:&nbsp;|<strong>|</strong>} 
 122              <strong>{NEXT:&gt;} {LAST:&gt;&gt;}</strong>
 123          </div>
 124          
 125          <div class="gbNavRight">
 126              {ARCHIVE:%Y/%m|alle Eintr&auml;ge|go|&nbsp;}&nbsp;{JUMP:page|go|&nbsp;}
 127          </div>
 128  
 129  </div>
 130  <!--NAV_END//-->
 131  
 132  <p style="background-color:#D7E3E2 "> <strong>Guestbook listing<br>
 133    </strong>{EMAIL}, {NAME}, {URL:HTML}, {MSG}, {URL}, {ID},
 134    {DBID}, {TIMESTAMP:FORMAT} (<a href="http://www.php.net/manual/en/function.date.php" target="_blank" style="text-decoration:underline">FORMAT&nbsp;=&nbsp;d.m.Y&nbsp;or&nbsp;H:i:s</a>),
 135    [IF_IMAGE]{IMAGE:WIDTHxHEIGHTxZOOM}[/IF_IMAGE] </p>
 136  <p>
 137    <!--GUESTBOOK_START//-->
 138    {FORM} {NAV}
 139  <div class="gbEntries">
 140  <!--GUESTBOOK_ENTRY_START//-->
 141      <div class="gbListEntry" id="entry-{DBID}">
 142          <h1><span class="entryID">entry #{ID} by </span>[URL]<a href="{URL}" target="_blank">{NAME}</a>[/URL][URL_ELSE]{NAME}[/URL_ELSE]</h1>
 143          <h2>{TIMESTAMP:m/d/Y H:i}[EMAIL] &#8212; <a href="mailto:{EMAIL}">email</a>[/EMAIL]</h2>
 144          [IMAGE]<div class="gbImage">{IMAGE:50x50x1}</div>[/IMAGE]
 145          [MSG]<p>{MSG}</p>[/MSG]
 146      </div>
 147  <!--GUESTBOOK_ENTRY_END//-->
 148  </div>
 149  <!--GUESTBOOK_END//-->
 150  
 151  <p style="background-color:#D7E3E2 "><strong>Comments of edited articles</strong><strong> </strong>[c]...[/c]<br>
 152    normal HTML code like &lt;span style=&quot;color:#FF3300&quot;&gt;|&lt;/span&gt;</p>
 153  <p>
 154  <!--COMMENT_START//--> 
 155  <span class="gbComment">|</span>
 156  <!--COMMENT_END//-->
 157  </p>
 158  
 159  <p style="background-color:#D7E3E2 "><strong>Information should be shown in case login necessary to see guestbook/comment or post possible for users logged
 160      in only</strong><br> 
 161      use normal HTML code, this  code snippet will replace post form or whole guestbook. Use new template in case you need different texts.
 162  </p>
 163  <!--LOGIN_INFO_START//--> 
 164  <p>
 165  Guestbook is accessible for users logged in only.<br />
 166  You can post to this guestbook only when you are logged in.<br />
 167  Login or sign in here.
 168  </p>
 169  <!--LOGIN_INFO_END//--> 


Generated: Wed Dec 30 05:55:15 2009 Cross-referenced by PHPXref 0.7