Added new option $_CONF['article_comment_close_enabled'] to enable/disable automatically closing stories for comments after a certain amount of days (bug #0000959). Changed handling of comment_expire field in gl_stories such that 0 means the story is always open for comments.
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 seperated 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>
423 <h3><a name="stories_trackback">Stories and Trackback: Trackback</a></h3>
425 <table border="1" width="100%">
426 <tr><th style="width:8%">Variable</th>
427 <th style="width:29%">Default Value</th>
428 <th style="width:63%">Description</th></tr>
430 <td valign="top"><a name="desc_trackback_enabled">trackback_enabled</a></td>
431 <td valign="top">true</td>
432 <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>
434 <td valign="top"><a name="desc_trackback_code">trackback_code</a></td>
435 <td valign="top">0</td>
436 <td valign="top">Default value for new stories: Trackback enabled (0) or disabled (-1)</td></tr>
438 <td valign="top"><a name="desc_trackbackspeedlimit">trackbackspeedlimit</a></td>
439 <td valign="top">300</td>
440 <td valign="top">Number of seconds between two trackbacks / pingbacks from the same IP address.</td></tr>
442 <td valign="top"><a name="desc_check_trackback_link">check_trackback_link</a></td>
443 <td valign="top">2</td>
444 <td valign="top">This option can be used to check the validity of a trackback.
445 You can check if the URL in the trackback actually contains a link back to
446 your site (otherwise, it's probably spam). You can also check if the
447 trackback was sent from the proper IP address, i.e. the IP of the site in
448 the trackback URL (again, if they don't match, it's probably spam). Note
449 that you can <strong>add up the values</strong> below to do more than one
450 check (but using option 1 <em>and</em> 2 doesn't make sense and will be
451 treated as if you requested option 2).<br>
452 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>
453 <b>Example:</b> <code>$_CONF['check_trackback_link'] = 6; // check for the exact URL (2) and proper IP address (4)</code></td></tr>
455 <td valign="top"><a name="desc_multiple_trackbacks">multiple_trackbacks</a></td>
456 <td valign="top">0</td>
457 <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>
460 <h3><a name="stories_pingback">Stories and Trackback: Pingback</a></h3>
462 <table border="1" width="100%">
463 <tr><th style="width:8%">Variable</th>
464 <th style="width:29%">Default Value</th>
465 <th style="width:63%">Description</th></tr>
467 <td valign="top"><a name="desc_pingback_enabled">pingback_enabled</a></td>
468 <td valign="top">true</td>
469 <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>
471 <td valign="top"><a name="desc_pingback_excerpt">pingback_excerpt</a></td>
472 <td valign="top">true</td>
473 <td valign="top">Unlike Trackbacks, Pingback don't include an excerpt of the
474 text from the site linking to us. When this option is enabled, Geeklog will
475 try and create an excerpt by searching the backlink on the site that sent
476 the Pingback, extract a piece of the text near the link, and use that as
477 the excerpt for the Pingback.</td></tr>
479 <td valign="top"><a name="desc_pingback_self">pingback_self</a></td>
480 <td valign="top">0</td>
481 <td valign="top">Pingbacks are sent out automatically to <em>all</em> the
482 URLs linked from a story - which includes stories on your own site that
483 you may have linked in the article. This option lets you specify how these
484 "self pingbacks" are to be handled: 0 = skip them, i.e. don't send pingbacks
485 to stories on your own site; 1 = allow them, but obey the speed limit;
486 2 = allow them and ignore the speed limit.<br>
487 If your article contains more than one link to other stories on your site,
488 then option 1 is probably of limited use, as it would only pingback the
489 first linked story and run into the speed limit for the others.</td></tr>
491 <td valign="top"><a name="desc_ping_enabled">ping_enabled</a></td>
492 <td valign="top">true</td>
493 <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>
497 <h2><a name="theme">Theme</a></h2>
499 <h3><a name="theme_theme">Theme: Theme</a></h3>
501 <table border="1" width="100%">
502 <tr><th style="width:8%">Variable</th>
503 <th style="width:29%">Default Value</th>
504 <th style="width:63%">Description</th></tr>
506 <td valign="top"><a name="desc_theme">theme</a></td>
507 <td valign="top">professional</td>
508 <td valign="top">Default theme to use on the site</td></tr>
510 <td valign="top"><a name="desc_doctype">doctype</a></td>
511 <td valign="top">HTML 4.01 Strict</td>
513 href="http://en.wikipedia.org/wiki/Document_Type_Declaration">Document Type
514 Declaration</a> (aka DOCTYPE aka DTD) to use for all the themes on your
515 site, assuming they use the <tt>{doctype}</tt> variable instead of a
516 hard-coded DOCTYPE in their <tt>header.thtml</tt>.</td></tr>
518 <td valign="top"><a name="desc_menu_elements">menu_elements</a></td>
519 <td valign="top"><code>array('contribute', 'calendar', 'search', 'stats',
520 'directory', 'plugins')</code></td>
521 <td valign="top">Specifies which entries are displayed in the site's menu bar
522 (if your theme uses the <code>{menu_elements}</code> variable to display
523 the menu bar). Can be any combination of <tt>'home'</tt>,
524 <tt>'contribute'</tt>, <tt>'calendar'</tt>, <tt>'search'</tt>,
525 <tt>'directory'</tt>, <tt>'prefs'</tt>, <tt>'plugins'</tt>,
526 and <tt>'custom'</tt> where <tt>'plugins'</tt> is the same as the
527 <code>{plg_menu_elements}</code> variable, i.e. a list of the menu entries
528 provided by plugins, and <tt>'custom'</tt> displays the entries returned by
529 a custom function <code>CUSTOM_menuEntries</code> (see
530 <tt>lib-custom.php</tt> for details).</td></tr>
532 <td valign="top"><a name="desc_path_themes">path_themes</a></td>
533 <td valign="top">/path/to/geeklog/public_html/layout/</td>
534 <td valign="top">Directory where all themes reside</td></tr>
537 <h3><a name="theme_advanced">Theme: Advanced Settings</a></h3>
539 <table border="1" width="100%">
540 <tr><th style="width:8%">Variable</th>
541 <th style="width:29%">Default Value</th>
542 <th style="width:63%">Description</th></tr>
544 <td valign="top"><a name="desc_show_right_blocks">show_right_blocks</a></td>
545 <td valign="top">false</td>
546 <td valign="top">If set to <tt>true</tt>, the right-side column of blocks
547 will be displayed on <em>all</em> pages (instead of only on the index
550 <td valign="top"><a name="desc_showfirstasfeatured">showfirstasfeatured</a></td>
551 <td valign="top">0</td>
552 <td valign="top">When set to 1, this will render the first story on <em>any</em> page
553 using the templates for a featured story, even if that story is not
554 featured. This will even be applied to the first story on page 2 of a
555 topic page, for example.</td></tr>
559 <h2><a name="blocks">Blocks</a></h2>
561 <h3><a name="blocks_admin">Blocks: Admin Block</a></h3>
563 <table border="1" width="100%">
564 <tr><th style="width:8%">Variable</th>
565 <th style="width:29%">Default Value</th>
566 <th style="width:63%">Description</th></tr>
568 <td valign="top"><a name="desc_sort_admin">sort_admin</a></td>
569 <td valign="top">false</td>
570 <td valign="top">If set to <tt>true</tt> will sort the entries in the Admin's
571 block and the icons on the Submissions page (<tt>moderation.php</tt>)
572 alphabetically.</td></tr>
574 <td valign="top"><a name="desc_link_documentation">link_documentation</a></td>
575 <td valign="top">1</td>
576 <td valign="top">Add a link to Geeklog's documentation to the Admin block.
577 Set this to 0 if you don't want that link to show up.</td></tr>
579 <td valign="top"><a name="desc_link_versionchecker">link_versionchecker</a></td>
580 <td valign="top">1</td>
581 <td valign="top">Add a link "GL Version Test" to the Admin block so that you
582 can easily check if your Geeklog version is up to date. Set this to 0 if
583 you don't want that link to show up.<br>
584 <strong>Note:</strong> The link is only displayed to members of the Root
585 group anyway.</td></tr>
588 <h3><a name="blocks_topics">Blocks: Topics Block</a></h3>
590 <table border="1" width="100%">
591 <tr><th style="width:8%">Variable</th>
592 <th style="width:29%">Default Value</th>
593 <th style="width:63%">Description</th></tr>
595 <td valign="top"><a name="desc_sortmethod">sortmethod</a></td>
596 <td valign="top">alpha</td>
597 <td valign="top">alpha = Sort topics in topic list alphabetically<br>
598 sortnum = Sort topics in topic list by the given sort number</td></tr>
600 <td valign="top"><a name="desc_showstorycount">showstorycount</a></td>
601 <td valign="top">1</td>
602 <td valign="top">Show the number of stories in a topic in the Sections block (0=no, 1=yes)</td></tr>
604 <td valign="top"><a name="desc_showsubmissioncount">showsubmissioncount</a></td>
605 <td valign="top">1</td>
606 <td valign="top">Show the number of story submissions for a topic in the Sections block (0=no, 1=yes)</td></tr>
608 <td valign="top"><a name="desc_hide_home_link">hide_home_link</a></td>
609 <td valign="top">0</td>
610 <td valign="top">Hide the "Home" link from the Sections block (0=no, 1=yes)</td></tr>
613 <h3><a name="blocks_who">Blocks: Who's Online Block</a></h3>
615 <table border="1" width="100%">
616 <tr><th style="width:8%">Variable</th>
617 <th style="width:29%">Default Value</th>
618 <th style="width:63%">Description</th></tr>
620 <td valign="top"><a name="desc_whosonline_threshold">whosonline_threshold</a></td>
621 <td valign="top">300</td>
622 <td valign="top">How long, in seconds, users can be idle before removing them from the whosonline block</td></tr>
624 <td valign="top"><a name="desc_whosonline_anonymous">whosonline_anonymous</a></td>
625 <td valign="top">0</td>
626 <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>
629 <h3><a name="blocks_what">Blocks: What's New Block</a></h3>
631 <table border="1" width="100%">
632 <tr><th style="width:8%">Variable</th>
633 <th style="width:29%">Default Value</th>
634 <th style="width:63%">Description</th></tr>
636 <td valign="top"><a name="desc_newstoriesinterval">newstoriesinterval</a></td>
637 <td valign="top">86400</td>
638 <td valign="top">Stories are "new" if they are this many seconds old.</td></tr>
640 <td valign="top"><a name="desc_newcommentsinterval">newcommentsinterval</a></td>
641 <td valign="top">172800</td>
642 <td valign="top">Comments are "new" if they are this many seconds old.</td></tr>
644 <td valign="top"><a name="desc_newtrackbackinterval">newtrackbackinterval</a></td>
645 <td valign="top">172800</td>
646 <td valign="top">Trackback comments are "new" if they are this many seconds old.</td></tr>
648 <td valign="top"><a name="desc_hidenewstories">hidenewstories</a></td>
649 <td valign="top">0</td>
650 <td valign="top">Set to 1 to hide new stories from the What's New block.</td></tr>
652 <td valign="top"><a name="desc_hidenewcomments">hidenewcomments</a></td>
653 <td valign="top">0</td>
654 <td valign="top">Set to 1 to hide new comments from the What's New block.</td></tr>
656 <td valign="top"><a name="desc_hidenewtrackbacks">hidenewtrackbacks</a></td>
657 <td valign="top">0</td>
658 <td valign="top">Set to 1 to hide new trackback comments from the What's New block.</td></tr>
660 <td valign="top"><a name="desc_hidenewplugins">hidenewplugins</a></td>
661 <td valign="top">0</td>
662 <td valign="top">Set to 1 to hide new entries by plugins from the What's New
665 <td valign="top"><a name="desc_title_trim_length">title_trim_length</a></td>
666 <td valign="top">20</td>
667 <td valign="top">Max. length of the title of items listed in the What's New
672 <h2><a name="users">Users and Submissions</a></h2>
674 <h3><a name="users_users">Users and Submissions: Users</a></h3>
676 <table border="1" width="100%">
677 <tr><th style="width:8%">Variable</th>
678 <th style="width:29%">Default Value</th>
679 <th style="width:63%">Description</th></tr>
681 <td valign="top"><a name="desc_disable_new_user_registration">disable_new_user_registration</a></td>
682 <td valign="top">false</td>
683 <td valign="top">When set to <tt>true</tt> completely disables all options
684 to sign up as a new user.</td></tr>
686 <td valign="top"><a name="desc_allow_user_themes">allow_user_themes</a></td>
687 <td valign="top">Can be 1 or 0</td>
688 <td valign="top">If set to 1, users can set their own theme that the site uses</td></tr>
690 <td valign="top"><a name="desc_allow_user_language">allow_user_language</a></td>
691 <td valign="top">Can be 1 or 0</td>
692 <td valign="top">If set to 1, users can select the language for the site navigation</td></tr>
694 <td valign="top"><a name="desc_allow_user_photo">allow_user_photo</a></td>
695 <td valign="top">Can be 1 or 0</td>
696 <td valign="top">If set to 1, users can upload a photo to their profile</td></tr>
698 <td valign="top"><a name="desc_allow_username_change">allow_username_change</a></td>
699 <td valign="top">0</td>
700 <td valign="top">If set to 1, users will be allowed to change their username
701 (login name). Stories and comments posted under the old username will
702 automatically show the new username.</td></tr>
704 <td valign="top"><a name="desc_allow_account_delete">allow_account_delete</a></td>
705 <td valign="top">0</td>
706 <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>
708 <td valign="top"><a name="desc_hide_author_exclusion">hide_author_exclusion</a></td>
709 <td valign="top">Can be 1 or 0</td>
710 <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>
712 <td valign="top"><a name="desc_show_fullname">show_fullname</a></td>
713 <td valign="top">0</td>
714 <td valign="top">Whether to display a user's full name (= 1) or only their
715 username (= 0). For users that haven't entered their full name, Geeklog
716 will always display the username.</td></tr>
718 <td valign="top"><a name="desc_show_servicename">show_servicename</a></td>
719 <td valign="top">true</td>
720 <td valign="top">If you allow users to log in with accounts on remote services
721 (like LDAP or LiveJournal), this option will at the service's name to
722 the username to avoid confusion with local users of the same name. Set to
723 <tt>false</tt> to disable.</td></tr>
725 <td valign="top"><a name="desc_custom_registration">custom_registration</a></td>
726 <td valign="top"><code>false</code></td>
727 <td valign="top">When set to <code>true</code>, Geeklog will let you use
728 your own signup form for new user registrations. Please see the file
729 <tt>lib-custom.php</tt> that ships with Geeklog for an example.</td></tr>
731 <td valign="top"><a name="desc_login_method_standard">standard</a></td>
732 <td valign="top"><code>true</code></td>
733 <td valign="top">Whether to allow normal logins into the site, i.e. with
734 a user account that only exists in your site's database.</td></tr>
736 <td valign="top"><a name="desc_login_method_openid">openid</a></td>
737 <td valign="top"><code>false</code></td>
738 <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>
739 <strong>Note:</strong> Currently only OpenID 1.1 is supported.</td></tr>
741 <td valign="top"><a name="desc_login_method_3rdparty">3rdparty</a></td>
742 <td valign="top"><code>false</code></td>
743 <td valign="top">Allow (when set to <tt>true</tt>) users who already have
744 an account with some other service to log into your Geeklog site with the
745 login for that service. Currently supported: LDAP and LiveJournal.<br>
746 Please note that to enable login for a specific service, you need an
747 authorization class in <tt>system/classes/authentication</tt>. If you only
748 want to allow LDAP but not LiveJournal users (or vice versa), simply
749 remove the class file for the unwanted service(s).<br>
750 See <a href="http://www.geeklog.net/article.php/remote-authentication">Remote Authentication in Geeklog</a> for more information.</td></tr>
752 <td valign="top"><a name="desc_aftersave_user">aftersave_user</a></td>
753 <td valign="top"><code>'item'</code></td>
754 <td valign="top">Which page to go to after a user has been saved:
756 <li>'item': display the user's profile</li>
757 <li>'list': show admin's list of users (default)</li>
758 <li>'home': display the site's homepage</li>
759 <li>'admin': go to the "Admin Home" page, i.e. Command & Control</li>
763 <h3><a name="users_spamx">Users and Submissions: Spam-X</a></h3>
765 <table border="1" width="100%">
766 <tr><th style="width:8%">Variable</th>
767 <th style="width:29%">Default Value</th>
768 <th style="width:63%">Description</th></tr>
770 <td valign="top"><a name="desc_spamx">spamx</a></td>
771 <td valign="top">128</td>
772 <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
773 of all values that uniquely identify the Spam-X modules that should be
774 executed. E.g. the "delete" action module uses 128, the "email admin"
775 module uses 8, so if both modules should be executed, this option should
776 be set to 128 + 8 = 136.</td></tr>
779 <h3><a name="users_login">Users and Submissions: Login Settings</a></h3>
781 <table border="1" width="100%">
782 <tr><th style="width:8%">Variable</th>
783 <th style="width:29%">Default Value</th>
784 <th style="width:63%">Description</th></tr>
786 <td valign="top"><a name="desc_lastlogin">lastlogin</a></td>
787 <td valign="top"><code>true</code></td>
788 <td valign="top">Whether to keep track of when a user last logged in
789 (<code>= true</code>) or not (<code>= false</code>).</td></tr>
790 <tr><td valign="top"><a name="desc_loginrequired">loginrequired</a></td>
791 <td valign="top">0</td>
792 <td valign="top">Login is required to access <em>any</em> part of the site. When
793 set to 1, this overrides the following settings. When you only want to
794 block access to certain parts of the site, set this to 0 and select
795 from the following settings.</td></tr>
796 <tr><td valign="top"><a name="desc_submitloginrequired">submitloginrequired</a></td>
797 <td valign="top">0</td>
798 <td valign="top">When set to 1, only registered users can submit stories
799 and items handled by plugins, e.g. links and events</td></tr>
800 <tr><td valign="top"><a name="desc_commentsloginrequired">commentsloginrequired</a></td>
801 <td valign="top">0</td>
802 <td valign="top">When set to 1, only registered users can submit comments</td></tr>
803 <tr><td valign="top"><a name="desc_statsloginrequired">statsloginrequired</a></td>
804 <td valign="top">0</td>
805 <td valign="top">When set to 1, only registered users can access the site stats</td></tr>
806 <tr><td valign="top"><a name="desc_searchloginrequired">searchloginrequired</a></td>
807 <td valign="top">0</td>
808 <td valign="top">When set to 1, only registered users can use the advanced search. When
809 set to 2, the simple search is blocked for anonymous users, too.</td></tr>
810 <tr><td valign="top"><a name="desc_profileloginrequired">profileloginrequired</a></td>
811 <td valign="top">0</td>
812 <td valign="top">When set to 1, only registered users can view another user's profile</td></tr>
813 <tr><td valign="top"><a name="desc_emailuserloginrequired">emailuserloginrequired</a></td>
814 <td valign="top">0</td>
815 <td valign="top">When set to 1, only registered users can use the email submission
816 form to send an email to another user</td></tr>
817 <tr><td valign="top"><a name="desc_emailstoryloginrequired">emailstoryloginrequired</a></td>
818 <td valign="top">0</td>
819 <td valign="top">When set to 1, only registered users can email stories</td></tr>
820 <tr><td valign="top"><a name="desc_directoryloginrequired">directoryloginrequired</a></td>
821 <td valign="top">0</td>
822 <td valign="top">When set to 1, only registered users can access the list of past articles</td></tr>
824 <td valign="top"><a name="desc_passwordspeedlimit">passwordspeedlimit</a></td>
825 <td valign="top">300</td>
826 <td valign="top">Minimum delay between two requests for a new password, in seconds.</td></tr>
828 <td valign="top"><a name="desc_login_attempts">login_attempts</a></td>
829 <td valign="top">3</td>
830 <td valign="top">Max. number of login attempts before the speedlimit (see
831 below) kicks in and further logins are blocked for the given amount of
834 <td valign="top"><a name="desc_login_speedlimit">login_speedlimit</a></td>
835 <td valign="top">300</td>
836 <td valign="top">How many seconds have to pass before another login attempt
837 can be made after <code>$_CONF['login_attempts']</code> (see above) login
838 attempts have failed.</td></tr>
841 <h3><a name="users_usersub">Users and Submissions: User Submission</a></h3>
843 <table border="1" width="100%">
844 <tr><th style="width:8%">Variable</th>
845 <th style="width:29%">Default Value</th>
846 <th style="width:63%">Description</th></tr>
848 <td valign="top"><a name="desc_usersubmission">usersubmission</a></td>
849 <td valign="top">0</td>
850 <td valign="top">Enable (1) or disable (0) the user submission queue (i.e.
851 new users must be approved before they receive their password)</td></tr>
853 <td valign="top"><a name="desc_allow_domains">allow_domains</a></td>
854 <td valign="top">''</td>
855 <td valign="top">When the user submission queue is enabled this can contain a
856 comma-separated list of domain names from which user submissions will not
857 be queued (but approved automatically). Regular expressions are also allowed
858 and interpreted.<br><strong>Example:</strong>
859 <tt>'mycompany.com,myothercompany.com'</tt></td></tr>
861 <td valign="top"><a name="desc_disallow_domains">disallow_domains</a></td>
862 <td valign="top">''</td>
863 <td valign="top">This is the opposite of <code>$_CONF['allow_domains']</code>
864 (see above): A list of domain names that are <em>not</em> allowed in email
865 addresses of new users. Note that this list is <em>always</em> used, even
866 when the user submission queue has been switched off. Again, regular
867 expression can be used.<br><strong>Example</strong> disallow email addresses
868 with a certain domain name and from any ".edu" domain:
869 <tt>'somebaddomain.com,\.edu$'</tt></td></tr>
872 <h3><a name="users_submission">Users and Submissions: Submission Settings</a></h3>
874 <table border="1" width="100%">
875 <tr><th style="width:8%">Variable</th>
876 <th style="width:29%">Default Value</th>
877 <th style="width:63%">Description</th></tr>
879 <td valign="top"><a name="desc_storysubmission">storysubmission</a></td>
880 <td valign="top">1</td>
881 <td valign="top">Enable (1) or disable (0) the story submission queue</td></tr>
883 <td valign="top"><a name="desc_listdraftstories">listdraftstories</a></td>
884 <td valign="top">0</td>
885 <td valign="top">When set to 1, this will display an additional block on the
886 submissions page (<tt>moderation.php</tt>) that lists all the stories that
887 have the 'draft' flag set.</td></tr>
889 <td valign="top"><a name="desc_postmode">postmode</a></td>
890 <td valign="top">plaintext</td>
891 <td valign="top">Sets the default submission mode to 'html' or 'plaintext'</td></tr>
893 <td valign="top"><a name="desc_speedlimit">speedlimit</a></td>
894 <td valign="top">45</td>
895 <td valign="top">Minimum delay between submissions in seconds. This helps prevent Denial of Service (DOS) attacks</td></tr>
897 <td valign="top"><a name="desc_skip_preview">skip_preview</a></td>
898 <td valign="top">0</td>
899 <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>
901 <td valign="top"><a name="desc_advanced_editor">advanced_editor</a></td>
902 <td valign="top">false</td>
903 <td valign="top">Enable (if set to <code>true</code>) a WYSIWYG editor for
904 story and comment submissions and static pages. Geeklog ships with <a
905 href="http://www.fckeditor.net/">FCKeditor</a>.</td></tr>
907 <td valign="top"><a name="desc_wikitext_editor">wikitext_editor</a></td>
908 <td valign="top">false</td>
909 <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,
910 "Wiki-style format", to the Post Mode dropdown in the story editor
911 (implemented using the <a href="http://pear.php.net/package/Text_Wiki">PEAR::Text_Wiki</a> package).</td></tr>
914 <h3><a name="users_comments">Users and Submissions: Comments</a></h3>
916 <table border="1" width="100%">
917 <tr><th style="width:8%">Variable</th>
918 <th style="width:29%">Default Value</th>
919 <th style="width:63%">Description</th></tr>
921 <td valign="top"><a name="desc_commentspeedlimit">commentspeedlimit</a></td>
922 <td valign="top">45</td>
923 <td valign="top">Number of seconds between posting a comment for the user</td></tr>
925 <td valign="top"><a name="desc_comment_limit">comment_limit</a></td>
926 <td valign="top">100</td>
927 <td valign="top">Most number of comments to show at any one time</td></tr>
929 <td valign="top"><a name="desc_comment_mode">comment_mode</a></td>
930 <td valign="top">nested</td>
931 <td valign="top">How to display comments (threaded, nested, flat or nocomments)</td></tr>
933 <td valign="top"><a name="desc_comment_code">comment_code</a></td>
934 <td valign="top">0</td>
935 <td valign="top">Default value for new stories: Comments enabled (0) or disabled (-1)</td></tr>
937 <td valign="top"><a name="desc_comment_edit">comment_edit</a></td>
938 <td valign="top">0</td>
939 <td valign="top">Whether to allow users and admins (i.e. those with
940 comment.edit permission) to edit comments.</td></tr>
942 <td valign="top"><a name="desc_commentsubmission">commentsubmission</a></td>
943 <td valign="top">0</td>
944 <td valign="top">Enable (1) or disable (0) comment submission queue.</td></tr>
946 <td valign="top"><a name="desc_comment_edittime">comment_edittime</a></td>
947 <td valign="top">1800</td>
948 <td valign="top">How long (in seconds) a comment is editable for the user who
949 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
950 never edit their comments while admins can always edit comments.</td></tr>
952 <td valign="top"><a name="desc_article_comment_close_enabled">article_comment_close_enabled</a></td>
953 <td valign="top">0</td>
954 <td valign="top">Whether or not stories should be closed for comments after
955 a certain amount of days (see next option). This is only the default
956 setting for new stories and can be changed separately for each
959 <td valign="top"><a name="desc_article_comment_close_days">article_comment_close_days</a></td>
960 <td valign="top">30</td>
961 <td valign="top">Number of days after which a story is to be automatically
962 closed for comments, i.e. no new comments can be posted after that many
964 Note that this is only the default value to which the "Disable Comments"
965 option is set when creating a new story. It will not take effect unless it
966 has also been enabled for the story.</td></tr>
968 <td valign="top"><a name="desc_comment_close_rec_stories">comment_close_rec_stories</a></td>
969 <td valign="top">0</td>
970 <td valign="top">Number of most recent stories for which comment posting is
971 allowed. Posting a new story will automatically close comments for the
972 oldest of these stories.</td></tr>
974 <td valign="top"><a name="desc_allow_reply_notifications">allow_reply_notifications</a></td>
975 <td valign="top">0</td>
976 <td valign="top">Allow (1) or disallow (0) subscribing to comment
977 notifications. Registered users can get an email notifying them of direct
978 replies to comments they left.</td></tr>
982 <h2><a name="images">Images</a></h2>
984 <h3><a name="images_imagelib">Images: Image Library</a></h3>
986 <table border="1" width="100%">
987 <tr><th style="width:8%">Variable</th>
988 <th style="width:29%">Default Value</th>
989 <th style="width:63%">Description</th></tr>
991 <td valign="top"><a name="desc_image_lib">image_lib</a></td>
992 <td valign="top">None</td>
993 <td valign="top">Set this to either 'imagemagick', 'netpbm', or 'gdlib' if
994 images should be resized during upload. Leave as 'None' if you don't want
995 images to be resized or if you don't have those packages available.</td></tr>
997 <td valign="top"><a name="desc_path_to_mogrify">path_to_mogrify</a></td>
998 <td valign="top"><i>(disabled)</i></td>
999 <td valign="top">If you chose 'imagemagick' for
1000 <code>$_CONF['image_lib']</code> above, then this should hold the
1001 <strong>complete path</strong> to the mogrify executable (from the
1002 ImageMagick package), e.g. '/usr/bin/mogrify'.<br>
1003 You will need a fairly recent version of <a
1004 href="http://www.imagemagick.org/">ImageMagick</a> for this to work
1005 (version 5.4.9 or newer is recommended).</td></tr>
1007 <td valign="top"><a name="desc_path_to_netpbm">path_to_netpbm</a></td>
1008 <td valign="top"><i>(disabled)</i></td>
1009 <td valign="top">If you chose 'netpbm' for <code>$_CONF['image_lib']</code>
1010 above, then this should hold the complete path to the <em>directory</em>
1011 where the binaries from the Netpbm package are kept, e.g.
1012 <code>'/usr/bin/netpbm/'</code>. Note that the path must end in a slash.<br>
1013 Precompiled binaries for various platforms can be downloaded from the <a
1014 href="http://netpbm.sourceforge.net/">Netpbm homepage</a>.</td></tr>
1017 <h3><a name="images_upload">Images: Upload</a></h3>
1019 <table border="1" width="100%">
1020 <tr><th style="width:8%">Variable</th>
1021 <th style="width:29%">Default Value</th>
1022 <th style="width:63%">Description</th></tr>
1024 <td valign="top"><a name="desc_keep_unscaled_image">keep_unscaled_image</a></td>
1025 <td valign="top">0</td>
1026 <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>
1028 <td valign="top"><a name="desc_allow_user_scaling">allow_user_scaling</a></td>
1029 <td valign="top">1</td>
1030 <td valign="top">When unscaled images are kept (see above), this option lets
1031 the user chose between using the scaled or unscaled image in the story, i.e.
1032 enables the <code>[unscaled<i>X</i>]</code> image tag (in addition to the
1033 <code>[image<i>X</i>]</code> tag).</td></tr>
1035 <td valign="top"><a name="desc_jpeg_quality">jpeg_quality</a></td>
1036 <td valign="top"><i>(disabled)</i></td>
1037 <td valign="top">Control the image quality when resizing JPEGs. All the image
1038 libraries supported by Geeklog are based on the IJG JPEG library which uses
1039 an arbitrary range of 0-100 to specify the "quality" (note that this is
1040 <em>not</em> a percent value). The default, when not set, is 75 which
1041 provides good quality in most cases. In some cases, higher values may
1042 provide better results.<br>
1043 Rules of thumb: Values above 90 usually don't improve the image quality any
1044 more but only produce larger files. Values below 50 will result in poor
1045 image quality. Values of 25 and below will produce distorted
1048 <td valign="top"><a name="desc_debug_image_upload">debug_image_upload</a></td>
1049 <td valign="top"><code>false</code></td>
1050 <td valign="top">When set to <code>true</code>, this option enables debugging
1051 output to be written into Geeklog's <tt>error.log</tt> file during the
1052 upload of an image. This is useful to track down problems with the image
1056 <h3><a name="images_articles">Images: Images in Articles</a></h3>
1058 <table border="1" width="100%">
1059 <tr><th style="width:8%">Variable</th>
1060 <th style="width:29%">Default Value</th>
1061 <th style="width:63%">Description</th></tr>
1063 <td valign="top"><a name="desc_max_image_width">max_image_width</a></td>
1064 <td valign="top">160</td>
1065 <td valign="top">Max. width of an image in pixels. If it exceeds this, it is
1066 either rejected or resized (depending on the setting of
1067 <code>$_CONF['image_lib']</code> above).</td></tr>
1069 <td valign="top"><a name="desc_max_image_height">max_image_height</a></td>
1070 <td valign="top">120</td>
1071 <td valign="top">Max. height of an image in pixels. If it exceeds this, it is
1072 either rejected or resized (depending on the setting of
1073 <code>$_CONF['image_lib']</code> above).</td></tr>
1075 <td valign="top"><a name="desc_max_image_size">max_image_size</a></td>
1076 <td valign="top">1048576 <i>(equals 1 MB)</i></td>
1077 <td valign="top">Max. size of an image in bytes. If it exceeds this, it is
1078 is rejected (even if you're using a graphics package to resize images).</td></tr>
1081 <h3><a name="images_topic">Images: Topic Icons</a></h3>
1083 <table border="1" width="100%">
1084 <tr><th style="width:8%">Variable</th>
1085 <th style="width:29%">Default Value</th>
1086 <th style="width:63%">Description</th></tr>
1088 <td valign="top"><a name="desc_max_topicicon_width">max_topicicon_width</a></td>
1089 <td valign="top">48</td>
1090 <td valign="top">Max. width of a topic icon in pixels. If it exceeds this,
1091 it is either rejected or resized (depending on the setting of
1092 <code>$_CONF['image_lib']</code> above).</td></tr>
1094 <td valign="top"><a name="desc_max_topicicon_height">max_topicicon_height</a></td>
1095 <td valign="top">48</td>
1096 <td valign="top">Max. height of a topic icon in pixels. If it exceeds this,
1097 it is either rejected or resized (depending on the setting of
1098 <code>$_CONF['image_lib']</code> above).</td></tr>
1100 <td valign="top"><a name="desc_max_topicicon_size">max_topicicon_size</a></td>
1101 <td valign="top">65536 <i>(equals 64 KB)</i></td>
1102 <td valign="top">Max. size of a topic icon in bytes. If it exceeds this, it
1103 is rejected (even if you're using a graphics package to resize images).</td>
1106 <h3><a name="images_photos">Images: Photos</a></h3>
1108 <table border="1" width="100%">
1109 <tr><th style="width:8%">Variable</th>
1110 <th style="width:29%">Default Value</th>
1111 <th style="width:63%">Description</th></tr>
1113 <td valign="top"><a name="desc_max_photo_width">max_photo_width</a></td>
1114 <td valign="top">128</td>
1115 <td valign="top">Max. width of a user photo in pixels. If it exceeds this, it
1116 is either rejected or resized (depending on the setting of
1117 <code>$_CONF['image_lib']</code> above).</tr>
1119 <td valign="top"><a name="desc_max_photo_height">max_photo_height</a></td>
1120 <td valign="top">128</td>
1121 <td valign="top">Max. height of a user photo in pixels. If it exceeds this,
1122 it is either rejected or resized (depending on the setting of
1123 <code>$_CONF['image_lib']</code> above).</td></tr>
1125 <td valign="top"><a name="desc_max_photo_size">max_photo_size</a></td>
1126 <td valign="top">65536 <i>(equals 64 KB)</i></td>
1127 <td valign="top">Max. size of a user photo in bytes. If it exceeds this, it
1128 is rejected (even if you're using a graphics package to resize images).</td></tr>
1130 <td valign="top"><a name="desc_force_photo_width">force_photo_width</a></td>
1131 <td valign="top"><i>(disabled)</i></td>
1132 <td valign="top">This option, when enabled, will only apply when
1133 <em>displaying</em> a user photo. The <code><img></code> tag for the
1134 user photo will be emitted with a max. width, as specified by this option.
1135 This means that the actual photo can still be larger, but will only be
1136 displayed smaller. This is useful for cases where you don't want oddly
1137 shaped user photos to break your page's layout (e.g. in a forum).</td></tr>
1139 <td valign="top"><a name="desc_default_photo">default_photo</a></td>
1140 <td valign="top"><i>(disabled)</i></td>
1141 <td valign="top">When enabled, this option should point to an image (full URL
1142 required!) that should be displayed for users without a user photo. When
1143 this option is not set and a user does not have a user photo (or an avatar)
1144 then Geeklog will simply not display anything.</td></tr>
1147 <h3><a name="images_gravatar">Images: Gravatar</a></h3>
1149 <table border="1" width="100%">
1150 <tr><th style="width:8%">Variable</th>
1151 <th style="width:29%">Default Value</th>
1152 <th style="width:63%">Description</th></tr>
1154 <td valign="top"><a name="desc_use_gravatar">use_gravatar</a></td>
1155 <td valign="top">false</td>
1156 <td valign="top">If enabled (set to <tt>true</tt>), a user's avatar image will
1157 be requested from <a href="http://gravatar.com/">gravatar.com</a> if the
1158 user didn't upload a user photo (i.e. an uploaded photo always takes
1160 Please note that this option may slow down your site on pages that display
1161 a lot of userphotos for different users (e.g. forum threads).</td></tr>
1163 <td valign="top"><a name="desc_gravatar_rating">gravatar_rating</a></td>
1164 <td valign="top"><i>(disabled)</i></td>
1165 <td valign="top">Avatars submitted to gravatar.com are rated with the rating
1166 system used for movies (in the U.S.), i.e. the letters G, PG, R, or X. This
1167 option will let you chose the <em>maximum</em> allowed rating for an avatar.
1168 For example, a max. rating of R will make sure that no X-rated avatars will
1169 be displayed on your site (only G, PG, and R).</td></tr>
1173 <h2><a name="languages">Languages and Locale</a></h2>
1175 <h3><a name="languages_language">Languages and Locale: Language</a></h3>
1177 <table border="1" width="100%">
1178 <tr><th style="width:8%">Variable</th>
1179 <th style="width:29%">Default Value</th>
1180 <th style="width:63%">Description</th></tr>
1182 <td valign="top"><a name="desc_language">language</a></td>
1183 <td valign="top">english</td>
1184 <td valign="top">Name of your language file. Additional language files may be
1185 available for download at <a href="http://www.geeklog.net/">http://www.geeklog.net</a>.
1186 If you translate a language file, please send it to us. Also see <a
1187 href="#Localization">Localization</a> below.</td></tr>
1189 <td valign="top"><a name="desc_language_files">language_files</a></td>
1190 <td valign="top"><i>(disabled)</i></td>
1191 <td valign="top">For multi-lingual setups only: A list mapping language
1192 shortcuts ('en', 'de', etc.) to the Geeklog language files to use.</td></tr>
1194 <td valign="top"><a name="desc_languages">languages</a></td>
1195 <td valign="top"><i>(disabled)</i></td>
1196 <td valign="top">For multi-lingual setups only: A list mapping language
1197 shortcuts ('en', 'de', etc.) to the language's native name ("English",
1198 "Deutsch", etc.).</td></tr>
1201 <p>Also see <a href="http://wiki.geeklog.net/wiki/index.php/Multi-Language_Support">Multi-Language Support</a> in the Geeklog Wiki.</p>
1203 <h3><a name="languages_locale">Languages and Locale: Locale</a></h3>
1205 <table border="1" width="100%">
1206 <tr><th style="width:8%">Variable</th>
1207 <th style="width:29%">Default Value</th>
1208 <th style="width:63%">Description</th></tr>
1210 <td valign="top"><a name="desc_locale">locale</a></td>
1211 <td valign="top">en_GB</td>
1212 <td valign="top"><a href="http://en.wikipedia.org/wiki/Locale">Locale</a> for
1213 the system. This defines both the language and the country that PHP
1214 will use when deciding how to display localized information such as
1215 dates (e.g. for the names of months).</td></tr>
1217 <td valign="top"><a name="desc_date">date</a></td>
1218 <td valign="top">%A, %B %d %Y @ %I:%M %p %Z</td>
1219 <td valign="top">Date format used for most of the site, including story displays. See <a
1220 href="#date_formats">date formats</a> below.</td></tr>
1222 <td valign="top"><a name="desc_daytime">daytime</a></td>
1223 <td valign="top">%m/%d %I:%M%p</td>
1224 <td valign="top">Date format used when a shorter date is needed. See <a
1225 href="#date_formats">date formats</a> below.</td></tr>
1227 <td valign="top"><a name="desc_shortdate">shortdate</a></td>
1228 <td valign="top">%x</td>
1229 <td valign="top">Date format this is the shortest date. See <a href="#date_formats">date
1230 formats</a> below.</td></tr>
1232 <td valign="top"><a name="desc_dateonly">dateonly</a></td>
1233 <td valign="top">%d-%b</td>
1234 <td valign="top">Short date format (day and month only), to be used e.g. in the
1235 Upcoming Events and Older Stories blocks. See <a href="#date_formats">date
1236 formats</a> below.</td></tr>
1238 <td valign="top"><a name="desc_timeonly">timeonly</a></td>
1239 <td valign="top">%I:%M %p %Z</td>
1240 <td valign="top">Format string for the time only, to be used e.g. on the Event Details
1241 page. See <a href="#date_formats">date formats</a> below.</td></tr>
1243 <td valign="top"><a name="desc_week_start">week_start</a></td>
1244 <td valign="top">Sun</td>
1245 <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>
1247 <td valign="top"><a name="desc_hour_mode">hour_mode</a></td>
1248 <td valign="top">12</td>
1249 <td valign="top">Which format to use when submitting or editing an object
1250 with a time setting (e.g. the publish time of a story). Can be 12 (for the
1251 12 hour am/pm format) or 24 (for the 24 hour format).</td></tr>
1253 <td valign="top"><a name="desc_thousand_separator">thousand_separator</a></td>
1254 <td valign="top"><code>,</code></td>
1255 <td valign="top">Character to use between every group of thousands.</td></tr>
1257 <td valign="top"><a name="desc_decimal_separator">decimal_separator</a></td>
1258 <td valign="top"><code>.</code></td>
1259 <td valign="top">Character to use before decimals.</td></tr>
1261 <td valign="top"><a name="desc_decimal_count">decimal_count</a></td>
1262 <td valign="top">2</td>
1263 <td valign="top">How many decimal places to display.</td></tr>
1265 <td valign="top"><a name="desc_timezone">timezone</a></td>
1266 <td valign="top"><i>(disabled)</i></td>
1267 <td valign="top">If your server is located in a different timezone, use this
1268 option to set your local (i.e. your own) timezone, so that the time and
1269 date on the site match your own.<br>
1270 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
1275 <h2><a name="misc">Miscellaneous</a></h2>
1277 <h3><a name="misc_cookies">Miscellaneous: Cookies</a></h3>
1279 <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>
1281 <table border="1" width="100%">
1282 <tr><th style="width:8%">Variable</th>
1283 <th style="width:29%">Default Value</th>
1284 <th style="width:63%">Description</th></tr>
1286 <td valign="top"><a name="desc_cookie_session">cookie_session</a></td>
1287 <td valign="top">gl_session</td>
1288 <td valign="top">Name of the cookie that stores the session ID.</td></tr>
1290 <td valign="top"><a name="desc_cookie_name">cookie_name</a></td>
1291 <td valign="top">geeklog</td>
1292 <td valign="top">Name of the permanent cookie.</td></tr>
1294 <td valign="top"><a name="desc_cookie_password">cookie_password</a></td>
1295 <td valign="top">password</td>
1296 <td valign="top">Name of the password cookie.</td></tr>
1298 <td valign="top"><a name="desc_cookie_theme">cookie_theme</a></td>
1299 <td valign="top">theme</td>
1300 <td valign="top">Name of the theme cookie.</td></tr>
1302 <td valign="top"><a name="desc_cookie_language">cookie_language</a></td>
1303 <td valign="top">language</td>
1304 <td valign="top">Name of the language cookie.</td></tr>
1306 <td valign="top"><a name="desc_cookie_tzid">cookie_tzid</a></td>
1307 <td valign="top">timezone</td>
1308 <td valign="top">Name of the timezone cookie.</td></tr>
1310 <td valign="top"><a name="desc_cookie_anon_name">cookie_anon_name</a></td>
1311 <td valign="top">anon_name</td>
1312 <td valign="top">Name of the cookie to store the username of anonymous
1315 <td valign="top"><a name="desc_cookie_ip">cookie_ip</a></td>
1316 <td valign="top">0</td>
1317 <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>
1319 <td valign="top"><a name="desc_default_perm_cookie_timeout">default_perm_cookie_timeout</a></td>
1320 <td valign="top">28800</td>
1321 <td valign="top">Permanent cookie timeout in seconds (28800 = 8 hours).</td></tr>
1323 <td valign="top"><a name="desc_session_cookie_timeout">session_cookie_timeout</a></td>
1324 <td valign="top">7200</td>
1325 <td valign="top">Session cookie timeout in seconds (7200 = 2 hours).</td></tr>
1327 <td valign="top"><a name="desc_cookie_path">cookie_path</a></td>
1328 <td valign="top">/</td>
1329 <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>
1331 <td valign="top"><a name="desc_cookiedomain">cookiedomain</a></td>
1332 <td valign="top"><i>(empty)</i></td>
1333 <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>
1335 <td valign="top"><a name="desc_cookiesecure">cookiesecure</a></td>
1336 <td valign="top">0</td>
1337 <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>
1340 <h3><a name="misc_misc">Miscellaneous: Miscellaneous</a></h3>
1342 <table border="1" width="100%">
1343 <tr><th style="width:8%">Variable</th>
1344 <th style="width:29%">Default Value</th>
1345 <th style="width:63%">Description</th></tr>
1347 <td valign="top"><a name="desc_notification">notification</a></td>
1348 <td valign="top">array()</td>
1349 <td valign="top">Send an email notification to <tt>$_CONF['site_email']</tt>
1350 when a new story, comment, trackback or pingback has been submitted
1351 or a new user has registered with the site. The <tt>array()</tt> can hold
1352 any combination of the strings <tt>'story'</tt>, <tt>'comment'</tt>,
1353 <tt>'trackback'</tt>, <tt>'pingback'</tt>, and <tt>'user'</tt> (separated
1354 by commas), depending on which notification(s) you want.<br>
1355 <strong>Example:</strong> <code>array('story','user');</code> would
1356 send notifications when a new story has been submitted or a new user has
1357 registered. No notifications would be sent, for example, for new
1360 <td valign="top"><a name="desc_cron_schedule_interval">cron_schedule_interval</a></td>
1361 <td valign="top">0</td>
1362 <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
1363 to be executed can be provided by a plugin or through the
1364 <code>CUSTOM_runScheduledTask</code> function in your
1365 <tt>lib-custom.php</tt>. The value given is in seconds and specifies the
1366 interval in which the code should be executed (e.g. 86400 for daily
1368 Please note that to trigger this action, you will need to have someone
1369 visit your site at around the specified time. On a site with few visitors,
1370 the code may only be executed with considerable delay.<br>
1371 Set to 0 to disable.</td></tr>
1373 <td valign="top"><a name="desc_disable_autolinks">disable_autolinks</a></td>
1374 <td valign="top">0</td>
1375 <td valign="top">If set to 1, disables the autolinks. I.e. links using the
1376 [story:] etc. syntax are not interpreted any more.</td></tr>
1378 <td valign="top"><a name="desc_clickable_links">clickable_links</a></td>
1379 <td valign="top">true</td>
1380 <td valign="top">Whether or not URLs in plain-text posting should
1381 automatically be turned into clickable links.</td></tr>
1383 <td valign="top"><a name="desc_compressed_output">disable_compressed_output</a></td>
1384 <td valign="top">false</td>
1385 <td valign="top">If enabled and supported by both the browser and the
1386 webserver, HTML output will be compressed before sending it to the browser.
1387 This will typically result in much smaller amounts of data to be sent
1388 (usually between 20% and 25%, compared to the uncompressed output). It may,
1389 however, result in slightly more load on the webserver.<br>
1390 For now, this feature should be considered <strong>experimental</strong> and
1391 hasn't been implemented for all HTML output yet.</td></tr>
1393 <td valign="top"><a name="desc_frame_options">frame_options</a></td>
1394 <td valign="top">DENY</td>
1395 <td valign="top">Protection against <a
1396 href="http://en.wikipedia.org/wiki/Clickjacking">Clickjacking</a>: This
1397 option indicates that the site's content should not be displayed in a frame.
1398 This only works, however, when the visitor's browser respects the
1399 <tt>X-FRAME-OPTIONS</tt> HTTP header. Options are to disallow all framing
1400 (Strict), only allow framing from within the same site (Same Origin), or to
1401 allow all framing (disabled). We strongly suggest <em>not</em> to disable
1402 this option.</td></tr>
1405 <h3><a name="misc_debug">Miscellaneous: Debug</a></h3>
1407 <table border="1" width="100%">
1408 <tr><th style="width:8%">Variable</th>
1409 <th style="width:29%">Default Value</th>
1410 <th style="width:63%">Description</th></tr>
1412 <td valign="top"><a name="desc_rootdebug">rootdebug</a></td>
1413 <td valign="top"><code>false</code></td>
1414 <td valign="top">When a PHP error occurs, Geeklog's error handler will only
1415 display the actual error message to members of the Root group (to prevent
1416 leakage of possibly sensitive information). When set to <code>true</code>,
1417 this information will be displayed to <em>all</em> users. <strong>Use only
1418 for debugging purposes!</strong></td></tr>
1421 <h3><a name="misc_digest">Miscellaneous: Daily Digest</a></h3>
1423 <table border="1" width="100%">
1424 <tr><th style="width:8%">Variable</th>
1425 <th style="width:29%">Default Value</th>
1426 <th style="width:63%">Description</th></tr>
1428 <td valign="top"><a name="desc_emailstories">emailstories</a></td>
1429 <td valign="top">0</td>
1430 <td valign="top">Let users get stories e-mailed to them (0=no, 1=yes), aka Daily Digest.
1431 Please note that this requires cron and the use of PHP as a shell script.</td></tr>
1433 <td valign="top"><a name="desc_emailstorieslength">emailstorieslength</a></td>
1434 <td valign="top">1</td>
1435 <td valign="top">When emailstories (above) is enabled, send only the title and the
1436 link to the new stories (0), or send the entire introtext (1) or send
1437 the first <i>n</i> characters from the introtext (where <i>n</i> = any other number)</td></tr>
1439 <td valign="top"><a name="desc_emailstoriesperdefault">emailstoriesperdefault</a></td>
1440 <td valign="top">0</td>
1441 <td valign="top">When set to 1, new users will be subscribed to the daily digest
1442 automatically when they register with the site.</td></tr>
1445 <h3><a name="misc_html">Miscellaneous: HTML Filtering</a></h3>
1447 <table border="1" width="100%">
1448 <tr><th style="width:8%">Variable</th>
1449 <th style="width:29%">Default Value</th>
1450 <th style="width:63%">Description</th></tr>
1452 <td valign="top"><a name="desc_user_html">user_html</a></td>
1453 <td valign="top"><p>, <b>, <i>, <a>, <em>, <br>, <tt>, <hr>, <ol>, <ul>, <li>, <code>, <pre></td>
1454 <td valign="top">HTML tags and attributes that normal users are allowed to
1455 use in story submissions and comments.</td></tr>
1457 <td valign="top"><a name="desc_admin_html">admin_html</a></td>
1458 <td valign="top">additional HTML tags, e.g. for tables</td>
1459 <td valign="top">HTML tags and attributes that admin users are allowed to
1460 use (in addition to those from user_html). Redefining a tag with
1461 additional attributes will overwrite the definition from user_html.</td></tr>
1463 <td valign="top"><a name="desc_advanced_html">advanced_html</a></td>
1464 <td valign="top">additional HTML tags for use with the Advanced Editor, e.g.
1466 <td valign="top">Additional HTML tags and attributes that users are allowed
1467 to use when the <a href="#desc_advanced_editor">Advanced Editor</a> is
1470 <td valign="top"><a name="desc_skip_html_filter_for_root">skip_html_filter_for_root</a></td>
1471 <td valign="top">0</td>
1472 <td valign="top">When set to 1, this will allow members of the Root group
1473 to use <em>all</em> HTML in their posts. <strong>Use at your own risk!</strong></td></tr>
1475 <td valign="top"><a name="desc_allowed_protocols">allowed_protocols</a></td>
1476 <td valign="top">array ('http', 'https', 'ftp');</td>
1477 <td valign="top">Defines which protocols are allowed in links (i.e. HTML
1478 <code><a></code> tags).</td></tr>
1481 <h3><a name="misc_censoring">Miscellaneous: Censoring</a></h3>
1483 <table border="1" width="100%">
1484 <tr><th style="width:8%">Variable</th>
1485 <th style="width:29%">Default Value</th>
1486 <th style="width:63%">Description</th></tr>
1488 <td valign="top"><a name="desc_censormode">censormode</a></td>
1489 <td valign="top">1</td>
1490 <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>
1492 <td valign="top"><a name="desc_censorreplace">censorreplace</a></td>
1493 <td valign="top">*censored*</td>
1494 <td valign="top">Text to replace a censored word with</td></tr>
1496 <td valign="top"><a name="desc_censorlist">censorlist</a></td>
1497 <td valign="top">array(<i>a list of "bad" words goes here ...</i>)</td>
1498 <td valign="top">An array of censored words</td></tr>
1501 <h3><a name="misc_ip_lookup">Miscellaneous: IP Lookup</a></h3>
1503 <table border="1" width="100%">
1504 <tr><th style="width:8%">Variable</th>
1505 <th style="width:29%">Default Value</th>
1506 <th style="width:63%">Description</th></tr>
1508 <td valign="top"><a name="desc_ip_lookup">ip_lookup</a></td>
1509 <td valign="top"><i>not set</i></td>
1510 <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>
1511 <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>
1514 <h3><a name="misc_ip_webservices">Miscellaneous: Webservices</a></h3>
1516 <table border="1" width="100%">
1517 <tr><th style="width:8%">Variable</th>
1518 <th style="width:29%">Default Value</th>
1519 <th style="width:63%">Description</th></tr>
1521 <td valign="top"><a name="desc_disable_webservices">disable_webservices</a></td>
1522 <td valign="top">false</td>
1523 <td valign="top">Set this to <code>true</code> to disable the webservices.</td></tr>
1525 <td valign="top"><a name="desc_restrict_webservices">restrict_webservices</a></td>
1526 <td valign="top">false</td>
1527 <td valign="top">Set this to <code>true</code> to restrict webservices usage
1528 to users with the <tt>webservices.atompub</tt> permission (e.g. those in
1529 the predefined "Webservices Users" group).</td></tr>
1531 <td valign="top"><a name="desc_atom_max_stories">atom_max_stories</a></td>
1532 <td valign="top">10</td>
1533 <td valign="top">Max. number of stories returned when an Atom feed is
1534 requested through the webservices API.</td></tr>
1537 <p>Also see <a href="http://wiki.geeklog.net/wiki/index.php/Using_the_Webservices">Using the Webservices</a> in the Geeklog Wiki.</p>
1540 <h2><a name="db-config.php">db-config.php</a></h2>
1542 <p>As the name implies, the file <tt>db-config.php</tt> contains the database
1543 configuration. This information is put there during the initial install and
1544 you should not normally have to edit this file.</p>
1546 <table border="1" width="100%">
1547 <tr><th style="width:8%">Variable</th>
1548 <th style="width:29%">Default Value</th>
1549 <th style="width:63%">Description</th></tr>
1550 <tr><td valign="top">_DB_host</td>
1551 <td valign="top">localhost</td>
1552 <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>
1553 <tr><td valign="top">_DB_name</td>
1554 <td valign="top">geeklog</td>
1555 <td valign="top">Database Name</td></tr>
1556 <tr><td valign="top">_DB_user</td>
1557 <td valign="top">root</td>
1558 <td valign="top">Database User Account</td></tr>
1559 <tr><td valign="top">_DB_pass</td>
1560 <td valign="top">null</td>
1561 <td valign="top">Database User Password</td></tr>
1562 <tr><td valign="top">_DB_table_prefix</td>
1563 <td valign="top">gl_</td>
1564 <td valign="top">Prefix to put in front of all of Geeklog's table names (to
1565 avoid name collisions with tables used by other applications)</td></tr>
1566 <tr><td valign="top">_DB_dbms</td>
1567 <td valign="top">mysql</td>
1568 <td valign="top">This option tells Geeklog which type of database it's
1569 running on. Can be either <code>'mysql'</code> (for MySQL) or
1570 <code>'mssql'</code> (for Microsoft SQL Server).</td></tr>
1574 <h2><a name="siteconfig.php">siteconfig.php</a></h2>
1576 <p>The <tt>siteconfig.php</tt> file holds configuration data that can not be
1577 stored in the database. Again, most of this information is put there during
1578 the installation and you should not normally have to edit this file.</p>
1580 <table border="1" width="100%">
1581 <tr><th style="width:8%">Variable</th>
1582 <th style="width:29%">Default Value</th>
1583 <th style="width:63%">Description</th></tr>
1584 <tr><td valign="top"><a name="desc_path">path</a></td>
1585 <td valign="top">/path/to/geeklog/</td>
1586 <td valign="top">Base file system path for your site (trailing slash necessary)</td></tr>
1587 <tr><td valign="top"><a name="desc_path_system">path_system</a></td>
1588 <td valign="top">/path/to/geeklog/system/</td>
1589 <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>
1591 <td valign="top"><a name="desc_site_enabled">site_enabled</a></td>
1592 <td valign="top">true</td>
1593 <td valign="top">A Geeklog site can be disabled quickly (e.g. for maintenance)
1594 by setting this to 'false'.<br>
1595 Also see the <a href="#desc_site_disabled_msg">site_disabled_msg</a>
1596 configuration option.</td></tr>
1598 <td valign="top"><a name="desc_default_charset">default_charset</a></td>
1599 <td valign="top">iso-8859-1</td>
1600 <td valign="top">Character encoding used by Geeklog when serving HTML pages or
1601 sending email. Only used if the language file did not already set
1602 another character encoding.<br>
1603 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
1604 set is recommended.</td></tr>
1608 <h2><a name="url-rewrite">URL Rewriting</a></h2>
1610 <p>Geeklog includes a simple but useful URL rewriting feature which can help
1611 make your site more crawler friendly (i.e. the URLs of your site are more
1612 likely to be picked up by the search engine's indexing bots). This feature is
1613 supported for URLs to stories, static pages, the article directory, and links.
1615 <p>URL rewriting means that your URLs will look like this</p>
1616 <p style="margin-left:4em;"><tt>http://www.geeklog.net/article.php/20021022234959146</tt></p>
1617 <p>instead of like this</p>
1618 <p style="margin-left:4em;"><tt>http://www.geeklog.net/article.php?story=20021022234959146</tt></p>
1619 <p>While some search engines will pick up the second form, Google seems to
1620 prefer the first format and often ignores the second format.</p>
1621 <p><strong>Note:</strong> This feature may not work with all web servers. It
1622 is known to work with Apache (all versions) and known <em>not</em> to work
1623 with IIS (at least some versions). Please try it out before you go public
1627 <h2><a name="Localization">Localization</a></h2>
1629 <p>Localizing Geeklog is fairly easy. All strings are contained in a
1630 language file. The default file that ships with the tarball is english.php.
1631 People interested in translating Geeklog to other languages are encouraged
1633 href="http://lists.geeklog.net/listinfo/geeklog-translations">geeklog-translations</a>
1634 mailing list. All important information concerning translating Geeklog will
1637 <h3><a name="date_formats">Locale and Date Formats</a></h3>
1639 <p>You can set the locale and date format in the configuration. To set the
1640 locale, set the variable to the proper string or if you leave it blank it
1641 will pull the default locale from the operating system. The date formats
1642 are handled by your locale. Isn't that smart? Locale names are OS
1643 dependent. On most UNIX hosts, you can find locale codes in the
1644 <i>/usr/share/locale/locale.alias</i> file and on some systems the command
1645 <i>locale -a</i> will display all available locales on a system. If a
1646 locale doesn't exist you can create it using the <i>localedef</i> command.
1648 <p>More info on locale: <a
1649 href="http://www.opengroup.org/onlinepubs/7908799/xbd/locale.html">http://www.opengroup.org/onlinepubs/7908799/xbd/locale.html</a><br>
1650 More info on localdef: <a
1651 href="http://www.opengroup.org/onlinepubs/7908799/xcu/localedef.html">http://www.opengroup.org/onlinepubs/7908799/xcu/localedef.html</a>
1653 <h3>Date Format Syntax</h3>
1656 <li><tt>%a - abbreviated weekday name according to the current locale</tt></li>
1657 <li><tt>%A - full weekday name according to the current locale</tt></li>
1658 <li><tt>%b - abbreviated month name according to the current locale</tt></li>
1659 <li><tt>%B - full month name according to the current locale</tt></li>
1660 <li><tt>%c - preferred date and time representation for the current locale</tt></li>
1661 <li><tt>%C - century number (the year divided by 100 and truncated to an integer, range 00 to 99)</tt></li>
1662 <li><tt>%d - day of the month as a decimal number (range 00 to 31)</tt></li>
1663 <li><tt>%D - same as %m/%d/%y</tt></li>
1664 <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>
1665 <li><tt>%h - same as %b</tt></li>
1666 <li><tt>%H - hour as a decimal number using a 24-hour clock (range 00 to 23)</tt></li>
1667 <li><tt>%I - hour as a decimal number using a 12-hour clock (range 01 to 12)</tt></li>
1668 <li><tt>%j - day of the year as a decimal number (range 001 to 366)</tt></li>
1669 <li><tt>%m - month as a decimal number (range 1 to 12)</tt></li>
1670 <li><tt>%M - minute as a decimal number</tt></li>
1671 <li><tt>%n - newline character</tt></li>
1672 <li><tt>%p - either `am' or `pm' according to the given time value, or the corresponding strings for the current locale</tt></li>
1673 <li><tt>%r - time in a.m. and p.m. notation</tt></li>
1674 <li><tt>%R - time in 24 hour notation</tt></li>
1675 <li><tt>%S - second as a decimal number</tt></li>
1676 <li><tt>%t - tab character</tt></li>
1677 <li><tt>%T - current time, equal to %H:%M:%S</tt></li>
1678 <li><tt>%u - weekday as a decimal number [1,7], with 1 representing Monday</tt></li>
1679 <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>
1680 <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>
1681 <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>
1682 <li><tt>%w - day of the week as a decimal, Sunday being 0</tt></li>
1683 <li><tt>%x - preferred date representation for the current locale without the time</tt></li>
1684 <li><tt>%X - preferred time representation for the current locale without the date</tt></li>
1685 <li><tt>%y - year as a decimal number without a century (range 00 to 99)</tt></li>
1686 <li><tt>%Y - year as a decimal number including the century</tt></li>
1687 <li><tt>%Z - time zone or name or abbreviation</tt></li>
1688 <li><tt>%% - a literal `%' character</tt></li>
1691 <div class="footer">
1692 <a href="http://wiki.geeklog.net/">The Geeklog Documentation Project</a><br>
1693 All trademarks and copyrights on this page are owned by their respective owners. Geeklog is copyleft.