1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <title>Geeklog Documentation - Configuration</title>
5 <link rel="stylesheet" type="text/css" href="../docstyle.css" title="Dev Stylesheet">
9 <p><a href="http://www.geeklog.net/" style="background:transparent"><img src="../images/newlogo.gif" alt="Geeklog" width="243" height="90"></a></p>
10 <div class="menu"><a href="index.html">Geeklog Documentation</a> - Configuration</div>
12 <h1>Geeklog Configuration</h1>
14 <h2>Configuration files</h2>
16 <p>Previous versions of Geeklog used one huge file called <tt>config.php</tt>
17 that held all the core configuration options. As of Geeklog 1.5.0, most of
18 the configuration options have been moved to the database and can now be
19 reached from the <b>Configuration</b> admin panel within Geeklog.</p>
21 <p>For technical reasons, some configuration options still have to be
22 stored in files. There are two such configuration files now:
24 <li><a href="#db-config.php">db-config.php</a></li>
25 <li><a href="#siteconfig.php">siteconfig.php</a></li>
27 <p>These files are updated
28 when you install Geeklog and you will not normally have to edit them
31 <h1>Configuration options</h1>
33 <p>Geeklog's configuration options are grouped like this:</p>
36 <li><a href="#site">Site</a></li>
37 <li><a href="#stories">Stories and Trackback</a></li>
38 <li><a href="#theme">Theme</a></li>
39 <li><a href="#blocks">Blocks</a></li>
40 <li><a href="#users">Users and Submissions</a></li>
41 <li><a href="#images">Images</a></li>
42 <li><a href="#languages">Languages and Locale</a></li>
43 <li><a href="#misc">Miscellaneous</a></li>
46 <h2><a name="site">Site</a></h2>
48 <h3><a name="site_site">Site: Site</a></h3>
50 <table border="1" width="100%">
51 <tr><th style="width:8%">Variable</th>
52 <th style="width:29%">Default Value</th>
53 <th style="width:63%">Description</th></tr>
55 <td valign="top"><a name="desc_site_url">site_url</a></td>
56 <td valign="top">http://www.example.com</td>
57 <td valign="top">Base URL for your site (no trailing slash)</td></tr>
59 <td valign="top"><a name="desc_site_admin_url">site_admin_url</a></td>
60 <td valign="top">http://www.example.com/admin</td>
61 <td valign="top">Base URL of the admin area of your site (no trailing slash).
62 You won't have to change this normally, but some hosting services use a
63 predefined "admin" directory for other purposes. In this case, you can
64 rename Geeklog's <tt>admin</tt> directory and adjust the URL accordingly to
65 avoid conflicts.</td></tr>
67 <td valign="top"><a name="desc_site_name">site_name</a></td>
68 <td valign="top">Geeklog Site</td>
69 <td valign="top">Name of your site</td></tr>
71 <td valign="top"><a name="desc_site_slogan">site_slogan</a></td>
72 <td valign="top">Another Nifty Geeklog Site</td>
73 <td valign="top">Slogan for your site. This is added to the HTML title field.</td></tr>
75 <td valign="top"><a name="desc_microsummary_short">microsummary_short</a></td>
76 <td valign="top">GL:</td>
77 <td valign="top">Prefix to use for a <a href="http://wiki.mozilla.org/Microsummaries">microsummary</a>.</td></tr>
79 <td valign="top"><a name="desc_site_disabled_msg">site_disabled_msg</a></td>
80 <td valign="top">'Geeklog Site is down. Please come back soon.'</td>
81 <td valign="top">This contains the message to display when a Geeklog site is
82 disabled. If the text begins with "http:" then visitors are redirected to
84 <strong>Note:</strong> The option actually disable the site can be found
85 in the <tt>siteconfig.php</tt> file.</td></tr>
87 <td valign="top"><a name="desc_copyrightyear">copyrightyear</a></td>
88 <td valign="top"><i>(disabled)</i></td>
89 <td valign="top">Set this to the year you want to appear in the copyright notice of your
90 site's footer. If not set, Geeklog will use the current year.</td></tr>
92 <td valign="top"><a name="desc_url_rewrite">url_rewrite</a></td>
93 <td valign="top">false</td>
94 <td valign="top">Enable (true) or disable (false) URL rewriting.<br>
95 Also see the section on <a href="#url-rewrite">URL Rewriting</a> below.</td></tr>
97 <td valign="top"><a name="desc_meta_tags">meta_tags</a></td>
98 <td valign="top">disabled</td>
99 <td valign="top">Enabled - The meta tags for stories and topics will be displayed. If none are found, then the default will be used. The default will also be used for any page that doesn't have meta tags.<br>
100 Enabled (Default for Homepage only) - The same as Enabled except, the defaults are used only for the Homepage.<br>
101 Disabled - Meta tags are not used.</td></tr>
103 <td valign="top"><a name="desc_meta_description">meta_description</a></td>
104 <td valign="top">'Geeklog, the open source content management system designed with security in mind.'</td>
105 <td valign="top">The default meta description for your site.</td></tr>
107 <td valign="top"><a name="desc_meta_keywords">meta_keywords</a></td>
108 <td valign="top">'Geeklog, Blog, Content Management System, CMS, Open Source, Security'</td>
109 <td valign="top">The default meta keywords for your site.</td></tr>
112 <h3><a name="site_mail">Site: Mail</a></h3>
114 <table border="1" width="100%">
115 <tr><th style="width:8%">Variable</th>
116 <th style="width:29%">Default Value</th>
117 <th style="width:63%">Description</th></tr>
119 <td valign="top"><a name="desc_site_mail">site_mail</a></td>
120 <td valign="top">admin@example.com</td>
121 <td valign="top">E-mail address for all admin mail</td></tr>
123 <td valign="top"><a name="desc_noreply_mail">noreply_mail</a></td>
124 <td valign="top">noreply@example.com</td>
125 <td valign="top">This is the sender's address of emails sent by the system when users register etc.
126 This should be either the same as $_CONF['site_mail'] or a bouncing address
127 to prevent spammers from getting your email address by registering on the site.
128 If this is NOT the same as above, there will be a message in sent messages
129 that replying to those emails is recommended.</td></tr>
130 <tr><td valign="top"><a name="desc_mail_settings_backend">backend</a></td>
131 <td valign="top">mail</td>
132 <td valign="top">Used to select how to send email. Can be one of 'smtp',
133 'sendmail', or 'mail'.</td></tr>
134 <tr><td valign="top"><a name="desc_mail_settings_sendmail_path">sendmail_path</a></td>
135 <td valign="top"><tt>/usr/bin/sendmail</tt></td>
136 <td valign="top">If you chose 'sendmail' for the backend setting, this
137 specifies the complete path to the sendmail binary.</td></tr>
138 <tr><td valign="top"><a name="desc_mail_settings_sendmail_args">sendmail_args</a></td>
139 <td valign="top"><tt>''</tt> <i>(empty)</i></td>
140 <td valign="top">If you chose 'sendmail' for the backend setting, this
141 variable can be used to pass additional parameters to the sendmail
143 <tr><td valign="top"><a name="desc_mail_settings_host">host</a></td>
144 <td valign="top">smtp.example.com</td>
145 <td valign="top">If you chose 'smtp' for the backend setting, this is the
146 SMTP server to use.</td></tr>
147 <tr><td valign="top"><a name="desc_mail_settings_port">port</a></td>
148 <td valign="top">25</td>
149 <td valign="top">If you chose 'smtp' for the backend setting, this is the
150 port number to talk to on the SMTP server.</td></tr>
151 <tr><td valign="top"><a name="desc_mail_settings_auth">auth</a></td>
152 <td valign="top">0</td>
153 <td valign="top">If you chose 'smtp' for the backend setting, set this to
154 <code>1</code> if your SMTP server requires authorization, and
155 <code>0</code> (or leave the field empty) if it doesn't.</td></tr>
156 <tr><td valign="top"><a name="desc_mail_settings_username">username</a></td>
157 <td valign="top">smtp-username</td>
158 <td valign="top">If you chose 'smtp' for the backend setting, this is the
159 name of your SMTP account.</td></tr>
160 <tr><td valign="top"><a name="desc_mail_settings_password">password</a></td>
161 <td valign="top">smtp-password</td>
162 <td valign="top">If you chose 'smtp' for the backend setting, this is the
163 password for your SMTP account.</td></tr>
166 <h3><a name="site_syndication">Site: Syndication</a></h3>
168 <p>Geeklog can export its headlines to a news feed in various formats (RSS, RDF, and Atom). This will let you share your news with other sites (Hint: Create a Portal block from Geeklog's Block menu to import news feeds from other sites).</p>
170 <p>Starting with Geeklog 1.3.9, feeds can be created and configured from
171 Geeklog's Admin menu ("Content Syndication"). The following settings will only
172 be used as the <em>default settings</em> for any new feeds that you create from
175 <table border="1" width="100%">
176 <tr><th style="width:8%">Variable</th>
177 <th style="width:29%">Default Value</th>
178 <th style="width:63%">Description</th></tr>
179 <tr><td valign="top"><a name="desc_backend">backend</a></td>
180 <td valign="top">1</td>
181 <td valign="top">Create a feed file for the stories in rdf_file (0=no, 1=yes)</td></tr>
182 <tr><td valign="top"><a name="desc_rdf_file">rdf_file</a></td>
183 <td valign="top">HTML path with "/backend/geeklog.rss" suffix</td>
184 <td valign="top">File system path for the feed file. This file allows you to share your site's headlines with others</td></tr>
185 <tr><td valign="top"><a name="desc_rdf_limit">rdf_limit</a></td>
186 <td valign="top">10</td>
187 <td valign="top">Limit the number of stories to export to the news feed. If the value for this setting is a number, the feed will hold this many stories. If the number is followed by a lower-case 'h' (e.g. 24h) it denotes the number of hours from which to chose the stories.</td></tr>
188 <tr><td valign="top"><a name="desc_rdf_storytext">rdf_storytext</a></td>
189 <td valign="top">0</td>
190 <td valign="top">If this value is 1, then the entire introtext of the stories will be included in the news feed. Any number greater than 1 limits the introtext to that many characters (e.g. a value of 80 would only include the first 80 characters from the introtext in the feed). If set to 0, the introtext is not included in the feed.</td></tr>
191 <tr><td valign="top"><a name="desc_rdf_language">rdf_language</a></td>
192 <td valign="top">en-gb</td>
193 <td valign="top">Value for the feed's language tag. Depending on your site's language and operating system, this may differ from the language setting in the locale (see above).<br><strong>Example:</strong> The PHP locale setting for German is 'de_DE' while the correct language setting for a German RSS feed would be 'de-DE' (note the dash instead of the underscore).</td></tr>
194 <tr><td valign="top"><a name="desc_syndication_max_headlines">syndication_max_headlines</a></td>
195 <td valign="top">0</td>
196 <td valign="top">Upper limit for the max. number of headlines when <em>importing</em> a feed (into a portal block). The limit can also be set for each individual portal block in the block menu.<br>
197 When set to 0, all headlines are imported.</td></tr>
200 <h3><a name="site_paths">Site: Paths</a></h3>
202 <table border="1" width="100%">
203 <tr><th style="width:8%">Variable</th>
204 <th style="width:29%">Default Value</th>
205 <th style="width:63%">Description</th></tr>
206 <tr><td valign="top"><a name="desc_path_html">path_html</a></td>
207 <td valign="top">/path/to/geeklog/public_html/</td>
208 <td valign="top">Path to your web tree directory for your site (trailing slash necessary). This directory holds all the web pages used by Geeklog.</td></tr>
209 <tr><td valign="top"><a name="desc_path_log">path_log</a></td>
210 <td valign="top">/path/to/geeklog/logs/</td>
211 <td valign="top">File system path for the log files</td></tr>
212 <tr><td valign="top"><a name="desc_path_language">path_language</a></td>
213 <td valign="top">/path/to/geeklog/language/</td>
214 <td valign="top">location of the Geeklog language files</td></tr>
215 <tr><td valign="top"><a name="desc_backup_path">backup_path</a></td>
216 <td valign="top">/path/to/geeklog/backups/</td>
217 <td valign="top">location where mysqldump (see above) will store database backups</td></tr>
218 <tr><td valign="top"><a name="desc_path_data">path_data</a></td>
219 <td valign="top">/path/to/geeklog/data/</td>
220 <td valign="top">File system path for the data directory, used e.g. for the user batch add feature</td></tr>
221 <tr><td valign="top"><a name="desc_path_images">path_images</a></td>
222 <td valign="top">/path/to/geeklog/public_html/images/</td>
223 <td valign="top">Path where Geeklog expects to find its images, including
224 user photos and images for stories.</td>
227 <h3><a name="site_pear">Site: PEAR</a></h3>
229 <table border="1" width="100%">
230 <tr><th style="width:8%">Variable</th>
231 <th style="width:29%">Default Value</th>
232 <th style="width:63%">Description</th></tr>
233 <tr><td valign="top"><a name="desc_have_pear">have_pear</a></td>
234 <td valign="top"><code>false</code></td>
235 <td valign="top">Whether you have <a href="http://pear.php.net/">PEAR</a>
236 installed on your server (<code>= true</code>) or not
237 (<code>= false</code>). When set to <code>false</code>, Geeklog will
238 use the PEAR packages installed in <code>$_CONF['path_pear']</code>
239 (see below)</td></tr>
240 <tr><td valign="top"><a name="desc_path_pear">path_pear</a></td>
241 <td valign="top"><tt>/path/to/geeklog/system/pear/</tt></td>
242 <td valign="top">When <code>$_CONF['have_pear']</code> (see above) is set
243 to <code>false</code>, this is the path where Geeklog expects to find
244 the <a href="http://pear.php.net/">PEAR</a> packages it requires (e.g.
245 PEAR::Mail for sending emails).</td></tr>
248 <h3><a name="site_mysql">Site: MySQL</a></h3>
250 <p>As the name implies, these options are only relevant when your site is
251 running on a MySQL database. They are ignored when using MS SQL.</p>
253 <table border="1" width="100%">
254 <tr><th style="width:8%">Variable</th>
255 <th style="width:29%">Default Value</th>
256 <th style="width:63%">Description</th></tr>
257 <tr><td valign="top"><a name="desc_allow_mysqldump">allow_mysqldump</a></td>
258 <td valign="top">1</td>
259 <td valign="top">Enable or disable the backup functionality (1 = on,
261 <tr><td valign="top"><a name="desc_mysqldump_path">_DB_mysqldump_path</a></td>
262 <td valign="top">/usr/bin/mysqldump</td>
263 <td valign="top">Complete path to the <a
264 href="http://www.mysql.com/doc/en/mysqldump.html">mysqldump</a> utility
265 (part of MySQL) for making backups of your Geeklog database.</td></tr>
266 <tr><td valign="top"><a name="desc_mysqldump_options">mysqldump_options</a></td>
267 <td valign="top">-Q</td>
268 <td valign="top">Here you can include additional options for the <a
269 href="http://www.mysql.com/doc/en/mysqldump.html">mysqldump</a> call
270 that Geeklog uses to create a backup from your database.</td></tr>
271 <tr><td valign="top"><a name="desc_mysqldump_filename_mask">mysqldump_filename_mask</a></td>
272 <td valign="top">geeklog_db_backup_%Y_%m_%d_%H_%M_%S.sql</td>
273 <td valign="top">Mask to use for the names of the backup files. See <a
274 href="#date_formats">date formats</a> below for details of the date and
275 time in the file name.</td></tr>
278 <h3><a name="site_search">Site: Search</a></h3>
280 <table border="1" width="100%">
281 <tr><th style="width:8%">Variable</th>
282 <th style="width:29%">Default Value</th>
283 <th style="width:63%">Description</th></tr>
285 <td valign="top"><a name="desc_search_style">search_style</a></td>
286 <td valign="top">'google'</td>
287 <td valign="top">Sets the style of the results page. Can be either 'google' or 'table'</td></tr>
289 <td valign="top"><a name="desc_search_limits">search_limits</a></td>
290 <td valign="top">10,15,25,30</td>
291 <td valign="top">The result limits a user can select. Each value <b>must</b> be separated with a comma.</td></tr>
293 <td valign="top"><a name="desc_num_search_results">num_search_results</a></td>
294 <td valign="top">30</td>
295 <td valign="top">The default number of results per page. Should be a value from 'search_limits' above.</td></tr>
297 <td valign="top"><a name="desc_search_show_limit">search_show_limit</a></td>
298 <td valign="top">true</td>
299 <td valign="top">Shows (= true) or hides (= false) the page limits selection box.</td></tr>
301 <td valign="top"><a name="desc_search_show_sort">search_show_sort</a></td>
302 <td valign="top">true</td>
303 <td valign="top">Shows (= true) or hides (= false) the 'Sort By' selection box. (When using the table style it will enable/disable column sorting)</td></tr>
305 <td valign="top"><a name="desc_search_show_num">search_show_num</a></td>
306 <td valign="top">true</td>
307 <td valign="top">Shows (= true) or hides (= false) the result number.</td></tr>
309 <td valign="top"><a name="desc_search_show_type">search_show_type</a></td>
310 <td valign="top">true</td>
311 <td valign="top">Shows (= true) or hides (= false) the plugin name the result came from.</td></tr>
313 <td valign="top"><a name="desc_search_separator">search_separator</a></td>
314 <td valign="top"> &gt; (Space before and after character)</td>
315 <td valign="top">The character to display between result type sub groups.</td></tr>
317 <td valign="top"><a name="desc_search_def_keytype">search_def_keytype</a></td>
318 <td valign="top">'phrase'</td>
319 <td valign="top">Default to one of these search methods:<ul>
320 <li>'all': results must contain all of the search terms.</li>
321 <li>'any': results may contain any of the search terms.</li>
322 <li>'phrase': search for the exact phrase as entered. (default)</li>
327 <h2><a name="stories">Stories and Trackback</a></h2>
329 <h3><a name="stories_story">Stories and Trackback: Story</a></h3>
331 <table border="1" width="100%">
332 <tr><th style="width:8%">Variable</th>
333 <th style="width:29%">Default Value</th>
334 <th style="width:63%">Description</th></tr>
336 <td valign="top"><a name="desc_maximagesperarticle">maximagesperarticle</a></td>
337 <td valign="top">5</td>
338 <td valign="top">max. number of images you can have in a story</td></tr>
340 <td valign="top"><a name="desc_limitnews">limitnews</a></td>
341 <td valign="top">10</td>
342 <td valign="top">Number of stories to limit the index page to, this same number will appear in the older stuff block</td></tr>
344 <td valign="top"><a name="desc_minnews">minnews</a></td>
345 <td valign="top">1</td>
346 <td valign="top">Minimum numbers of stories than can appear on a topic page</td></tr>
348 <td valign="top"><a name="desc_contributedbyline">contributedbyline</a></td>
349 <td valign="top">1</td>
350 <td valign="top">Show author username to public, and enable search by username (0=no, 1=yes)</td></tr>
352 <td valign="top"><a name="desc_hideviewscount">hideviewscount</a></td>
353 <td valign="top">0</td>
354 <td valign="top">Whether to show (= 0) or to hide (= 1) the number of views
355 a story has had.</td></tr>
357 <td valign="top"><a name="desc_hideemailicon">hideemailicon</a></td>
358 <td valign="top">0</td>
359 <td valign="top">When set to 1, this will disable the ability to send a story by email. It
360 will also hide the email icon from stories and the "Email Article To a
361 Friend" from the Story Options block.</td></tr>
363 <td valign="top"><a name="desc_hideprintericon">hideprintericon</a></td>
364 <td valign="top">0</td>
365 <td valign="top">When set to 1, this will disable display of a story in a "printer
366 friendly" format. It will also hide the printer icon from stories and
367 the "View Printable Version" from the Story Options
370 <td valign="top"><a name="desc_allow_page_breaks">allow_page_breaks</a></td>
371 <td valign="top">1</td>
372 <td valign="top">Allow usage of the <code>[page_break]</code> tag in stories (when set to 1), so that stories can spread over multiple pages.</td></tr>
374 <td valign="top"><a name="desc_page_break_comments">page_break_comments</a></td>
375 <td valign="top">last</td>
376 <td valign="top">When the <code>[page_break]</code> tag is allowed in stories (see above), where should the story's comments be displayed: <code>'last'</code> = on the story's last page only, <code>'first'</code> = on the first page only, <code>'all'</code> = on every page.</td></tr>
378 <td valign="top"><a name="desc_article_image_align">article_image_align</a></td>
379 <td valign="top">right</td>
380 <td valign="top">Which side of article the topic image should be shown (right or left)</td></tr>
382 <td valign="top"><a name="desc_show_topic_icon">show_topic_icon</a></td>
383 <td valign="top">1</td>
384 <td valign="top">Default setting for new stories and story submissions: Whether to show the topic icon (1) or not (0).</td></tr>
386 <td valign="top"><a name="desc_draft_flag">draft_flag</a></td>
387 <td valign="top">0</td>
388 <td valign="top">Default setting for new stories created by Story Admins: Whether the story's draft flag should be set (1) or not (0).</td></tr>
390 <td valign="top"><a name="desc_frontpage">frontpage</a></td>
391 <td valign="top">0</td>
392 <td valign="top">Default setting for new stories and story submissions: Whether the story should appear on the site's frontpage (1) or only in its topic's page (0). Please note that for stories submitted to the archive topic, this setting will be ignored and the story will <em>not</em> appear on the frontpage.</td></tr>
394 <td valign="top"><a name="desc_hide_no_news_msg">hide_no_news_msg</a></td>
395 <td valign="top">0</td>
396 <td valign="top">When set to 1, hide the "No News To Display" message on the index page (e.g. when viewing a topic without any stories in it)</td></tr>
398 <td valign="top"><a name="desc_hide_main_page_navigation">hide_main_page_navigation</a></td>
399 <td valign="top">0</td>
400 <td valign="top">When set to 1, this option will hide the "Google paging"
401 navigation from index.php, i.e. from the site's frontpage and all topic
402 pages. This may come in handy for more advanced layouts but will of course
403 prevent people from easily reaching older articles.</td></tr>
405 <td valign="top"><a name="desc_onlyrootfeatures">onlyrootfeatures</a></td>
406 <td valign="top">0</td>
407 <td valign="top">This restricts the featuring of stories to root user(s). If you have several story admins who can create content that is not visible to other story admins,
408 and such a content is featured, another admin might think its ok to feature his own content. To prevent
409 that two admins unknowingly take features from each other away, only a user who can see all content (= root)
410 should be able to feature a story.</td></tr>
412 <td valign="top"><a name="desc_aftersave_story">aftersave_story</a></td>
413 <td valign="top">'list'</td>
414 <td valign="top">Which page to go to after a story has been saved:
416 <li>'item': display the story</li>
417 <li>'list': show admin's list of stories (default)</li>
418 <li>'home': display the site's homepage</li>
419 <li>'admin': go to the "Admin Home" page, i.e. Command & Control</li>
421 <strong>Note:</strong> This option is ignored for story submissions. Editing
422 a story submission will always send you back to the submission queue (i.e.
423 "Admin Home" aka Command & Control).</td></tr>
426 <h3><a name="stories_trackback">Stories and Trackback: Trackback</a></h3>
428 <table border="1" width="100%">
429 <tr><th style="width:8%">Variable</th>
430 <th style="width:29%">Default Value</th>
431 <th style="width:63%">Description</th></tr>
433 <td valign="top"><a name="desc_trackback_enabled">trackback_enabled</a></td>
434 <td valign="top">true</td>
435 <td valign="top">Enable (true) or disable (true) <a href="http://en.wikipedia.org/wiki/Trackback">trackback</a> comments. This applies to both sending and receiving trackback comments.</td></tr>
437 <td valign="top"><a name="desc_trackback_code">trackback_code</a></td>
438 <td valign="top">0</td>
439 <td valign="top">Default value for new stories: Trackback enabled (0) or disabled (-1)</td></tr>
441 <td valign="top"><a name="desc_trackbackspeedlimit">trackbackspeedlimit</a></td>
442 <td valign="top">300</td>
443 <td valign="top">Number of seconds between two trackbacks / pingbacks from the same IP address.</td></tr>
445 <td valign="top"><a name="desc_check_trackback_link">check_trackback_link</a></td>
446 <td valign="top">2</td>
447 <td valign="top">This option can be used to check the validity of a trackback.
448 You can check if the URL in the trackback actually contains a link back to
449 your site (otherwise, it's probably spam). You can also check if the
450 trackback was sent from the proper IP address, i.e. the IP of the site in
451 the trackback URL (again, if they don't match, it's probably spam). Note
452 that you can <strong>add up the values</strong> below to do more than one
453 check (but using option 1 <em>and</em> 2 doesn't make sense and will be
454 treated as if you requested option 2).<br>
455 Options are: 0 = don't perform any checks, 1 = check only for your site's main URL (<code>$_CONF['site_url']</code>), 2 = check for the exact URL of the entry (e.g. an article) on your site, 4 = check IP address of the sender of the trackback against the site referred to in the trackback URL.<br>
456 <b>Example:</b> <code>$_CONF['check_trackback_link'] = 6; // check for the exact URL (2) and proper IP address (4)</code></td></tr>
458 <td valign="top"><a name="desc_multiple_trackbacks">multiple_trackbacks</a></td>
459 <td valign="top">0</td>
460 <td valign="top">How to handle multiple trackbacks and pingbacks from the same source: 0 = keep only the first, reject any further trackbacks / pingbacks; 1 = overwrite, i.e. only keep the latest trackback / pingback; 2 = allow multiple trackbacks / pingbacks, i.e. list them all</td></tr>
463 <h3><a name="stories_pingback">Stories and Trackback: Pingback</a></h3>
465 <table border="1" width="100%">
466 <tr><th style="width:8%">Variable</th>
467 <th style="width:29%">Default Value</th>
468 <th style="width:63%">Description</th></tr>
470 <td valign="top"><a name="desc_pingback_enabled">pingback_enabled</a></td>
471 <td valign="top">true</td>
472 <td valign="top">Enable (true) or disable (true) <a href="http://en.wikipedia.org/wiki/Pingback">pingback</a> support. This applies to both sending and receiving pingbacks.</td></tr>
474 <td valign="top"><a name="desc_pingback_excerpt">pingback_excerpt</a></td>
475 <td valign="top">true</td>
476 <td valign="top">Unlike Trackbacks, Pingback don't include an excerpt of the
477 text from the site linking to us. When this option is enabled, Geeklog will
478 try and create an excerpt by searching the backlink on the site that sent
479 the Pingback, extract a piece of the text near the link, and use that as
480 the excerpt for the Pingback.</td></tr>
482 <td valign="top"><a name="desc_pingback_self">pingback_self</a></td>
483 <td valign="top">0</td>
484 <td valign="top">Pingbacks are sent out automatically to <em>all</em> the
485 URLs linked from a story - which includes stories on your own site that
486 you may have linked in the article. This option lets you specify how these
487 "self pingbacks" are to be handled: 0 = skip them, i.e. don't send pingbacks
488 to stories on your own site; 1 = allow them, but obey the speed limit;
489 2 = allow them and ignore the speed limit.<br>
490 If your article contains more than one link to other stories on your site,
491 then option 1 is probably of limited use, as it would only pingback the
492 first linked story and run into the speed limit for the others.</td></tr>
494 <td valign="top"><a name="desc_ping_enabled">ping_enabled</a></td>
495 <td valign="top">true</td>
496 <td valign="top">Enable (true) or disable (true) the ability to ping weblog directory services like <a href="http://technorati.com/">Technorati</a>.</td></tr>
500 <h2><a name="theme">Theme</a></h2>
502 <h3><a name="theme_theme">Theme: Theme</a></h3>
504 <table border="1" width="100%">
505 <tr><th style="width:8%">Variable</th>
506 <th style="width:29%">Default Value</th>
507 <th style="width:63%">Description</th></tr>
509 <td valign="top"><a name="desc_theme">theme</a></td>
510 <td valign="top">professional</td>
511 <td valign="top">Default theme to use on the site</td></tr>
513 <td valign="top"><a name="desc_doctype">doctype</a></td>
514 <td valign="top">HTML 4.01 Strict</td>
516 href="http://en.wikipedia.org/wiki/Document_Type_Declaration">Document Type
517 Declaration</a> (aka DOCTYPE aka DTD) to use for all the themes on your
518 site, assuming they use the <tt>{doctype}</tt> variable instead of a
519 hard-coded DOCTYPE in their <tt>header.thtml</tt>.</td></tr>
521 <td valign="top"><a name="desc_menu_elements">menu_elements</a></td>
522 <td valign="top"><code>array('contribute', 'calendar', 'search', 'stats',
523 'directory', 'plugins')</code></td>
524 <td valign="top">Specifies which entries are displayed in the site's menu bar
525 (if your theme uses the <code>{menu_elements}</code> variable to display
526 the menu bar). Can be any combination of <tt>'home'</tt>,
527 <tt>'contribute'</tt>, <tt>'calendar'</tt>, <tt>'search'</tt>,
528 <tt>'directory'</tt>, <tt>'prefs'</tt>, <tt>'plugins'</tt>,
529 and <tt>'custom'</tt> where <tt>'plugins'</tt> is the same as the
530 <code>{plg_menu_elements}</code> variable, i.e. a list of the menu entries
531 provided by plugins, and <tt>'custom'</tt> displays the entries returned by
532 a custom function <code>CUSTOM_menuEntries</code> (see
533 <tt>lib-custom.php</tt> for details).</td></tr>
535 <td valign="top"><a name="desc_path_themes">path_themes</a></td>
536 <td valign="top">/path/to/geeklog/public_html/layout/</td>
537 <td valign="top">Directory where all themes reside</td></tr>
540 <h3><a name="theme_advanced">Theme: Advanced Settings</a></h3>
542 <table border="1" width="100%">
543 <tr><th style="width:8%">Variable</th>
544 <th style="width:29%">Default Value</th>
545 <th style="width:63%">Description</th></tr>
547 <td valign="top"><a name="desc_show_right_blocks">show_right_blocks</a></td>
548 <td valign="top">false</td>
549 <td valign="top">If set to <tt>true</tt>, the right-side column of blocks
550 will be displayed on <em>all</em> pages (instead of only on the index
553 <td valign="top"><a name="desc_showfirstasfeatured">showfirstasfeatured</a></td>
554 <td valign="top">0</td>
555 <td valign="top">When set to 1, this will render the first story on <em>any</em> page
556 using the templates for a featured story, even if that story is not
557 featured. This will even be applied to the first story on page 2 of a
558 topic page, for example.</td></tr>
562 <h2><a name="blocks">Blocks</a></h2>
564 <h3><a name="blocks_admin">Blocks: Admin Block</a></h3>
566 <table border="1" width="100%">
567 <tr><th style="width:8%">Variable</th>
568 <th style="width:29%">Default Value</th>
569 <th style="width:63%">Description</th></tr>
571 <td valign="top"><a name="desc_sort_admin">sort_admin</a></td>
572 <td valign="top">false</td>
573 <td valign="top">If set to <tt>true</tt> will sort the entries in the Admin's
574 block and the icons on the Submissions page (<tt>moderation.php</tt>)
575 alphabetically.</td></tr>
577 <td valign="top"><a name="desc_link_documentation">link_documentation</a></td>
578 <td valign="top">1</td>
579 <td valign="top">Add a link to Geeklog's documentation to the Admin block.
580 Set this to 0 if you don't want that link to show up.</td></tr>
582 <td valign="top"><a name="desc_link_versionchecker">link_versionchecker</a></td>
583 <td valign="top">1</td>
584 <td valign="top">Add a link "GL Version Test" to the Admin block so that you
585 can easily check if your Geeklog version is up to date. Set this to 0 if
586 you don't want that link to show up.<br>
587 <strong>Note:</strong> The link is only displayed to members of the Root
588 group anyway.</td></tr>
591 <h3><a name="blocks_topics">Blocks: Topics Block</a></h3>
593 <table border="1" width="100%">
594 <tr><th style="width:8%">Variable</th>
595 <th style="width:29%">Default Value</th>
596 <th style="width:63%">Description</th></tr>
598 <td valign="top"><a name="desc_sortmethod">sortmethod</a></td>
599 <td valign="top">alpha</td>
600 <td valign="top">alpha = Sort topics in topic list alphabetically<br>
601 sortnum = Sort topics in topic list by the given sort number</td></tr>
603 <td valign="top"><a name="desc_showstorycount">showstorycount</a></td>
604 <td valign="top">1</td>
605 <td valign="top">Show the number of stories in a topic in the Sections block (0=no, 1=yes)</td></tr>
607 <td valign="top"><a name="desc_showsubmissioncount">showsubmissioncount</a></td>
608 <td valign="top">1</td>
609 <td valign="top">Show the number of story submissions for a topic in the Sections block (0=no, 1=yes)</td></tr>
611 <td valign="top"><a name="desc_hide_home_link">hide_home_link</a></td>
612 <td valign="top">0</td>
613 <td valign="top">Hide the "Home" link from the Sections block (0=no, 1=yes)</td></tr>
616 <h3><a name="blocks_who">Blocks: Who's Online Block</a></h3>
618 <table border="1" width="100%">
619 <tr><th style="width:8%">Variable</th>
620 <th style="width:29%">Default Value</th>
621 <th style="width:63%">Description</th></tr>
623 <td valign="top"><a name="desc_whosonline_threshold">whosonline_threshold</a></td>
624 <td valign="top">300</td>
625 <td valign="top">How long, in seconds, users can be idle before removing them from the whosonline block</td></tr>
627 <td valign="top"><a name="desc_whosonline_anonymous">whosonline_anonymous</a></td>
628 <td valign="top">0</td>
629 <td valign="top">If enabled (i.e. set to 1), anonymous users will only see the number of registered users currently online in the Who's Online block but not their names. Only logged-in users will see the names of other users that are currently online.</td></tr>
632 <h3><a name="blocks_what">Blocks: What's New Block</a></h3>
634 <table border="1" width="100%">
635 <tr><th style="width:8%">Variable</th>
636 <th style="width:29%">Default Value</th>
637 <th style="width:63%">Description</th></tr>
639 <td valign="top"><a name="desc_newstoriesinterval">newstoriesinterval</a></td>
640 <td valign="top">86400</td>
641 <td valign="top">Stories are "new" if they are this many seconds old.</td></tr>
643 <td valign="top"><a name="desc_newcommentsinterval">newcommentsinterval</a></td>
644 <td valign="top">172800</td>
645 <td valign="top">Comments are "new" if they are this many seconds old.</td></tr>
647 <td valign="top"><a name="desc_newtrackbackinterval">newtrackbackinterval</a></td>
648 <td valign="top">172800</td>
649 <td valign="top">Trackback comments are "new" if they are this many seconds old.</td></tr>
651 <td valign="top"><a name="desc_hidenewstories">hidenewstories</a></td>
652 <td valign="top">0</td>
653 <td valign="top">Set to 1 to hide new stories from the What's New block.</td></tr>
655 <td valign="top"><a name="desc_hidenewcomments">hidenewcomments</a></td>
656 <td valign="top">0</td>
657 <td valign="top">Set to 1 to hide new comments from the What's New block.</td></tr>
659 <td valign="top"><a name="desc_hidenewtrackbacks">hidenewtrackbacks</a></td>
660 <td valign="top">0</td>
661 <td valign="top">Set to 1 to hide new trackback comments from the What's New block.</td></tr>
663 <td valign="top"><a name="desc_hidenewplugins">hidenewplugins</a></td>
664 <td valign="top">0</td>
665 <td valign="top">Set to 1 to hide new entries by plugins from the What's New
668 <td valign="top"><a name="desc_title_trim_length">title_trim_length</a></td>
669 <td valign="top">20</td>
670 <td valign="top">Max. length of the title of items listed in the What's New
675 <h2><a name="users">Users and Submissions</a></h2>
677 <h3><a name="users_users">Users and Submissions: Users</a></h3>
679 <table border="1" width="100%">
680 <tr><th style="width:8%">Variable</th>
681 <th style="width:29%">Default Value</th>
682 <th style="width:63%">Description</th></tr>
684 <td valign="top"><a name="desc_disable_new_user_registration">disable_new_user_registration</a></td>
685 <td valign="top">false</td>
686 <td valign="top">When set to <tt>true</tt> completely disables all options
687 to sign up as a new user.</td></tr>
689 <td valign="top"><a name="desc_allow_user_themes">allow_user_themes</a></td>
690 <td valign="top">Can be 1 or 0</td>
691 <td valign="top">If set to 1, users can set their own theme that the site uses</td></tr>
693 <td valign="top"><a name="desc_allow_user_language">allow_user_language</a></td>
694 <td valign="top">Can be 1 or 0</td>
695 <td valign="top">If set to 1, users can select the language for the site navigation</td></tr>
697 <td valign="top"><a name="desc_allow_user_photo">allow_user_photo</a></td>
698 <td valign="top">Can be 1 or 0</td>
699 <td valign="top">If set to 1, users can upload a photo to their profile</td></tr>
701 <td valign="top"><a name="desc_allow_username_change">allow_username_change</a></td>
702 <td valign="top">0</td>
703 <td valign="top">If set to 1, users will be allowed to change their username
704 (login name). Stories and comments posted under the old username will
705 automatically show the new username.</td></tr>
707 <td valign="top"><a name="desc_allow_account_delete">allow_account_delete</a></td>
708 <td valign="top">0</td>
709 <td valign="top">If set to 1, users will be allowed to delete their accounts. Stories and comments posted under that account will be kept and show up as being posted by "Anonymous".</td></tr>
711 <td valign="top"><a name="desc_hide_author_exclusion">hide_author_exclusion</a></td>
712 <td valign="top">Can be 1 or 0</td>
713 <td valign="top">If set to 1, the option to to exclude certain authors from being seen is hidden from the user's preferences.</td></tr>
715 <td valign="top"><a name="desc_show_fullname">show_fullname</a></td>
716 <td valign="top">0</td>
717 <td valign="top">Whether to display a user's full name (= 1) or only their
718 username (= 0). For users that haven't entered their full name, Geeklog
719 will always display the username.</td></tr>
721 <td valign="top"><a name="desc_show_servicename">show_servicename</a></td>
722 <td valign="top">true</td>
723 <td valign="top">If you allow users to log in with accounts on remote services
724 (like LDAP or LiveJournal), this option will at the service's name to
725 the username to avoid confusion with local users of the same name. Set to
726 <tt>false</tt> to disable.</td></tr>
728 <td valign="top"><a name="desc_custom_registration">custom_registration</a></td>
729 <td valign="top"><code>false</code></td>
730 <td valign="top">When set to <code>true</code>, Geeklog will let you use
731 your own signup form for new user registrations. Please see the file
732 <tt>lib-custom.php</tt> that ships with Geeklog for an example.</td></tr>
734 <td valign="top"><a name="desc_login_method_standard">standard</a></td>
735 <td valign="top"><code>true</code></td>
736 <td valign="top">Whether to allow normal logins into the site, i.e. with
737 a user account that only exists in your site's database.</td></tr>
739 <td valign="top"><a name="desc_login_method_openid">openid</a></td>
740 <td valign="top"><code>false</code></td>
741 <td valign="top">Whether to allow logins using <a href="http://openid.net/">OpenID</a>. This will display a special OpenID login below the normal login field.<br>
742 <strong>Note:</strong> Currently only OpenID 1.1 is supported.</td></tr>
744 <td valign="top"><a name="desc_login_method_3rdparty">3rdparty</a></td>
745 <td valign="top"><code>false</code></td>
746 <td valign="top">Allow (when set to <tt>true</tt>) users who already have
747 an account with some other service to log into your Geeklog site with the
748 login for that service. Currently supported: LDAP and LiveJournal.<br>
749 Please note that to enable login for a specific service, you need an
750 authorization class in <tt>system/classes/authentication</tt>. If you only
751 want to allow LDAP but not LiveJournal users (or vice versa), simply
752 remove the class file for the unwanted service(s).<br>
753 See <a href="http://www.geeklog.net/article.php/remote-authentication">Remote Authentication in Geeklog</a> for more information.</td></tr>
755 <td valign="top"><a name="desc_aftersave_user">aftersave_user</a></td>
756 <td valign="top"><code>'item'</code></td>
757 <td valign="top">Which page to go to after a user has been saved:
759 <li>'item': display the user's profile</li>
760 <li>'list': show admin's list of users (default)</li>
761 <li>'home': display the site's homepage</li>
762 <li>'admin': go to the "Admin Home" page, i.e. Command & Control</li>
766 <h3><a name="users_spamx">Users and Submissions: Spam-X</a></h3>
768 <table border="1" width="100%">
769 <tr><th style="width:8%">Variable</th>
770 <th style="width:29%">Default Value</th>
771 <th style="width:63%">Description</th></tr>
773 <td valign="top"><a name="desc_spamx">spamx</a></td>
774 <td valign="top">128</td>
775 <td valign="top">Tells Geeklog's <a href="spamx.html" rel="nofollow">Spam-X</a> plugin what to do when a spam post has been detected. The value is the sum
776 of all values that uniquely identify the Spam-X modules that should be
777 executed. E.g. the "delete" action module uses 128, the "email admin"
778 module uses 8, so if both modules should be executed, this option should
779 be set to 128 + 8 = 136.</td></tr>
782 <h3><a name="users_login">Users and Submissions: Login Settings</a></h3>
784 <table border="1" width="100%">
785 <tr><th style="width:8%">Variable</th>
786 <th style="width:29%">Default Value</th>
787 <th style="width:63%">Description</th></tr>
789 <td valign="top"><a name="desc_lastlogin">lastlogin</a></td>
790 <td valign="top"><code>true</code></td>
791 <td valign="top">Whether to keep track of when a user last logged in
792 (<code>= true</code>) or not (<code>= false</code>).</td></tr>
793 <tr><td valign="top"><a name="desc_loginrequired">loginrequired</a></td>
794 <td valign="top">0</td>
795 <td valign="top">Login is required to access <em>any</em> part of the site. When
796 set to 1, this overrides the following settings. When you only want to
797 block access to certain parts of the site, set this to 0 and select
798 from the following settings.</td></tr>
799 <tr><td valign="top"><a name="desc_submitloginrequired">submitloginrequired</a></td>
800 <td valign="top">0</td>
801 <td valign="top">When set to 1, only registered users can submit stories
802 and items handled by plugins, e.g. links and events</td></tr>
803 <tr><td valign="top"><a name="desc_commentsloginrequired">commentsloginrequired</a></td>
804 <td valign="top">0</td>
805 <td valign="top">When set to 1, only registered users can submit comments</td></tr>
806 <tr><td valign="top"><a name="desc_statsloginrequired">statsloginrequired</a></td>
807 <td valign="top">0</td>
808 <td valign="top">When set to 1, only registered users can access the site stats</td></tr>
809 <tr><td valign="top"><a name="desc_searchloginrequired">searchloginrequired</a></td>
810 <td valign="top">0</td>
811 <td valign="top">When set to 1, only registered users can use the advanced search. When
812 set to 2, the simple search is blocked for anonymous users, too.</td></tr>
813 <tr><td valign="top"><a name="desc_profileloginrequired">profileloginrequired</a></td>
814 <td valign="top">0</td>
815 <td valign="top">When set to 1, only registered users can view another user's profile</td></tr>
816 <tr><td valign="top"><a name="desc_emailuserloginrequired">emailuserloginrequired</a></td>
817 <td valign="top">0</td>
818 <td valign="top">When set to 1, only registered users can use the email submission
819 form to send an email to another user</td></tr>
820 <tr><td valign="top"><a name="desc_emailstoryloginrequired">emailstoryloginrequired</a></td>
821 <td valign="top">0</td>
822 <td valign="top">When set to 1, only registered users can email stories</td></tr>
823 <tr><td valign="top"><a name="desc_directoryloginrequired">directoryloginrequired</a></td>
824 <td valign="top">0</td>
825 <td valign="top">When set to 1, only registered users can access the list of past articles</td></tr>
827 <td valign="top"><a name="desc_passwordspeedlimit">passwordspeedlimit</a></td>
828 <td valign="top">300</td>
829 <td valign="top">Minimum delay between two requests for a new password, in seconds.</td></tr>
831 <td valign="top"><a name="desc_login_attempts">login_attempts</a></td>
832 <td valign="top">3</td>
833 <td valign="top">Max. number of login attempts before the speedlimit (see
834 below) kicks in and further logins are blocked for the given amount of
837 <td valign="top"><a name="desc_login_speedlimit">login_speedlimit</a></td>
838 <td valign="top">300</td>
839 <td valign="top">How many seconds have to pass before another login attempt
840 can be made after <code>$_CONF['login_attempts']</code> (see above) login
841 attempts have failed.</td></tr>
844 <h3><a name="users_usersub">Users and Submissions: User Submission</a></h3>
846 <table border="1" width="100%">
847 <tr><th style="width:8%">Variable</th>
848 <th style="width:29%">Default Value</th>
849 <th style="width:63%">Description</th></tr>
851 <td valign="top"><a name="desc_usersubmission">usersubmission</a></td>
852 <td valign="top">0</td>
853 <td valign="top">Enable (1) or disable (0) the user submission queue (i.e.
854 new users must be approved before they receive their password)</td></tr>
856 <td valign="top"><a name="desc_allow_domains">allow_domains</a></td>
857 <td valign="top">''</td>
858 <td valign="top">When the user submission queue is enabled this can contain a
859 comma-separated list of domain names from which user submissions will not
860 be queued (but approved automatically). Regular expressions are also allowed
861 and interpreted.<br><strong>Example:</strong>
862 <tt>'mycompany.com,myothercompany.com'</tt></td></tr>
864 <td valign="top"><a name="desc_disallow_domains">disallow_domains</a></td>
865 <td valign="top">''</td>
866 <td valign="top">This is the opposite of <code>$_CONF['allow_domains']</code>
867 (see above): A list of domain names that are <em>not</em> allowed in email
868 addresses of new users. Note that this list is <em>always</em> used, even
869 when the user submission queue has been switched off. Again, regular
870 expression can be used.<br><strong>Example</strong> disallow email addresses
871 with a certain domain name and from any ".edu" domain:
872 <tt>'somebaddomain.com,\.edu$'</tt></td></tr>
875 <h3><a name="users_submission">Users and Submissions: Submission Settings</a></h3>
877 <table border="1" width="100%">
878 <tr><th style="width:8%">Variable</th>
879 <th style="width:29%">Default Value</th>
880 <th style="width:63%">Description</th></tr>
882 <td valign="top"><a name="desc_storysubmission">storysubmission</a></td>
883 <td valign="top">1</td>
884 <td valign="top">Enable (1) or disable (0) the story submission queue</td></tr>
886 <td valign="top"><a name="desc_listdraftstories">listdraftstories</a></td>
887 <td valign="top">0</td>
888 <td valign="top">When set to 1, this will display an additional block on the
889 submissions page (<tt>moderation.php</tt>) that lists all the stories that
890 have the 'draft' flag set.</td></tr>
892 <td valign="top"><a name="desc_postmode">postmode</a></td>
893 <td valign="top">plaintext</td>
894 <td valign="top">Sets the default submission mode to 'html' or 'plaintext'</td></tr>
896 <td valign="top"><a name="desc_speedlimit">speedlimit</a></td>
897 <td valign="top">45</td>
898 <td valign="top">Minimum delay between submissions in seconds. This helps prevent Denial of Service (DOS) attacks</td></tr>
900 <td valign="top"><a name="desc_skip_preview">skip_preview</a></td>
901 <td valign="top">0</td>
902 <td valign="top">If 1, allows submission of stories and comments without previewing (i.e. the submission form will always have a Preview <em>and</em> a Submit button).</td></tr>
904 <td valign="top"><a name="desc_advanced_editor">advanced_editor</a></td>
905 <td valign="top">false</td>
906 <td valign="top">Enable (if set to <code>true</code>) a WYSIWYG editor for
907 story and comment submissions and static pages. Geeklog ships with <a
908 href="http://www.fckeditor.net/">FCKeditor</a>.</td></tr>
910 <td valign="top"><a name="desc_wikitext_editor">wikitext_editor</a></td>
911 <td valign="top">false</td>
912 <td valign="top">Allow using <a href="http://pear.reversefold.com/dokuwiki/text_wiki:samplepage">wiki syntax</a> in stories. This adds a third option,
913 "Wiki-style format", to the Post Mode dropdown in the story editor
914 (implemented using the <a href="http://pear.php.net/package/Text_Wiki">PEAR::Text_Wiki</a> package).</td></tr>
917 <h3><a name="users_comments">Users and Submissions: Comments</a></h3>
919 <table border="1" width="100%">
920 <tr><th style="width:8%">Variable</th>
921 <th style="width:29%">Default Value</th>
922 <th style="width:63%">Description</th></tr>
924 <td valign="top"><a name="desc_commentspeedlimit">commentspeedlimit</a></td>
925 <td valign="top">45</td>
926 <td valign="top">Number of seconds between posting a comment for the user</td></tr>
928 <td valign="top"><a name="desc_comment_limit">comment_limit</a></td>
929 <td valign="top">100</td>
930 <td valign="top">Most number of comments to show at any one time</td></tr>
932 <td valign="top"><a name="desc_comment_mode">comment_mode</a></td>
933 <td valign="top">nested</td>
934 <td valign="top">How to display comments (threaded, nested, flat or nocomments)</td></tr>
936 <td valign="top"><a name="desc_comment_code">comment_code</a></td>
937 <td valign="top">0</td>
938 <td valign="top">Default value for new stories: Comments enabled (0) or disabled (-1)</td></tr>
940 <td valign="top"><a name="desc_comment_edit">comment_edit</a></td>
941 <td valign="top">0</td>
942 <td valign="top">Whether to allow users and admins (i.e. those with
943 comment.edit permission) to edit comments.</td></tr>
945 <td valign="top"><a name="desc_commentsubmission">commentsubmission</a></td>
946 <td valign="top">0</td>
947 <td valign="top">Enable (1) or disable (0) comment submission queue.</td></tr>
949 <td valign="top"><a name="desc_comment_edittime">comment_edittime</a></td>
950 <td valign="top">1800</td>
951 <td valign="top">How long (in seconds) a comment is editable for the user who
952 submitted it. Requires that comments are editable (see <a href="#desc_comment_edit">above</a>). Anonymous users (those that did not register an account) can
953 never edit their comments while admins can always edit comments.</td></tr>
955 <td valign="top"><a name="desc_article_comment_close_enabled">article_comment_close_enabled</a></td>
956 <td valign="top">0</td>
957 <td valign="top">Whether or not stories should be closed for comments after
958 a certain amount of days (see next option). This is only the default
959 setting for new stories and can be changed separately for each
962 <td valign="top"><a name="desc_article_comment_close_days">article_comment_close_days</a></td>
963 <td valign="top">30</td>
964 <td valign="top">Number of days after which a story is to be automatically
965 closed for comments, i.e. no new comments can be posted after that many
967 Note that this is only the default value to which the "Disable Comments"
968 option is set when creating a new story. It will not take effect unless it
969 has also been enabled for the story.</td></tr>
971 <td valign="top"><a name="desc_comment_close_rec_stories">comment_close_rec_stories</a></td>
972 <td valign="top">0</td>
973 <td valign="top">Number of most recent stories for which comment posting is
974 allowed. Posting a new story will automatically close comments for the
975 oldest of these stories. Set to 0 to disable this option.</td></tr>
977 <td valign="top"><a name="desc_allow_reply_notifications">allow_reply_notifications</a></td>
978 <td valign="top">0</td>
979 <td valign="top">Allow (1) or disallow (0) subscribing to comment
980 notifications. Registered users can get an email notifying them of direct
981 replies to comments they left.</td></tr>
985 <h2><a name="images">Images</a></h2>
987 <h3><a name="images_imagelib">Images: Image Library</a></h3>
989 <table border="1" width="100%">
990 <tr><th style="width:8%">Variable</th>
991 <th style="width:29%">Default Value</th>
992 <th style="width:63%">Description</th></tr>
994 <td valign="top"><a name="desc_image_lib">image_lib</a></td>
995 <td valign="top">None</td>
996 <td valign="top">Set this to either 'imagemagick', 'netpbm', or 'gdlib' if
997 images should be resized during upload. Leave as 'None' if you don't want
998 images to be resized or if you don't have those packages available.</td></tr>
1000 <td valign="top"><a name="desc_path_to_mogrify">path_to_mogrify</a></td>
1001 <td valign="top"><i>(disabled)</i></td>
1002 <td valign="top">If you chose 'imagemagick' for
1003 <code>$_CONF['image_lib']</code> above, then this should hold the
1004 <strong>complete path</strong> to the mogrify executable (from the
1005 <a href="http://www.imagemagick.org/">ImageMagick</a> package), e.g.
1006 '<tt>/usr/bin/mogrify</tt>' (ImageMagick 5.4.9 or newer recommended).</td></tr>
1008 <td valign="top"><a name="desc_path_to_netpbm">path_to_netpbm</a></td>
1009 <td valign="top"><i>(disabled)</i></td>
1010 <td valign="top">If you chose 'netpbm' for <code>$_CONF['image_lib']</code>
1011 above, then this should hold the complete path to the <em>directory</em>
1012 where the binaries from the Netpbm package are kept, e.g.
1013 <code>'/usr/bin/netpbm/'</code>. Note that the path must end in a slash.<br>
1014 Precompiled binaries for various platforms can be downloaded from the <a
1015 href="http://netpbm.sourceforge.net/">Netpbm homepage</a>.</td></tr>
1018 <h3><a name="images_upload">Images: Upload</a></h3>
1020 <table border="1" width="100%">
1021 <tr><th style="width:8%">Variable</th>
1022 <th style="width:29%">Default Value</th>
1023 <th style="width:63%">Description</th></tr>
1025 <td valign="top"><a name="desc_keep_unscaled_image">keep_unscaled_image</a></td>
1026 <td valign="top">0</td>
1027 <td valign="top">Set this to 1 if you want Geeklog to keep the original, unscaled images after upload. The smaller image will then be used as a thumbnail and will link to the original image. Note that this may use a lot of disk space (depending on the size of your images).</td></tr>
1029 <td valign="top"><a name="desc_allow_user_scaling">allow_user_scaling</a></td>
1030 <td valign="top">1</td>
1031 <td valign="top">When unscaled images are kept (see above), this option lets
1032 the user chose between using the scaled or unscaled image in the story, i.e.
1033 enables the <code>[unscaled<i>X</i>]</code> image tag (in addition to the
1034 <code>[image<i>X</i>]</code> tag).</td></tr>
1036 <td valign="top"><a name="desc_jpeg_quality">jpeg_quality</a></td>
1037 <td valign="top"><i>(disabled)</i></td>
1038 <td valign="top">Control the image quality when resizing JPEGs. All the image
1039 libraries supported by Geeklog are based on the IJG JPEG library which uses
1040 an arbitrary range of 0-100 to specify the "quality" (note that this is
1041 <em>not</em> a percent value). The default, when not set, is 75 which
1042 provides good quality in most cases. In some cases, higher values may
1043 provide better results.<br>
1044 Rules of thumb: Values above 90 usually don't improve the image quality any
1045 more but only produce larger files. Values below 50 will result in poor
1046 image quality. Values of 25 and below will produce distorted
1049 <td valign="top"><a name="desc_debug_image_upload">debug_image_upload</a></td>
1050 <td valign="top"><code>false</code></td>
1051 <td valign="top">When set to <code>true</code>, this option enables debugging
1052 output to be written into Geeklog's <tt>error.log</tt> file during the
1053 upload of an image. This is useful to track down problems with the image
1054 upload and resizing.</td></tr>
1057 <h3><a name="images_articles">Images: Images in Articles</a></h3>
1059 <table border="1" width="100%">
1060 <tr><th style="width:8%">Variable</th>
1061 <th style="width:29%">Default Value</th>
1062 <th style="width:63%">Description</th></tr>
1064 <td valign="top"><a name="desc_max_image_width">max_image_width</a></td>
1065 <td valign="top">160</td>
1066 <td valign="top">Max. width of an image in pixels. If it exceeds this, it is
1067 either rejected or resized (depending on the setting of
1068 <code>$_CONF['image_lib']</code> above).</td></tr>
1070 <td valign="top"><a name="desc_max_image_height">max_image_height</a></td>
1071 <td valign="top">120</td>
1072 <td valign="top">Max. height of an image in pixels. If it exceeds this, it is
1073 either rejected or resized (depending on the setting of
1074 <code>$_CONF['image_lib']</code> above).</td></tr>
1076 <td valign="top"><a name="desc_max_image_size">max_image_size</a></td>
1077 <td valign="top">1048576 <i>(equals 1 MB)</i></td>
1078 <td valign="top">Max. size of an image in bytes. If it exceeds this, it is
1079 is rejected (even if you're using a graphics package to resize images).</td></tr>
1082 <h3><a name="images_topic">Images: Topic Icons</a></h3>
1084 <table border="1" width="100%">
1085 <tr><th style="width:8%">Variable</th>
1086 <th style="width:29%">Default Value</th>
1087 <th style="width:63%">Description</th></tr>
1089 <td valign="top"><a name="desc_max_topicicon_width">max_topicicon_width</a></td>
1090 <td valign="top">48</td>
1091 <td valign="top">Max. width of a topic icon in pixels. If it exceeds this,
1092 it is either rejected or resized (depending on the setting of
1093 <code>$_CONF['image_lib']</code> above).</td></tr>
1095 <td valign="top"><a name="desc_max_topicicon_height">max_topicicon_height</a></td>
1096 <td valign="top">48</td>
1097 <td valign="top">Max. height of a topic icon in pixels. If it exceeds this,
1098 it is either rejected or resized (depending on the setting of
1099 <code>$_CONF['image_lib']</code> above).</td></tr>
1101 <td valign="top"><a name="desc_max_topicicon_size">max_topicicon_size</a></td>
1102 <td valign="top">65536 <i>(equals 64 KB)</i></td>
1103 <td valign="top">Max. size of a topic icon in bytes. If it exceeds this, it
1104 is rejected (even if you're using a graphics package to resize images).</td>
1107 <h3><a name="images_photos">Images: Photos</a></h3>
1109 <table border="1" width="100%">
1110 <tr><th style="width:8%">Variable</th>
1111 <th style="width:29%">Default Value</th>
1112 <th style="width:63%">Description</th></tr>
1114 <td valign="top"><a name="desc_max_photo_width">max_photo_width</a></td>
1115 <td valign="top">128</td>
1116 <td valign="top">Max. width of a user photo in pixels. If it exceeds this, it
1117 is either rejected or resized (depending on the setting of
1118 <code>$_CONF['image_lib']</code> above).</tr>
1120 <td valign="top"><a name="desc_max_photo_height">max_photo_height</a></td>
1121 <td valign="top">128</td>
1122 <td valign="top">Max. height of a user photo in pixels. If it exceeds this,
1123 it is either rejected or resized (depending on the setting of
1124 <code>$_CONF['image_lib']</code> above).</td></tr>
1126 <td valign="top"><a name="desc_max_photo_size">max_photo_size</a></td>
1127 <td valign="top">65536 <i>(equals 64 KB)</i></td>
1128 <td valign="top">Max. size of a user photo in bytes. If it exceeds this, it
1129 is rejected (even if you're using a graphics package to resize images).</td></tr>
1131 <td valign="top"><a name="desc_force_photo_width">force_photo_width</a></td>
1132 <td valign="top"><i>(disabled)</i></td>
1133 <td valign="top">This option, when enabled, will only apply when
1134 <em>displaying</em> a user photo. The <code><img></code> tag for the
1135 user photo will be emitted with a max. width, as specified by this option.
1136 This means that the actual photo can still be larger, but will only be
1137 displayed smaller. This is useful for cases where you don't want oddly
1138 shaped user photos to break your page's layout (e.g. in a forum).</td></tr>
1140 <td valign="top"><a name="desc_default_photo">default_photo</a></td>
1141 <td valign="top"><i>(disabled)</i></td>
1142 <td valign="top">When enabled, this option should point to an image (full URL
1143 required!) that should be displayed for users without a user photo. When
1144 this option is not set and a user does not have a user photo (or an <a
1145 href="#images_gravatar">avatar</a>) then Geeklog will simply not display
1149 <h3><a name="images_gravatar">Images: Gravatar</a></h3>
1151 <table border="1" width="100%">
1152 <tr><th style="width:8%">Variable</th>
1153 <th style="width:29%">Default Value</th>
1154 <th style="width:63%">Description</th></tr>
1156 <td valign="top"><a name="desc_use_gravatar">use_gravatar</a></td>
1157 <td valign="top">false</td>
1158 <td valign="top">If enabled (set to <tt>true</tt>), a user's avatar image will
1159 be requested from <a href="http://gravatar.com/">gravatar.com</a> if the
1160 user didn't upload a user photo (i.e. an uploaded photo always takes
1162 Please note that this option may slow down your site on pages that display
1163 a lot of userphotos for different users (e.g. forum threads).</td></tr>
1165 <td valign="top"><a name="desc_gravatar_rating">gravatar_rating</a></td>
1166 <td valign="top"><i>(disabled)</i></td>
1167 <td valign="top">Avatars submitted to gravatar.com are rated with the rating
1168 system used for movies (in the U.S.), i.e. the letters G, PG, R, or X. This
1169 option will let you chose the <em>maximum</em> allowed rating for an avatar.
1170 For example, a max. rating of R will make sure that no X-rated avatars will
1171 be displayed on your site (only G, PG, and R).</td></tr>
1175 <h2><a name="languages">Languages and Locale</a></h2>
1177 <h3><a name="languages_language">Languages and Locale: Language</a></h3>
1179 <table border="1" width="100%">
1180 <tr><th style="width:8%">Variable</th>
1181 <th style="width:29%">Default Value</th>
1182 <th style="width:63%">Description</th></tr>
1184 <td valign="top"><a name="desc_language">language</a></td>
1185 <td valign="top">english</td>
1186 <td valign="top">Name of your language file. Additional language files may be
1187 available for download at <a href="http://www.geeklog.net/">http://www.geeklog.net</a>.
1188 If you translate a language file, please send it to us. Also see <a
1189 href="#Localization">Localization</a> below.</td></tr>
1191 <td valign="top"><a name="desc_language_files">language_files</a></td>
1192 <td valign="top"><i>(disabled)</i></td>
1193 <td valign="top">For multi-lingual setups only: A list mapping language
1194 shortcuts ('en', 'de', etc.) to the Geeklog language files to use.</td></tr>
1196 <td valign="top"><a name="desc_languages">languages</a></td>
1197 <td valign="top"><i>(disabled)</i></td>
1198 <td valign="top">For multi-lingual setups only: A list mapping language
1199 shortcuts ('en', 'de', etc.) to the language's native name ("English",
1200 "Deutsch", etc.).</td></tr>
1203 <p>Also see <a href="http://wiki.geeklog.net/wiki/index.php/Multi-Language_Support">Multi-Language Support</a> in the Geeklog Wiki.</p>
1205 <h3><a name="languages_locale">Languages and Locale: Locale</a></h3>
1207 <table border="1" width="100%">
1208 <tr><th style="width:8%">Variable</th>
1209 <th style="width:29%">Default Value</th>
1210 <th style="width:63%">Description</th></tr>
1212 <td valign="top"><a name="desc_locale">locale</a></td>
1213 <td valign="top">en_GB</td>
1214 <td valign="top"><a href="http://en.wikipedia.org/wiki/Locale">Locale</a> for
1215 the system. This defines both the language and the country that PHP
1216 will use when deciding how to display localized information such as
1217 dates (e.g. for the names of months).</td></tr>
1219 <td valign="top"><a name="desc_date">date</a></td>
1220 <td valign="top">%A, %B %d %Y @ %I:%M %p %Z</td>
1221 <td valign="top">Date format used for most of the site, including story displays. See <a
1222 href="#date_formats">date formats</a> below.</td></tr>
1224 <td valign="top"><a name="desc_daytime">daytime</a></td>
1225 <td valign="top">%m/%d %I:%M%p</td>
1226 <td valign="top">Date format used when a shorter date is needed. See <a
1227 href="#date_formats">date formats</a> below.</td></tr>
1229 <td valign="top"><a name="desc_shortdate">shortdate</a></td>
1230 <td valign="top">%x</td>
1231 <td valign="top">Date format this is the shortest date. See <a href="#date_formats">date
1232 formats</a> below.</td></tr>
1234 <td valign="top"><a name="desc_dateonly">dateonly</a></td>
1235 <td valign="top">%d-%b</td>
1236 <td valign="top">Short date format (day and month only), to be used e.g. in the
1237 Upcoming Events and Older Stories blocks. See <a href="#date_formats">date
1238 formats</a> below.</td></tr>
1240 <td valign="top"><a name="desc_timeonly">timeonly</a></td>
1241 <td valign="top">%I:%M %p %Z</td>
1242 <td valign="top">Format string for the time only, to be used e.g. on the Event Details
1243 page. See <a href="#date_formats">date formats</a> below.</td></tr>
1245 <td valign="top"><a name="desc_week_start">week_start</a></td>
1246 <td valign="top">Sun</td>
1247 <td valign="top">First day of the week in the calendar. Can be either <tt>'Sun'</tt> (Sunday) or <tt>'Mon'</tt> (Monday).</td></tr>
1249 <td valign="top"><a name="desc_hour_mode">hour_mode</a></td>
1250 <td valign="top">12</td>
1251 <td valign="top">Which format to use when submitting or editing an object
1252 with a time setting (e.g. the publish time of a story). Can be 12 (for the
1253 12 hour am/pm format) or 24 (for the 24 hour format).</td></tr>
1255 <td valign="top"><a name="desc_thousand_separator">thousand_separator</a></td>
1256 <td valign="top"><code>,</code></td>
1257 <td valign="top">Character to use between every group of thousands.</td></tr>
1259 <td valign="top"><a name="desc_decimal_separator">decimal_separator</a></td>
1260 <td valign="top"><code>.</code></td>
1261 <td valign="top">Character to use before decimals.</td></tr>
1263 <td valign="top"><a name="desc_decimal_count">decimal_count</a></td>
1264 <td valign="top">2</td>
1265 <td valign="top">How many decimal places to display.</td></tr>
1267 <td valign="top"><a name="desc_timezone">timezone</a></td>
1268 <td valign="top"><i>(disabled)</i></td>
1269 <td valign="top">If your server is located in a different timezone, use this
1270 option to set your local (i.e. your own) timezone, so that the time and
1271 date on the site match your own.<br>
1272 This option is known as the "<a href="http://www.geeklog.net/forum/viewtopic.php?showtopic=21232">timezone hack</a>" and may not work on some
1277 <h2><a name="misc">Miscellaneous</a></h2>
1279 <h3><a name="misc_cookies">Miscellaneous: Cookies</a></h3>
1281 <p>These variables define the names of all of Geeklog's cookies. They can easily be changed in case there's a name collision with the cookies used by some other software package that you may use on your site.</p>
1283 <table border="1" width="100%">
1284 <tr><th style="width:8%">Variable</th>
1285 <th style="width:29%">Default Value</th>
1286 <th style="width:63%">Description</th></tr>
1288 <td valign="top"><a name="desc_cookie_session">cookie_session</a></td>
1289 <td valign="top">gl_session</td>
1290 <td valign="top">Name of the cookie that stores the session ID.</td></tr>
1292 <td valign="top"><a name="desc_cookie_name">cookie_name</a></td>
1293 <td valign="top">geeklog</td>
1294 <td valign="top">Name of the permanent cookie.</td></tr>
1296 <td valign="top"><a name="desc_cookie_password">cookie_password</a></td>
1297 <td valign="top">password</td>
1298 <td valign="top">Name of the password cookie.</td></tr>
1300 <td valign="top"><a name="desc_cookie_theme">cookie_theme</a></td>
1301 <td valign="top">theme</td>
1302 <td valign="top">Name of the theme cookie.</td></tr>
1304 <td valign="top"><a name="desc_cookie_language">cookie_language</a></td>
1305 <td valign="top">language</td>
1306 <td valign="top">Name of the language cookie.</td></tr>
1308 <td valign="top"><a name="desc_cookie_tzid">cookie_tzid</a></td>
1309 <td valign="top">timezone</td>
1310 <td valign="top">Name of the timezone cookie.</td></tr>
1312 <td valign="top"><a name="desc_cookie_anon_name">cookie_anon_name</a></td>
1313 <td valign="top">anon_name</td>
1314 <td valign="top">Name of the cookie to store the username of anonymous
1317 <td valign="top"><a name="desc_cookie_ip">cookie_ip</a></td>
1318 <td valign="top">0</td>
1319 <td valign="top">Session ID to contain IP address of user as well as random number. This is more secure but will more than likely require dialed up users to login each and every time. (0=no, 1=yes)</td></tr>
1321 <td valign="top"><a name="desc_default_perm_cookie_timeout">default_perm_cookie_timeout</a></td>
1322 <td valign="top">28800</td>
1323 <td valign="top">Permanent cookie timeout in seconds (28800 = 8 hours).</td></tr>
1325 <td valign="top"><a name="desc_session_cookie_timeout">session_cookie_timeout</a></td>
1326 <td valign="top">7200</td>
1327 <td valign="top">Session cookie timeout in seconds (7200 = 2 hours).</td></tr>
1329 <td valign="top"><a name="desc_cookie_path">cookie_path</a></td>
1330 <td valign="top">/</td>
1331 <td valign="top">Cookie path (see the <a href="http://www.php.net/manual/en/function.setcookie.php">PHP manual</a> for details).</td></tr>
1333 <td valign="top"><a name="desc_cookiedomain">cookiedomain</a></td>
1334 <td valign="top"><i>(empty)</i></td>
1335 <td valign="top">The domain that the cookie is available. Geeklog will attempt to guess the correct value for this setting (based on the 'site_url' variable). See the <a href="http://www.php.net/manual/en/function.setcookie.php">PHP manual</a> for details.</td></tr>
1337 <td valign="top"><a name="desc_cookiesecure">cookiesecure</a></td>
1338 <td valign="top">0</td>
1339 <td valign="top">Only set to 1 if your site uses HTTPS (see the <a href="http://www.php.net/manual/en/function.setcookie.php">PHP manual</a> for details).</td></tr>
1342 <h3><a name="misc_misc">Miscellaneous: Miscellaneous</a></h3>
1344 <table border="1" width="100%">
1345 <tr><th style="width:8%">Variable</th>
1346 <th style="width:29%">Default Value</th>
1347 <th style="width:63%">Description</th></tr>
1349 <td valign="top"><a name="desc_notification">notification</a></td>
1350 <td valign="top">array()</td>
1351 <td valign="top">Send an email notification to <tt>$_CONF['site_email']</tt>
1352 when a new story, comment, trackback or pingback has been submitted
1353 or a new user has registered with the site. The <tt>array()</tt> can hold
1354 any combination of the strings <tt>'story'</tt>, <tt>'comment'</tt>,
1355 <tt>'trackback'</tt>, <tt>'pingback'</tt>, and <tt>'user'</tt> (separated
1356 by commas), depending on which notification(s) you want.<br>
1357 <strong>Example:</strong> <code>array('story','user');</code> would
1358 send notifications when a new story has been submitted or a new user has
1359 registered. No notifications would be sent, for example, for new
1362 <td valign="top"><a name="desc_cron_schedule_interval">cron_schedule_interval</a></td>
1363 <td valign="top">0</td>
1364 <td valign="top">Geeklog can emulate a <a href="http://en.wikipedia.org/wiki/Cronjob">cronjob</a>, i.e. trigger a certain action at a given time. The code
1365 to be executed can be provided by a plugin or through the
1366 <code>CUSTOM_runScheduledTask</code> function in your
1367 <tt>lib-custom.php</tt>. The value given is in seconds and specifies the
1368 interval in which the code should be executed (e.g. 86400 for daily
1370 Please note that to trigger this action, you will need to have someone
1371 visit your site at around the specified time. On a site with few visitors,
1372 the code may only be executed with considerable delay.<br>
1373 Set to 0 to disable.</td></tr>
1375 <td valign="top"><a name="desc_disable_autolinks">disable_autolinks</a></td>
1376 <td valign="top">0</td>
1377 <td valign="top">If set to 1, disables the autolinks. I.e. links using the
1378 [story:] etc. syntax are not interpreted any more.</td></tr>
1380 <td valign="top"><a name="desc_clickable_links">clickable_links</a></td>
1381 <td valign="top">true</td>
1382 <td valign="top">Whether or not URLs in plain-text posting should
1383 automatically be turned into clickable links.</td></tr>
1385 <td valign="top"><a name="desc_compressed_output">disable_compressed_output</a></td>
1386 <td valign="top">false</td>
1387 <td valign="top">If enabled and supported by both the browser and the
1388 webserver, HTML output will be compressed before sending it to the browser.
1389 This will typically result in much smaller amounts of data to be sent
1390 (usually between 20% and 25%, compared to the uncompressed output). It may,
1391 however, result in slightly more load on the webserver.<br>
1392 For now, this feature should be considered <strong>experimental</strong> and
1393 hasn't been implemented for all HTML output yet.</td></tr>
1395 <td valign="top"><a name="desc_frame_options">frame_options</a></td>
1396 <td valign="top">DENY</td>
1397 <td valign="top">Protection against <a
1398 href="http://en.wikipedia.org/wiki/Clickjacking">Clickjacking</a>: This
1399 option indicates that the site's content should not be displayed in a frame.
1400 This only works, however, when the visitor's browser respects the
1401 <tt>X-FRAME-OPTIONS</tt> HTTP header. Options are to disallow all framing
1402 (Strict), only allow framing from within the same site (Same Origin), or to
1403 allow all framing (disabled). We strongly suggest <em>not</em> to disable
1404 this option.</td></tr>
1407 <h3><a name="misc_debug">Miscellaneous: Debug</a></h3>
1409 <table border="1" width="100%">
1410 <tr><th style="width:8%">Variable</th>
1411 <th style="width:29%">Default Value</th>
1412 <th style="width:63%">Description</th></tr>
1414 <td valign="top"><a name="desc_rootdebug">rootdebug</a></td>
1415 <td valign="top"><code>false</code></td>
1416 <td valign="top">When a PHP error occurs, Geeklog's error handler will only
1417 display the actual error message to members of the Root group (to prevent
1418 leakage of possibly sensitive information). When set to <code>true</code>,
1419 this information will be displayed to <em>all</em> users. <strong>Use only
1420 for debugging purposes!</strong><br>
1421 Tip: If an error prevents you from logging into your site to enable that
1422 option, you can also <a href="#desc_rootdebug_siteconfig">enable it in your
1423 <tt>siteconfig.php</tt></a> file.</td></tr>
1426 <h3><a name="misc_digest">Miscellaneous: Daily Digest</a></h3>
1428 <table border="1" width="100%">
1429 <tr><th style="width:8%">Variable</th>
1430 <th style="width:29%">Default Value</th>
1431 <th style="width:63%">Description</th></tr>
1433 <td valign="top"><a name="desc_emailstories">emailstories</a></td>
1434 <td valign="top">0</td>
1435 <td valign="top">Let users get stories e-mailed to them (0=no, 1=yes), aka Daily Digest.
1436 Please note that this requires cron and the use of PHP as a shell script.</td></tr>
1438 <td valign="top"><a name="desc_emailstorieslength">emailstorieslength</a></td>
1439 <td valign="top">1</td>
1440 <td valign="top">When emailstories (above) is enabled, send only the title and the
1441 link to the new stories (0), or send the entire introtext (1) or send
1442 the first <i>n</i> characters from the introtext (where <i>n</i> = any other number)</td></tr>
1444 <td valign="top"><a name="desc_emailstoriesperdefault">emailstoriesperdefault</a></td>
1445 <td valign="top">0</td>
1446 <td valign="top">When set to 1, new users will be subscribed to the daily digest
1447 automatically when they register with the site.</td></tr>
1450 <h3><a name="misc_html">Miscellaneous: HTML Filtering</a></h3>
1452 <table border="1" width="100%">
1453 <tr><th style="width:8%">Variable</th>
1454 <th style="width:29%">Default Value</th>
1455 <th style="width:63%">Description</th></tr>
1457 <td valign="top"><a name="desc_user_html">user_html</a></td>
1458 <td valign="top"><p>, <b>, <i>, <a>, <em>, <br>, <tt>, <hr>, <ol>, <ul>, <li>, <code>, <pre></td>
1459 <td valign="top">HTML tags and attributes that normal users are allowed to
1460 use in story submissions and comments.</td></tr>
1462 <td valign="top"><a name="desc_admin_html">admin_html</a></td>
1463 <td valign="top">additional HTML tags, e.g. for tables</td>
1464 <td valign="top">HTML tags and attributes that admin users are allowed to
1465 use (in addition to those from user_html). Redefining a tag with
1466 additional attributes will overwrite the definition from user_html.</td></tr>
1468 <td valign="top"><a name="desc_advanced_html">advanced_html</a></td>
1469 <td valign="top">additional HTML tags for use with the Advanced Editor, e.g.
1471 <td valign="top">Additional HTML tags and attributes that users are allowed
1472 to use when the <a href="#desc_advanced_editor">Advanced Editor</a> is
1475 <td valign="top"><a name="desc_skip_html_filter_for_root">skip_html_filter_for_root</a></td>
1476 <td valign="top">0</td>
1477 <td valign="top">When set to 1, this will allow members of the Root group
1478 to use <em>all</em> HTML in their posts. <strong>Use at your own risk!</strong></td></tr>
1480 <td valign="top"><a name="desc_allowed_protocols">allowed_protocols</a></td>
1481 <td valign="top">array ('http', 'https', 'ftp');</td>
1482 <td valign="top">Defines which protocols are allowed in links (i.e. HTML
1483 <code><a></code> tags).</td></tr>
1486 <h3><a name="misc_censoring">Miscellaneous: Censoring</a></h3>
1488 <table border="1" width="100%">
1489 <tr><th style="width:8%">Variable</th>
1490 <th style="width:29%">Default Value</th>
1491 <th style="width:63%">Description</th></tr>
1493 <td valign="top"><a name="desc_censormode">censormode</a></td>
1494 <td valign="top">1</td>
1495 <td valign="top">Censor submissions and comments (0 = Disabled, 1 = Enabled, exact matches, 2 = Enabled, match start of word, 3 = Enabled, match fragment)</td></tr>
1497 <td valign="top"><a name="desc_censorreplace">censorreplace</a></td>
1498 <td valign="top">*censored*</td>
1499 <td valign="top">Text to replace a censored word with</td></tr>
1501 <td valign="top"><a name="desc_censorlist">censorlist</a></td>
1502 <td valign="top">array(<i>a list of "bad" words goes here ...</i>)</td>
1503 <td valign="top">An array of censored words</td></tr>
1506 <h3><a name="misc_ip_lookup">Miscellaneous: IP Lookup</a></h3>
1508 <table border="1" width="100%">
1509 <tr><th style="width:8%">Variable</th>
1510 <th style="width:29%">Default Value</th>
1511 <th style="width:63%">Description</th></tr>
1513 <td valign="top"><a name="desc_ip_lookup">ip_lookup</a></td>
1514 <td valign="top"><i>not set</i></td>
1515 <td valign="top">The IP addresses of comment posters are logged and displayed for admin users. When this variable is set to point to a service that can do IP address lookups, it's possible to lookup the owner of an IP address by clicking on it, making it easier to report abuse to ISPs, etc.<br>
1516 <code>$_CONF['ip_lookup']</code> should hold the complete URL to the lookup service, with a '<code>*</code>' marking the place where the IP address should go. It's also possible to use Tom Willet's <a href="http://sourceforge.net/project/showfiles.php?group_id=68255&package_id=95743">NetTools</a> package, in which case the correct setting would be <code>$_CONF['ip_lookup'] = $_CONF['site_url'] . '/nettools/whois.php?domain=*';</code></td></tr>
1519 <h3><a name="misc_ip_webservices">Miscellaneous: Webservices</a></h3>
1521 <table border="1" width="100%">
1522 <tr><th style="width:8%">Variable</th>
1523 <th style="width:29%">Default Value</th>
1524 <th style="width:63%">Description</th></tr>
1526 <td valign="top"><a name="desc_disable_webservices">disable_webservices</a></td>
1527 <td valign="top">false</td>
1528 <td valign="top">Set this to <code>true</code> to disable the webservices.</td></tr>
1530 <td valign="top"><a name="desc_restrict_webservices">restrict_webservices</a></td>
1531 <td valign="top">false</td>
1532 <td valign="top">Set this to <code>true</code> to restrict webservices usage
1533 to users with the <tt>webservices.atompub</tt> permission (e.g. those in
1534 the predefined "Webservices Users" group).</td></tr>
1536 <td valign="top"><a name="desc_atom_max_stories">atom_max_stories</a></td>
1537 <td valign="top">10</td>
1538 <td valign="top">Max. number of stories returned when an Atom feed is
1539 requested through the webservices API.</td></tr>
1542 <p>Also see <a href="http://wiki.geeklog.net/wiki/index.php/Using_the_Webservices">Using the Webservices</a> in the Geeklog Wiki.</p>
1545 <h2><a name="db-config.php">db-config.php</a></h2>
1547 <p>As the name implies, the file <tt>db-config.php</tt> contains the database
1548 configuration. This information is put there during the initial install and
1549 you should not normally have to edit this file.</p>
1551 <table border="1" width="100%">
1552 <tr><th style="width:8%">Variable</th>
1553 <th style="width:29%">Default Value</th>
1554 <th style="width:63%">Description</th></tr>
1555 <tr><td valign="top">_DB_host</td>
1556 <td valign="top">localhost</td>
1557 <td valign="top">Database Server (to be entered in the form: <i>hostname:port:unixsocket</i>). In most cases you won't need to change the default value.</td></tr>
1558 <tr><td valign="top">_DB_name</td>
1559 <td valign="top">geeklog</td>
1560 <td valign="top">Database Name</td></tr>
1561 <tr><td valign="top">_DB_user</td>
1562 <td valign="top">root</td>
1563 <td valign="top">Database User Account</td></tr>
1564 <tr><td valign="top">_DB_pass</td>
1565 <td valign="top">null</td>
1566 <td valign="top">Database User Password</td></tr>
1567 <tr><td valign="top">_DB_table_prefix</td>
1568 <td valign="top">gl_</td>
1569 <td valign="top">Prefix to put in front of all of Geeklog's table names (to
1570 avoid name collisions with tables used by other applications)</td></tr>
1571 <tr><td valign="top">_DB_dbms</td>
1572 <td valign="top">mysql</td>
1573 <td valign="top">This option tells Geeklog which type of database it's
1574 running on. Can be either <code>'mysql'</code> (for MySQL) or
1575 <code>'mssql'</code> (for Microsoft SQL Server).</td></tr>
1579 <h2><a name="siteconfig.php">siteconfig.php</a></h2>
1581 <p>The <tt>siteconfig.php</tt> file holds configuration data that can not be
1582 stored in the database. Again, most of this information is put there during
1583 the installation and you should not normally have to edit this file.</p>
1585 <table border="1" width="100%">
1586 <tr><th style="width:8%">Variable</th>
1587 <th style="width:29%">Default Value</th>
1588 <th style="width:63%">Description</th></tr>
1589 <tr><td valign="top"><a name="desc_path">path</a></td>
1590 <td valign="top">/path/to/geeklog/</td>
1591 <td valign="top">Base file system path for your site (trailing slash necessary)</td></tr>
1592 <tr><td valign="top"><a name="desc_path_system">path_system</a></td>
1593 <td valign="top">/path/to/geeklog/system/</td>
1594 <td valign="top">Path to your system directory for your site (trailing slash necessary). This directory holds the code libraries used throughout Geeklog</td></tr>
1596 <td valign="top"><a name="desc_site_enabled">site_enabled</a></td>
1597 <td valign="top">true</td>
1598 <td valign="top">A Geeklog site can be disabled quickly (e.g. for maintenance)
1599 by setting this to 'false'.<br>
1600 Also see the <a href="#desc_site_disabled_msg">site_disabled_msg</a>
1601 configuration option.</td></tr>
1603 <td valign="top"><a name="desc_default_charset">default_charset</a></td>
1604 <td valign="top">iso-8859-1</td>
1605 <td valign="top">Character encoding used by Geeklog when serving HTML pages or
1606 sending email. Only used if the language file did not already set
1607 another character encoding.<br>
1608 For <a href="http://wiki.geeklog.net/wiki/index.php/Multi-Language_Support">multi-language</a> setups, using <code>'utf-8'</code> as the default character
1609 set is recommended.</td></tr>
1611 <td valign="top"><a name="desc_rootdebug_siteconfig">rootdebug</a></td>
1612 <td valign="top"><i>(disabled)</i></td>
1613 <td valign="top">Same as the '<a href="#desc_rootdebug">rootdebug</a>' option
1614 in the Configuration. However, sometimes an error may occur that prevents
1615 you from logging into your site and enabling the 'rootdebug' option. In
1616 such a case, you can uncomment this line and enable the option here.<br>
1617 In addition to 'true' and 'false', you can also set this option to 'force'
1618 (only in <tt>siteconfig.php</tt>). This will enable displaying of sensitive
1619 information like passwords and cookies.<br>
1620 In any case, the same strong warning as <a href="#desc_rootdebug">above</a>
1621 applies here, too: <strong>Do not leave this option enabled on a "live"
1622 site!</strong></td></tr>
1626 <h2><a name="url-rewrite">URL Rewriting</a></h2>
1628 <p>Geeklog includes a simple but useful URL rewriting feature which can help
1629 make your site more crawler friendly (i.e. the URLs of your site are more
1630 likely to be picked up by the search engine's indexing bots). This feature is
1631 supported for URLs to stories, static pages, the article directory, and links.
1633 <p>URL rewriting means that your URLs will look like this</p>
1634 <p style="margin-left:4em;"><tt>http://www.geeklog.net/article.php/20021022234959146</tt></p>
1635 <p>instead of like this</p>
1636 <p style="margin-left:4em;"><tt>http://www.geeklog.net/article.php?story=20021022234959146</tt></p>
1637 <p>While some search engines will pick up the second form, Google seems to
1638 prefer the first format and often ignores the second format.</p>
1639 <p><strong>Note:</strong> This feature may not work with all web servers. It
1640 is known to work with Apache (all versions) and known <em>not</em> to work
1641 with IIS (at least some versions). Please try it out before you go public
1645 <h2><a name="Localization">Localization</a></h2>
1647 <p>Localizing Geeklog is fairly easy. All strings are contained in a
1648 language file. The default file that ships with the tarball is english.php.
1649 People interested in translating Geeklog to other languages are encouraged
1651 href="http://lists.geeklog.net/listinfo/geeklog-translations">geeklog-translations</a>
1652 mailing list. All important information concerning translating Geeklog will
1655 <h3><a name="date_formats">Locale and Date Formats</a></h3>
1657 <p>You can set the locale and date format in the configuration. To set the
1658 locale, set the variable to the proper string or if you leave it blank it
1659 will pull the default locale from the operating system. The date formats
1660 are handled by your locale. Isn't that smart? Locale names are OS
1661 dependent. On most UNIX hosts, you can find locale codes in the
1662 <i>/usr/share/locale/locale.alias</i> file and on some systems the command
1663 <i>locale -a</i> will display all available locales on a system. If a
1664 locale doesn't exist you can create it using the <i>localedef</i> command.
1666 <p>More info on locale: <a
1667 href="http://www.opengroup.org/onlinepubs/7908799/xbd/locale.html">http://www.opengroup.org/onlinepubs/7908799/xbd/locale.html</a><br>
1668 More info on localdef: <a
1669 href="http://www.opengroup.org/onlinepubs/7908799/xcu/localedef.html">http://www.opengroup.org/onlinepubs/7908799/xcu/localedef.html</a>
1671 <h3>Date Format Syntax</h3>
1674 <li><tt>%a - abbreviated weekday name according to the current locale</tt></li>
1675 <li><tt>%A - full weekday name according to the current locale</tt></li>
1676 <li><tt>%b - abbreviated month name according to the current locale</tt></li>
1677 <li><tt>%B - full month name according to the current locale</tt></li>
1678 <li><tt>%c - preferred date and time representation for the current locale</tt></li>
1679 <li><tt>%C - century number (the year divided by 100 and truncated to an integer, range 00 to 99)</tt></li>
1680 <li><tt>%d - day of the month as a decimal number (range 00 to 31)</tt></li>
1681 <li><tt>%D - same as %m/%d/%y</tt></li>
1682 <li><tt>%e - day of the month as a decimal number, a single digit is preceded by a space (range ' 1' to '31')</tt></li>
1683 <li><tt>%h - same as %b</tt></li>
1684 <li><tt>%H - hour as a decimal number using a 24-hour clock (range 00 to 23)</tt></li>
1685 <li><tt>%I - hour as a decimal number using a 12-hour clock (range 01 to 12)</tt></li>
1686 <li><tt>%j - day of the year as a decimal number (range 001 to 366)</tt></li>
1687 <li><tt>%m - month as a decimal number (range 1 to 12)</tt></li>
1688 <li><tt>%M - minute as a decimal number</tt></li>
1689 <li><tt>%n - newline character</tt></li>
1690 <li><tt>%p - either `am' or `pm' according to the given time value, or the corresponding strings for the current locale</tt></li>
1691 <li><tt>%r - time in a.m. and p.m. notation</tt></li>
1692 <li><tt>%R - time in 24 hour notation</tt></li>
1693 <li><tt>%S - second as a decimal number</tt></li>
1694 <li><tt>%t - tab character</tt></li>
1695 <li><tt>%T - current time, equal to %H:%M:%S</tt></li>
1696 <li><tt>%u - weekday as a decimal number [1,7], with 1 representing Monday</tt></li>
1697 <li><tt>%U - week number of the current year as a decimal number, starting with the first Sunday as the first day of the first week</tt></li>
1698 <li><tt>%V - The ISO 8601:1988 week number of the current year as a decimal number, range 01 to 53, where week 1 is the first week that has at least 4 days in the current year, and with Monday as the first day of the week.</tt></li>
1699 <li><tt>%W - week number of the current year as a decimal number, starting with the first Monday as the first day of the first week</tt></li>
1700 <li><tt>%w - day of the week as a decimal, Sunday being 0</tt></li>
1701 <li><tt>%x - preferred date representation for the current locale without the time</tt></li>
1702 <li><tt>%X - preferred time representation for the current locale without the date</tt></li>
1703 <li><tt>%y - year as a decimal number without a century (range 00 to 99)</tt></li>
1704 <li><tt>%Y - year as a decimal number including the century</tt></li>
1705 <li><tt>%Z - time zone or name or abbreviation</tt></li>
1706 <li><tt>%% - a literal `%' character</tt></li>
1709 <div class="footer">
1710 <a href="http://wiki.geeklog.net/">The Geeklog Documentation Project</a><br>
1711 All trademarks and copyrights on this page are owned by their respective owners. Geeklog is copyleft.