Go to the source code of this file.
Functions | |
profilemodule_discuss () | |
parse_discusssection ($page_data) | |
parse_discussforum ($page_data) | |
parse_discussthread ($page_data) | |
globalID_discuss ($splitID) | |
discuss_rebuildUserCache () | |
discuss_rebuildDeep ($userposts, $replies, $thread, $commentID="") | |
discuss_saveOptions () | |
modulesetup_discuss () | |
globalIDThumbnail_discuss ($splitID) | |
Variables | |
PHP | $modules_names [] = "Discuss" |
$mopules_versions [] = "0.1" | |
$modules_descriptions [] = "Manages discussion forums" | |
$modules_setup [] = "modulesetup_discuss" | |
$modules_globalID [] = "globalID_discuss" | |
$profilemodules [] = "profilemodule_discuss" | |
$modules [] = "parse_discusssection" | |
$page_help ["\\discuss(txt1)"] = "This will show the discussion section named txt1" | |
$page_help ["\\discussforum(txt1,txt2)"] = "This will show the forum named txt2 in the section txt1" | |
$page_help ["\\discussthread(txt1,txt2,txt3)"] = "This will show the thread with ID txt3 in the forum named txt2 in the section txt1" | |
$meta_headers | |
$usergroups_global_default ["modules_discuss_admin"] = false | |
$discussDirectory = "$module_folder/discuss" | |
$discussContentDirectory = "$discussDirectory/sections" | |
$discuss_defaultoptions |
discuss_rebuildDeep | ( | $ | userposts, | |
$ | replies, | |||
$ | thread, | |||
$ | commentID = "" | |||
) |
Rebuild the cache for each reply in a thread.
Definition at line 362 of file discuss.php.
Referenced by discuss_rebuildUserCache().
discuss_rebuildUserCache | ( | ) |
Rebuild the cache for all threads in all forums in all sections
Definition at line 314 of file discuss.php.
References $discuss_options, allUsersArray(), and discuss_rebuildDeep().
Referenced by modulesetup_discuss(), and discussSection::render().
discuss_saveOptions | ( | ) |
Definition at line 385 of file discuss.php.
References $discuss_options, $discussDirectory, and array_export().
Referenced by modulesetup_discuss(), and discussForum::renderNewThread().
globalID_discuss | ( | $ | splitID | ) |
Returns the url that corresponds to the globalID for a discuss item, if appropriate
$splitID | The global ID to check |
Definition at line 278 of file discuss.php.
References $discuss_options.
globalIDThumbnail_discuss | ( | $ | splitID | ) |
Return an array of data about the thumbnail for a global ID As the discussions don't have thumbnails per se, we simply pass a fitting image directly back
splitID | The global ID to check |
Definition at line 1002 of file discuss.php.
References $module_folder, and siteURL().
modulesetup_discuss | ( | ) |
Definition at line 398 of file discuss.php.
References $default_language, $discuss_options, $discussContentDirectory, $discussDirectory, $language, $menu_folder, $page_content, $page_folder, $pagectl, $recent_file, $setup_folder, allUsersArray(), array_export(), currentUser(), discuss_rebuildUserCache(), discuss_saveOptions(), drawCommand(), globalIDtoURL(), i18n(), parse_page_data(), parse_profilelinks(), renderInformationBox(), rotate_recent(), update_getpage_id(), and viewLevel.
parse_discussforum | ( | $ | page_data | ) |
Definition at line 245 of file discuss.php.
References $setup_folder, and spotModuleCommand().
parse_discusssection | ( | $ | page_data | ) |
Definition at line 231 of file discuss.php.
References $setup_folder, and spotModuleCommand().
parse_discussthread | ( | $ | page_data | ) |
Definition at line 258 of file discuss.php.
References $setup_folder, and spotModuleCommand().
profilemodule_discuss | ( | ) |
Definition at line 128 of file discuss.php.
References $blogcategories, $discuss_options, $formatting_toolbar, $language, $permissionlevels_array, $setup_folder, $tabwidget, $userinfo_folder, $viewUser, currentUser(), formatTime(), globalIDtoURL(), i18n(), renderInformationBox(), and thisPageURL().
$discuss_defaultoptions |
Initial value:
array( "user" => array( "viewLevel" => 0, "replyLevel" => 1, "editLevel" => 4 ) )
Definition at line 115 of file discuss.php.
Referenced by discussForum::renderNewThread().
$discussContentDirectory = "$discussDirectory/sections" |
Definition at line 85 of file discuss.php.
Referenced by discussForum::discussForum(), discussThread::discussThread(), discussSection::load(), discussForum::load(), discussForum::loadThreads(), discussThread::makeFilename(), modulesetup_discuss(), discussSection::save(), and discussForum::save().
$discussDirectory = "$module_folder/discuss" |
Definition at line 84 of file discuss.php.
Referenced by discuss_saveOptions(), and modulesetup_discuss().
$meta_headers |
Initial value:
" <link rel=\"StyleSheet\" href=\"" . siteURL(true) . "$module_folder/discuss/discuss.css\" type=\"text/css\" />"
Definition at line 77 of file discuss.php.
Referenced by modulesetup_convention(), modulesetup_gallery2(), parse_blogger(), parse_convention(), profilemodule_blogger(), and render().
$modules[] = "parse_discusssection" |
Definition at line 69 of file discuss.php.
$modules_descriptions[] = "Manages discussion forums" |
Definition at line 61 of file discuss.php.
$modules_globalID[] = "globalID_discuss" |
Definition at line 65 of file discuss.php.
PHP $modules_names[] = "Discuss" |
The Discuss forum module for Travelsized CMS
Dan Jensen <admin@leinir.dk> 0.1 2nd July, 2006
Discuss directory structure
modules/ discuss/ options.php sections/ sectionposition/ options.php forums/ forumposition/ options.php threads/ threadid.php
modules/discuss/options.php: discuss_options = array( "page_id" => ID of the page which the main forum will go on, "header" => The optional header (page data) which will be shown on the main forum page, "footer" => The optional footer (page data) which will be shown on the main forum page, "sectionPositions" => The order in which to show the sections on the forum main page, "forumdefaults" => array( "viewLevel" => The default view level for forums, "postLevel" => The default post level for forums, ), "sectiondefaults" => array( "viewLevel" => The default view level for sections, ), )
modules/discuss/sections/sectionid/options.php section_options = array( "sectionid" => The section's ID, "title" => The section's title, "description" => The section's description, "viewLevel" => The section's view level, "forumPositions" => The position of the contained forums )
modules/discuss/sections/sectionid/forums/forumid/options.php forum_options = array( "forumid" => The forum's ID, "title" => The forum's title, "moderators" => array containing usernames, "description" => The forum's description, "viewLevel" => The forum's viewing level, "postLevel" => The forum's posting level, "lastChanged" => The timestamp for the forum's last change, )
Definition at line 59 of file discuss.php.
$modules_setup[] = "modulesetup_discuss" |
Definition at line 63 of file discuss.php.
$mopules_versions[] = "0.1" |
Definition at line 60 of file discuss.php.
$page_help["\\discussthread(txt1,txt2,txt3)"] = "This will show the thread with ID txt3 in the forum named txt2 in the section txt1" |
Definition at line 75 of file discuss.php.
$page_help["\\discussforum(txt1,txt2)"] = "This will show the forum named txt2 in the section txt1" |
Definition at line 74 of file discuss.php.
$page_help["\\discuss(txt1)"] = "This will show the discussion section named txt1" |
Definition at line 73 of file discuss.php.
$profilemodules[] = "profilemodule_discuss" |
Definition at line 67 of file discuss.php.
$usergroups_global_default["modules_discuss_admin"] = false |
Definition at line 81 of file discuss.php.