You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
(48) |
Apr
(45) |
May
(11) |
Jun
(7) |
Jul
|
Aug
(11) |
Sep
(75) |
Oct
(38) |
Nov
|
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(17) |
Feb
|
Mar
(22) |
Apr
|
May
(1) |
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
(5) |
Feb
(29) |
Mar
(22) |
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Shaun M. <sin...@us...> - 2006-03-01 14:36:51
|
Update of /cvsroot/phpwsbb/phpwsbb/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12034 Modified Files: forums_menu.tpl Log Message: Moved menu items that aren't local to the list to a global menu Index: forums_menu.tpl =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/templates/forums_menu.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** forums_menu.tpl 23 Feb 2006 06:16:37 -0000 1.2 --- forums_menu.tpl 1 Mar 2006 14:36:47 -0000 1.3 *************** *** 3,14 **** {NEW} <!-- END NEW --> - <!-- BEGIN CATEGORIES --> - {CATEGORIES} - <!-- END CATEGORIES --> - <!-- BEGIN PROFILE --> - {MYPROFILE} - <!-- END PROFILE --> - <!-- BEGIN NEWSTUFF --> - {NEW_POSTS} - <!-- END NEWSTUFF --> <!-- END ACTIONS --> \ No newline at end of file --- 3,5 ---- |
From: Shaun M. <sin...@us...> - 2006-03-01 14:35:55
|
Update of /cvsroot/phpwsbb/phpwsbb/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11496 Modified Files: edit_settings.tpl Log Message: Added Category feature enable checkbox Index: edit_settings.tpl =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/templates/edit_settings.tpl,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** edit_settings.tpl 4 Feb 2006 01:35:31 -0000 1.12 --- edit_settings.tpl 1 Mar 2006 14:35:48 -0000 1.13 *************** *** 25,28 **** --- 25,31 ---- <label>{SETTINGS_MAXLATESTTHREADS} {MAXLATESTTHREADS_TEXT}</label><br /> + <h3>{CATEGORIES_TITLE}</h3> + <label>{SETTINGS_SHOW_CATEGORIES} {SHOW_CATEGORIES_TEXT}</label><br /> + <h3>{AVATARS_TITLE}</h3> <label>{SETTINGS_USE_AVATARS} {USE_AVATARS_TEXT}</label><br /> |
From: Shaun M. <sin...@us...> - 2006-03-01 14:35:22
|
Update of /cvsroot/phpwsbb/phpwsbb/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11356 Modified Files: edit.tpl Log Message: Added {PREVIEW} tag Index: edit.tpl =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/templates/edit.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** edit.tpl 27 Jan 2006 04:15:06 -0000 1.2 --- edit.tpl 1 Mar 2006 14:35:16 -0000 1.3 *************** *** 2,5 **** --- 2,10 ---- {START_FORM} + <!-- BEGIN PREVIEW --> + <br />{PREVIEW_TEXT}: + <div style="border:1px solid; padding:4px">{PREVIEW}</div><br /> + <!-- END PREVIEW --> + <!-- BEGIN GUESTNAME --> {GUESTNAME_TEXT}:<br /> |
From: Shaun M. <sin...@us...> - 2006-02-27 18:50:42
|
Update of /cvsroot/phpwsbb/phpwsbb/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8051 Modified Files: Manager.php Log Message: Removed an extra title in listNewThreads I'd left in Index: Manager.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Manager.php,v retrieving revision 1.69 retrieving revision 1.70 diff -C2 -d -r1.69 -r1.70 *** Manager.php 27 Feb 2006 01:08:49 -0000 1.69 --- Manager.php 27 Feb 2006 18:50:37 -0000 1.70 *************** *** 386,390 **** function _listNewThreads($since) { if(!$_SESSION['OBJ_user']->username) { - $GLOBALS['CNT_phpwsbb']['title'] = $_SESSION['translate']->it('Please Register'); $_SESSION['OBJ_user']->jumpURL = './index.php?module=phpwsbb&PHPWSBB_MAN_OP=getnew'; $_SESSION['OBJ_user']->error[] = $_SESSION['translate']->it('The "View New Posts" feature is only available to registered users of this site. You must log-in to view this page.'); --- 386,389 ---- |
From: Shaun M. <sin...@us...> - 2006-02-27 01:17:32
|
Update of /cvsroot/phpwsbb/phpwsbb/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21318 Modified Files: ChangeLog Log Message: update with current changes in cvs Index: ChangeLog =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/docs/ChangeLog,v retrieving revision 1.131 retrieving revision 1.132 diff -C2 -d -r1.131 -r1.132 *** ChangeLog 27 Jan 2006 04:20:06 -0000 1.131 --- ChangeLog 27 Feb 2006 01:17:27 -0000 1.132 *************** *** 7,13 **** --- 7,20 ---- * Allow 'Re:' to be translated * Stop double notices appearing + * title on posting a message + * Improved Avatars (uses core ImgLibrary) New Features: * Preview message before posting + * View New Posts since last visit + * Routing to login if using a feature that requires it + * View Counts - how many times a thread has been read + * Category View + * Private Forums (restrict viewing to a group) *phpwsbb-1.0.3 (23 Mar 2005) |
From: Shaun M. <sin...@us...> - 2006-02-27 01:08:52
|
Update of /cvsroot/phpwsbb/phpwsbb/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16013 Modified Files: Manager.php Log Message: RouteLogin added to Eloi's listNewThreads Index: Manager.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Manager.php,v retrieving revision 1.68 retrieving revision 1.69 diff -C2 -d -r1.68 -r1.69 *** Manager.php 25 Feb 2006 21:29:40 -0000 1.68 --- Manager.php 27 Feb 2006 01:08:49 -0000 1.69 *************** *** 387,392 **** if(!$_SESSION['OBJ_user']->username) { $GLOBALS['CNT_phpwsbb']['title'] = $_SESSION['translate']->it('Please Register'); ! $GLOBALS['CNT_phpwsbb']['content'] .= $_SESSION['translate']->it('The "New Posts" feature is only available to registered users of this site. You must log-in to view this page.'); ! return FALSE; } --- 387,394 ---- if(!$_SESSION['OBJ_user']->username) { $GLOBALS['CNT_phpwsbb']['title'] = $_SESSION['translate']->it('Please Register'); ! $_SESSION['OBJ_user']->jumpURL = './index.php?module=phpwsbb&PHPWSBB_MAN_OP=getnew'; ! $_SESSION['OBJ_user']->error[] = $_SESSION['translate']->it('The "View New Posts" feature is only available to registered users of this site. You must log-in to view this page.'); ! $_SESSION['OBJ_user']->routeLogin(); ! exit(); } |
From: Shaun M. <sin...@us...> - 2006-02-27 01:08:13
|
Update of /cvsroot/phpwsbb/phpwsbb/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15455 Modified Files: Message.php Log Message: Show a title on posting a message - thanks Greg Index: Message.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Message.php,v retrieving revision 1.86 retrieving revision 1.87 diff -C2 -d -r1.86 -r1.87 *** Message.php 24 Feb 2006 06:50:46 -0000 1.86 --- Message.php 27 Feb 2006 01:08:07 -0000 1.87 *************** *** 510,514 **** $GLOBALS['CNT_phpwsbb']['content'] .= '<p><a href="./index.php?module=phpwsbb&PHPWSBB_MAN_OP=view&PHPWS_MAN_ITEMS[]=' . $thread->getId() . '">' . $_SESSION['translate']->it('Back to the topic.') . '</a> | '; $GLOBALS['CNT_phpwsbb']['content'] .= '<a href="./index.php?module=phpwsbb&PHPWSBB_MAN_OP=viewforum&PHPWS_MAN_ITEMS[]=' . $thread->_fid . '">' . $_SESSION['translate']->it('Back to the forum.') . '</a></p>'; ! } --- 510,514 ---- $GLOBALS['CNT_phpwsbb']['content'] .= '<p><a href="./index.php?module=phpwsbb&PHPWSBB_MAN_OP=view&PHPWS_MAN_ITEMS[]=' . $thread->getId() . '">' . $_SESSION['translate']->it('Back to the topic.') . '</a> | '; $GLOBALS['CNT_phpwsbb']['content'] .= '<a href="./index.php?module=phpwsbb&PHPWSBB_MAN_OP=viewforum&PHPWS_MAN_ITEMS[]=' . $thread->_fid . '">' . $_SESSION['translate']->it('Back to the forum.') . '</a></p>'; ! $GLOBALS['CNT_phpwsbb']['title'] = $_SESSION['translate']->it('Message Posted'); } |
From: Shaun M. <sin...@us...> - 2006-02-25 22:00:30
|
Update of /cvsroot/phpwsbb/phpwsbb/conf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29808 Modified Files: help.php Log Message: Spelling mistakes corrected Index: help.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/conf/help.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** help.php 4 Feb 2006 01:30:58 -0000 1.14 --- help.php 25 Feb 2006 22:00:25 -0000 1.15 *************** *** 46,55 **** $remote_avatars = 'Remote Avatars'; ! $remote_avatars_content = 'You can allow users to specify the address of an image that\'s not hosted on your site to be used as an avatar.<br /><br />While this saves you storage space and bandwidth, it also takes the control over what is displayed out of your hands. Users can insert images with large filesizes, jpeg exploits, obscenities, etc..<br /><br />For this reason we recommend that you <u>do not</u> use this feature.'; $views = 'Record and show number of times a thread is viewed'; ! $views_content = 'With this option switched on, each time a thread is viewed a counter is updated. An extra column in the forum view will also be shown to all users.<br /><br />With this option switched off, no statistics are recorded.<br /><br />Please note that you will have to quit your browser session and restart it in order to see any change in the forum view.<br /><br />For better performance on busy systems we reccomend you leave this option off. You may also toggle it off during busy periods for better performance but be aware that the view count will be suspended until you toggle it back on again.'; $views_lowpri = 'Use low priority stats updates (MySQL only)'; ! $views_lowpri_content = 'This option relies on a feature of the MySQL database to use a less resource hungry method of updating statistics such as the view count. Updates will be delayed until there is nobody reading the forum.<br /><br />We reccomend you switch this option on if you\'re using MySQL. If you\'re on another database, you must leave this option off.'; ?> --- 46,55 ---- $remote_avatars = 'Remote Avatars'; ! $remote_avatars_content = 'You can allow users to specify the address of an image that\'s not hosted on your site to be used as an avatar.<br /><br />While this saves you storage space and bandwidth, it also takes the control over what is displayed out of your hands. Users can insert images with large file sizes, jpeg exploits, obscenities, etc..<br /><br />For this reason we recommend that you <u>do not</u> use this feature.'; $views = 'Record and show number of times a thread is viewed'; ! $views_content = 'With this option switched on, each time a thread is viewed a counter is updated. An extra column in the forum view will also be shown to all users.<br /><br />With this option switched off, no statistics are recorded.<br /><br />Please note that you will have to quit your browser session and restart it in order to see any change in the forum view.<br /><br />For better performance on busy systems we recommend you leave this option off. You may also toggle it off during busy periods for better performance but be aware that the view count will be suspended until you toggle it back on again.'; $views_lowpri = 'Use low priority stats updates (MySQL only)'; ! $views_lowpri_content = 'This option relies on a feature of the MySQL database to use a less resource hungry method of updating statistics such as the view count. Updates will be delayed until there is nobody reading the forum.<br /><br />We recommend you switch this option on if you\'re using MySQL. If you\'re on another database, you must leave this option off.'; ?> |
From: Shaun M. <sin...@us...> - 2006-02-25 21:29:45
|
Update of /cvsroot/phpwsbb/phpwsbb/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15333 Modified Files: Forum.php Manager.php Thread.php Log Message: Use existing new_messages.png for Eloi's 'View New Posts' feature Index: Thread.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Thread.php,v retrieving revision 1.82 retrieving revision 1.83 diff -C2 -d -r1.82 -r1.83 *** Thread.php 24 Feb 2006 06:50:46 -0000 1.82 --- Thread.php 25 Feb 2006 21:29:40 -0000 1.83 *************** *** 323,327 **** 'PHPWS_MAN_ITEMS[]'=>$this->getId()), 'mysettings.png', 16, 16); $newposts = $_SESSION['translate']->it('View New Posts'); ! $tags['NEW_POSTS'] = $this->createLink($newposts, array('PHPWSBB_MAN_OP'=>'getnew'), 'xxxx.png', 16, 16); } --- 323,327 ---- 'PHPWS_MAN_ITEMS[]'=>$this->getId()), 'mysettings.png', 16, 16); $newposts = $_SESSION['translate']->it('View New Posts'); ! $tags['NEW_POSTS'] = $this->createLink($newposts, array('PHPWSBB_MAN_OP'=>'getnew'), 'new_messages.png', 16, 16); } Index: Manager.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Manager.php,v retrieving revision 1.67 retrieving revision 1.68 diff -C2 -d -r1.67 -r1.68 *** Manager.php 24 Feb 2006 06:50:46 -0000 1.67 --- Manager.php 25 Feb 2006 21:29:40 -0000 1.68 *************** *** 345,349 **** $tags['MYPROFILE'] = PHPWSBB_Thread::createLink($mysettings, array('PHPWSBB_MAN_OP'=>'usersettings'), 'mysettings.png', 16, 16); $newposts = $_SESSION['translate']->it('View New Posts'); ! $tags['NEW_POSTS'] = PHPWSBB_Thread::createLink($newposts, array('PHPWSBB_MAN_OP'=>'getnew'), 'xxxx.png', 16, 16); } --- 345,349 ---- $tags['MYPROFILE'] = PHPWSBB_Thread::createLink($mysettings, array('PHPWSBB_MAN_OP'=>'usersettings'), 'mysettings.png', 16, 16); $newposts = $_SESSION['translate']->it('View New Posts'); ! $tags['NEW_POSTS'] = PHPWSBB_Thread::createLink($newposts, array('PHPWSBB_MAN_OP'=>'getnew'), 'new_messages.png', 16, 16); } Index: Forum.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Forum.php,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** Forum.php 23 Feb 2006 06:16:36 -0000 1.42 --- Forum.php 25 Feb 2006 21:29:39 -0000 1.43 *************** *** 196,200 **** 'PHPWS_MAN_ITEMS[]'=>$this->getId()), 'mysettings.png', 16, 16); $newposts = $_SESSION['translate']->it('View New Posts'); ! $tags['NEW_POSTS'] = PHPWSBB_Thread::createLink($newposts, array('PHPWSBB_MAN_OP'=>'getnew'), 'xxxx.png', 16, 16); } if(!empty($this->_moderators)) { --- 196,200 ---- 'PHPWS_MAN_ITEMS[]'=>$this->getId()), 'mysettings.png', 16, 16); $newposts = $_SESSION['translate']->it('View New Posts'); ! $tags['NEW_POSTS'] = PHPWSBB_Thread::createLink($newposts, array('PHPWSBB_MAN_OP'=>'getnew'), 'new_messages.png', 16, 16); } if(!empty($this->_moderators)) { |
From: Shaun M. <sin...@us...> - 2006-02-25 20:29:08
|
Update of /cvsroot/phpwsbb/phpwsbb/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21121 Removed Files: ImgLibrary.php Log Message: Removing from module. We're using the core ImgLibrary from now on --- ImgLibrary.php DELETED --- |
From: Eloi G. <ada...@us...> - 2006-02-24 06:50:51
|
Update of /cvsroot/phpwsbb/phpwsbb/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11607/class Modified Files: Manager.php Message.php Thread.php Log Message: Reduced the number of queries required to show a thread. On my test system this reduced the number of queries produced by a view of a 12-message topic by an unregistered user from 70 to 18. The same page request by a moderator reduced the querycount from 108 to 31. Index: Thread.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Thread.php,v retrieving revision 1.81 retrieving revision 1.82 diff -C2 -d -r1.81 -r1.82 *** Thread.php 23 Feb 2006 06:16:37 -0000 1.81 --- Thread.php 24 Feb 2006 06:50:46 -0000 1.82 *************** *** 304,312 **** $content = ''; $bg = NULL; ! foreach($this->messages as $mid) { ! $message = new PHPWSBB_Message($mid, $this->isModerator); ! PHPWS_WizardBag::toggle($bg, ' class="bg_light"'); ! $content .= $message->_view($bg); ! } $tags['AUTHOR'] = $_SESSION['translate']->it('Author'); --- 304,318 ---- $content = ''; $bg = NULL; ! ! /* Retrieve all messages for this thread */ ! $sql = 'SELECT * FROM mod_phpwsbb_messages WHERE id IN ('.implode(',', $this->messages).') ORDER BY created'; ! if($result = $GLOBALS['core']->query($sql, 1)) { ! while($row=$result->fetchrow(DB_FETCHMODE_ASSOC)) { ! $message = new PHPWSBB_Message(null, $this->isModerator, $row); ! PHPWS_WizardBag::toggle($bg, ' class="bg_light"'); ! $content .= $message->_view($bg, $this->_replies); ! } ! } ! unset($result); $tags['AUTHOR'] = $_SESSION['translate']->it('Author'); Index: Message.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Message.php,v retrieving revision 1.85 retrieving revision 1.86 diff -C2 -d -r1.85 -r1.86 *** Message.php 27 Jan 2006 04:18:16 -0000 1.85 --- Message.php 24 Feb 2006 06:50:46 -0000 1.86 *************** *** 93,97 **** * @param int $MESSAGE_ID optional */ ! function PHPWSBB_Message($MESSAGE_ID = NULL, $isModerator=FALSE) { /* These variable are excluded when calling commit() */ $exclude = array('isModerator'); --- 93,97 ---- * @param int $MESSAGE_ID optional */ ! function PHPWSBB_Message($MESSAGE_ID = NULL, $isModerator=FALSE, $message_data=null) { /* These variable are excluded when calling commit() */ $exclude = array('isModerator'); *************** *** 106,109 **** --- 106,113 ---- $this->init(); } + /* otherwise, populate this object if data exists */ + if (isset($message_data)) { + $this->init($message_data); + } $this->isModerator = $isModerator; *************** *** 114,118 **** * Builds display page for message */ ! function _view($bg) { $tags = array(); --- 118,127 ---- * Builds display page for message */ ! function _view($bg, $thread_messagecount=null) { ! // If thread_messagecount wasn't given, retrieve it now ! if($thread_messagecount == null) { ! $thread = new PHPWSBB_Thread($this->_tid); ! $thread_messagecount = $thread->_replies; ! } $tags = array(); *************** *** 142,153 **** } else { if ($_SESSION['OBJ_user']->username && $_SESSION['OBJ_user']->username!=$this->getOwner()) { ! if ($GLOBALS['core']->moduleExists('notes')) { ! $notesinfo = PHPWS_Boost::getVersionInfo('notes'); ! if (version_compare($notesinfo['version'], '1.6.0') >= 0) ! $tags['NOTE'] = '<a href="index.php?module=notes&NOTE_op=new_note&NOTE_toUser=' . $this->getOwner() . '"><img src="./images/phpwsbb/new_note.png" border="0" height="16" width="16" alt="' . $_SESSION['translate']->it('Send note to poster') . '" title="' . $_SESSION['translate']->it('Send note to poster') . '" /> ' . $_SESSION['translate']->it('Note to [var1]',$this->getOwner()) . '</a>'; } } ! if ($GLOBALS['core']->moduleExists('phpwscontacts')) { require_once(PHPWS_SOURCE_DIR.'mod/phpwscontacts/class/Contact.php'); // Find contact owned by this username --- 151,160 ---- } else { if ($_SESSION['OBJ_user']->username && $_SESSION['OBJ_user']->username!=$this->getOwner()) { ! if (in_array('notes', $_SESSION['PHPWSBB_Manager']->installed_modules)) { ! $tags['NOTE'] = '<a href="index.php?module=notes&NOTE_op=new_note&NOTE_toUser=' . $this->getOwner() . '"><img src="./images/phpwsbb/new_note.png" border="0" height="16" width="16" alt="' . $_SESSION['translate']->it('Send note to poster') . '" title="' . $_SESSION['translate']->it('Send note to poster') . '" /> ' . $_SESSION['translate']->it('Note to [var1]',$this->getOwner()) . '</a>'; } } ! if (in_array('phpwscontacts', $_SESSION['PHPWSBB_Manager']->installed_modules)) { require_once(PHPWS_SOURCE_DIR.'mod/phpwscontacts/class/Contact.php'); // Find contact owned by this username *************** *** 182,187 **** } ! $thread = new PHPWSBB_Thread($this->_tid); ! if (($_SESSION['OBJ_user']->allow_access('phpwsbb', 'fork_messages') && $this->isModerator) && ($thread->_replies > 0)) $tags['FORK'] = '<a href="./index.php?module=phpwsbb&PHPWSBB_MAN_OP=fork&PHPWS_MAN_ITEMS[]=' . $this->getId() . '"><img src="./images/phpwsbb/fork.png" border="0" height="16" width="16" alt="' . $_SESSION['translate']->it('Fork') . '" title="' . $_SESSION['translate']->it('Fork') . '" /> ' . $_SESSION['translate']->it('Fork') . '</a>'; --- 189,193 ---- } ! if (($_SESSION['OBJ_user']->allow_access('phpwsbb', 'fork_messages') && $this->isModerator) && ($thread_messagecount > 0)) $tags['FORK'] = '<a href="./index.php?module=phpwsbb&PHPWSBB_MAN_OP=fork&PHPWS_MAN_ITEMS[]=' . $this->getId() . '"><img src="./images/phpwsbb/fork.png" border="0" height="16" width="16" alt="' . $_SESSION['translate']->it('Fork') . '" title="' . $_SESSION['translate']->it('Fork') . '" /> ' . $_SESSION['translate']->it('Fork') . '</a>'; Index: Manager.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Manager.php,v retrieving revision 1.66 retrieving revision 1.67 diff -C2 -d -r1.66 -r1.67 *** Manager.php 23 Feb 2006 06:16:36 -0000 1.66 --- Manager.php 24 Feb 2006 06:50:46 -0000 1.67 *************** *** 232,239 **** * Internal flag to determine when the user logs in as a member * ! * @var PHPWSBB_Message * @access public */ var $logged_in = NULL; function PHPWSBB_Manager() { --- 232,247 ---- * Internal flag to determine when the user logs in as a member * ! * @var boolean * @access public */ var $logged_in = NULL; + + /** + * List of all modules currently installed. For interoperability. + * + * @var array + * @access public + */ + var $installed_modules = NULL; function PHPWSBB_Manager() { *************** *** 270,273 **** --- 278,282 ---- else $this->logged_in = false; + $this->installed_modules = $GLOBALS['core']->listModules(1); }// END FUNC PHPWSBB_Manager *************** *** 563,567 **** $GLOBALS['CNT_phpwsbb']['content'] = $_SESSION['translate']->it('Anonymous viewing of this bulletin board has been disabled. You must log-in to view this bulletin board.'); } else { ! $sql = 'SELECT tid, label FROM ' . $GLOBALS["core"]->tbl_prefix . 'mod_phpwsbb_messages '. $where; $result = $GLOBALS['core']->query($sql); --- 572,576 ---- $GLOBALS['CNT_phpwsbb']['content'] = $_SESSION['translate']->it('Anonymous viewing of this bulletin board has been disabled. You must log-in to view this bulletin board.'); } else { ! $sql = 'SELECT tid, label FROM ' . $GLOBALS['core']->tbl_prefix . 'mod_phpwsbb_messages '. $where; $result = $GLOBALS['core']->query($sql); |
From: Eloi G. <ada...@us...> - 2006-02-24 06:46:13
|
Update of /cvsroot/phpwsbb/phpwsbb/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9201/inc Modified Files: runtime.php Log Message: Eliminated cpu load of instantiating PHPWSBB_Runtime and PHPWSBB_Forum on every homepage request. /class/Runtime.php is now obsolete. It only queries mod_phpwsbb_settings once now. Index: runtime.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/inc/runtime.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** runtime.php 13 Sep 2004 21:41:56 -0000 1.7 --- runtime.php 24 Feb 2006 06:45:57 -0000 1.8 *************** *** 24,36 **** */ ! require_once(PHPWS_SOURCE_DIR . 'mod/phpwsbb/class/Runtime.php'); if($GLOBALS['module'] == 'home') { ! // Display Forum List ! PHPWSBB_Runtime::showForumsBlock(); ! // Display Latest Threads Block ! PHPWSBB_Runtime::showLatestThreadsBlock(); ! } ?> --- 24,93 ---- */ ! //require_once(PHPWS_SOURCE_DIR . 'mod/phpwsbb/class/Runtime.php'); if($GLOBALS['module'] == 'home') { ! // Retrieve settings ! $result = $GLOBALS['core']->sqlSelect('mod_phpwsbb_settings'); ! $showforumsblock = $result[0]['showforumsblock']; ! $forumsblocktitle = $result[0]['forumsblocktitle']; ! $allow_anon_view = $result[0]['allow_anon_view']; ! $bboffline = $result[0]['bboffline']; ! $showlatestthreadsblock = $result[0]['showlatestthreadsblock']; ! $latestthreadsblocktitle = $result[0]['latestthreadsblocktitle']; ! $maxlatestthreads = $result[0]['maxlatestthreads']; ! if (($bboffline && !$_SESSION['OBJ_user']->isDeity()) ! || (!$allow_anon_view && !$_SESSION['OBJ_user']->username)) ! return; + /** + * Displays block with today's posts in it + * + * @author Don Seiler <do...@NO...> + */ + if($showforumsblock) { + $block = NULL; + $result = $GLOBALS['core']->sqlSelect('mod_phpwsbb_forums', 'hidden', 0, 'sortorder'); + if($result) { + $block .= '<ul>'; + foreach($result as $row) { + $block .= '<li>' . PHPWS_Text::moduleLink(PHPWS_Text::parseOutput($row['label']), 'phpwsbb', array('PHPWSBB_MAN_OP'=>'viewforum', 'PHPWS_MAN_ITEMS'=>$row['id'])) . '</li>'; + } + $block .= '</ul>'; + $GLOBALS['CNT_phpwsbb_forumsblock']['title'] = $forumsblocktitle; + $GLOBALS['CNT_phpwsbb_forumsblock']['content'] = $block; + } + } + // END showForumsBlock + + + /** + * Displays block with recently changed threads in it + * + * @author Don Seiler <do...@NO...> + */ + if($showlatestthreadsblock) { + $c=0; + $block = NULL; + $result = $GLOBALS['core']->sqlSelect('mod_phpwsbb_threads', 'hidden', 0, 'lastpost DESC', NULL, NULL, $maxlatestthreads); + if($result) { + $block .= '<ul>'; + foreach($result as $row) { + if(strlen($row['label']) > 15) + $lbl = substr(PHPWS_Text::parseOutput($row['label']),0,15) . ' ...'; + else + $lbl = PHPWS_Text::parseOutput($row['label']); + $block .= '<li>' . PHPWS_Text::moduleLink($lbl, 'phpwsbb', array('PHPWSBB_MAN_OP'=>'view', 'PHPWS_MAN_ITEMS'=>$row['id'])) . '</li>'; + $c++; + } + $block .= '</ul>'; + $GLOBALS['CNT_phpwsbb_latestthreadsblock']['title'] = $latestthreadsblocktitle; + $GLOBALS['CNT_phpwsbb_latestthreadsblock']['content'] = $block; + if($_SESSION['OBJ_user']->username) + $GLOBALS['CNT_phpwsbb_latestthreadsblock']['footer'] = '<a href="index.php?module=phpwsbb&PHPWSBB_MAN_OP=getnew">'.$_SESSION['translate']->it('View All New Posts').'</a>'; + } + } + // END showLatestThreadsBlock + + } ?> |
From: Eloi G. <ada...@us...> - 2006-02-23 06:16:44
|
Update of /cvsroot/phpwsbb/phpwsbb/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24050/templates Modified Files: forums_menu.tpl view_forum_top.tpl view_thread_top.tpl Log Message: Feature Request [ 1034602 ] "view posts since last visit" - Still need an icon for the button, though... Index: forums_menu.tpl =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/templates/forums_menu.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** forums_menu.tpl 4 Feb 2006 01:36:58 -0000 1.1 --- forums_menu.tpl 23 Feb 2006 06:16:37 -0000 1.2 *************** *** 9,11 **** --- 9,14 ---- {MYPROFILE} <!-- END PROFILE --> + <!-- BEGIN NEWSTUFF --> + {NEW_POSTS} + <!-- END NEWSTUFF --> <!-- END ACTIONS --> \ No newline at end of file Index: view_forum_top.tpl =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/templates/view_forum_top.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** view_forum_top.tpl 26 Oct 2004 05:14:08 -0000 1.4 --- view_forum_top.tpl 23 Feb 2006 06:16:37 -0000 1.5 *************** *** 21,23 **** --- 21,26 ---- {MYPROFILE} <!-- END PROFILE --> + <!-- BEGIN NEWSTUFF --> + {NEW_POSTS} + <!-- END NEWSTUFF --> <!-- END ACTIONS --> \ No newline at end of file Index: view_thread_top.tpl =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/templates/view_thread_top.tpl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** view_thread_top.tpl 5 Jan 2005 15:50:33 -0000 1.5 --- view_thread_top.tpl 23 Feb 2006 06:16:37 -0000 1.6 *************** *** 21,24 **** --- 21,27 ---- {MYPROFILE} <!-- END PROFILE --> + <!-- BEGIN NEWSTUFF --> + {NEW_POSTS} + <!-- END NEWSTUFF --> <!-- END ACTIONS --> <!-- BEGIN THREAD_MOVE --> |
From: Eloi G. <ada...@us...> - 2006-02-23 06:16:44
|
Update of /cvsroot/phpwsbb/phpwsbb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24050 Modified Files: index.php Log Message: Feature Request [ 1034602 ] "view posts since last visit" - Still need an icon for the button, though... Index: index.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/index.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** index.php 20 Feb 2006 05:08:51 -0000 1.16 --- index.php 23 Feb 2006 06:16:37 -0000 1.17 *************** *** 33,37 **** $CNT_phpwsbb['content'] = $_SESSION['translate']->it('Sorry, the bulletin board is currently down for maintenance.'); } else { ! /* This'll let the module work without those brackets */ if(isset($_REQUEST['PHPWS_MAN_ITEMS']) && is_numeric($_REQUEST['PHPWS_MAN_ITEMS'])) $_REQUEST['PHPWS_MAN_ITEMS']=array($_REQUEST['PHPWS_MAN_ITEMS']); --- 33,41 ---- $CNT_phpwsbb['content'] = $_SESSION['translate']->it('Sorry, the bulletin board is currently down for maintenance.'); } else { ! /* If the user just logged in, update their log times */ ! if ($_SESSION['OBJ_user']->username && !$_SESSION['PHPWSBB_Manager']->logged_in) ! $_SESSION['PHPWSBB_Manager'] = new PHPWSBB_Manager; ! ! /* This'll let the module work without those brackets */ if(isset($_REQUEST['PHPWS_MAN_ITEMS']) && is_numeric($_REQUEST['PHPWS_MAN_ITEMS'])) $_REQUEST['PHPWS_MAN_ITEMS']=array($_REQUEST['PHPWS_MAN_ITEMS']); |
From: Eloi G. <ada...@us...> - 2006-02-23 06:16:44
|
Update of /cvsroot/phpwsbb/phpwsbb/boost In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24050/boost Modified Files: install.sql update.php Log Message: Feature Request [ 1034602 ] "view posts since last visit" - Still need an icon for the button, though... Index: install.sql =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/boost/install.sql,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** install.sql 4 Feb 2006 04:18:24 -0000 1.23 --- install.sql 23 Feb 2006 06:16:36 -0000 1.24 *************** *** 125,128 **** --- 125,130 ---- suspendmonitors smallint NOT NULL default '0', monitordefault smallint NOT NULL default '0', + session_start int NOT NULL default '0', + last_on int NOT NULL default '0', PRIMARY KEY (user_id) ); Index: update.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/boost/update.php,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -d -r1.50 -r1.51 *** update.php 4 Feb 2006 04:38:11 -0000 1.50 --- update.php 23 Feb 2006 06:16:36 -0000 1.51 *************** *** 348,351 **** --- 348,358 ---- $content .= '<div class="errortext">There was a problem creating the views settings in the settings table.</div>'; + if ($status = $GLOBALS['core']->query('ALTER TABLE mod_phpwsbb_user_info ADD session_start int NOT NULL default "0", ADD last_on int NOT NULL default "0"', TRUE)) { + $content .= '* Added Settings for "View new posts" feature.<br />'; + $GLOBALS['core']->query('UPDATE mod_phpwsbb_user_info SET session_start = '.time()-86400, TRUE); + } + else + $content .= '<div class="errortext">There was a problem creating the "View new posts" settings in the User Settings table.</div>'; + $content .= '* Copying images to /images/phpwsbb/<br />'; /* Copy new image files */ |
From: Eloi G. <ada...@us...> - 2006-02-23 06:16:44
|
Update of /cvsroot/phpwsbb/phpwsbb/lang In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24050/lang Modified Files: phpwsbb.en.lng Log Message: Feature Request [ 1034602 ] "view posts since last visit" - Still need an icon for the button, though... Index: phpwsbb.en.lng =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/lang/phpwsbb.en.lng,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** phpwsbb.en.lng 20 Jul 2005 17:30:29 -0000 1.23 --- phpwsbb.en.lng 23 Feb 2006 06:16:37 -0000 1.24 *************** *** 159,160 **** --- 159,162 ---- a:|:Allow [var1] (Banned):|:Allow [var1] (Banned) a:|:Ban [var1]:|:Ban [var1] + a:|:View New Posts:|:View New Posts + a:|:New Posts Since My Last Visit on [var1]:|:New Posts Since My Last Visit on [var1] |
From: Eloi G. <ada...@us...> - 2006-02-23 06:16:44
|
Update of /cvsroot/phpwsbb/phpwsbb/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24050/class Modified Files: Forum.php Manager.php Runtime.php Thread.php Log Message: Feature Request [ 1034602 ] "view posts since last visit" - Still need an icon for the button, though... Index: Thread.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Thread.php,v retrieving revision 1.80 retrieving revision 1.81 diff -C2 -d -r1.80 -r1.81 *** Thread.php 4 Feb 2006 04:14:51 -0000 1.80 --- Thread.php 23 Feb 2006 06:16:37 -0000 1.81 *************** *** 316,319 **** --- 316,321 ---- $tags['MYPROFILE'] = $this->createLink($mysettings, array('PHPWSBB_MAN_OP'=>'usersettings', 'PHPWS_MAN_ITEMS[]'=>$this->getId()), 'mysettings.png', 16, 16); + $newposts = $_SESSION['translate']->it('View New Posts'); + $tags['NEW_POSTS'] = $this->createLink($newposts, array('PHPWSBB_MAN_OP'=>'getnew'), 'xxxx.png', 16, 16); } Index: Manager.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Manager.php,v retrieving revision 1.65 retrieving revision 1.66 diff -C2 -d -r1.65 -r1.66 *** Manager.php 4 Feb 2006 04:14:51 -0000 1.65 --- Manager.php 23 Feb 2006 06:16:36 -0000 1.66 *************** *** 228,231 **** --- 228,239 ---- */ var $message = NULL; + + /** + * Internal flag to determine when the user logs in as a member + * + * @var PHPWSBB_Message + * @access public + */ + var $logged_in = NULL; function PHPWSBB_Manager() { *************** *** 258,261 **** --- 266,273 ---- // Default page $this->last_viewed = array('PHPWSBB_MAN_OP'=>'list'); + if($_SESSION['OBJ_user']->username) + $this->_update_userlog(); + else + $this->logged_in = false; }// END FUNC PHPWSBB_Manager *************** *** 271,275 **** $tags['FORUM_ADMIN'] = 1; } ! if($_SESSION['OBJ_user']->allow_access('phpwsbb', 'edit_forums')) $tags['ADD_FORUM'] = '<a href="index.php?module=phpwsbb&PHPWSBB_MAN_OP=editforum">'.$addForum.'</a>'; --- 283,287 ---- $tags['FORUM_ADMIN'] = 1; } ! if($_SESSION['OBJ_user']->allow_access('phpwsbb', 'edit_forums')) $tags['ADD_FORUM'] = '<a href="index.php?module=phpwsbb&PHPWSBB_MAN_OP=editforum">'.$addForum.'</a>'; *************** *** 277,281 **** if($_SESSION['OBJ_user']->allow_access('phpwsbb', 'edit_settings')) $tags['SETTINGS'] = '<a href="index.php?module=phpwsbb&PHPWSBB_MAN_OP=getsettings">'.$settings.'</a>'; ! $tags['LIST'] = PHPWS_Text::moduleLink($_SESSION['translate']->it('Forums'), 'phpwsbb', array('PHPWSBB_MAN_OP'=>'list')); --- 289,293 ---- if($_SESSION['OBJ_user']->allow_access('phpwsbb', 'edit_settings')) $tags['SETTINGS'] = '<a href="index.php?module=phpwsbb&PHPWSBB_MAN_OP=getsettings">'.$settings.'</a>'; ! $tags['LIST'] = PHPWS_Text::moduleLink($_SESSION['translate']->it('Forums'), 'phpwsbb', array('PHPWSBB_MAN_OP'=>'list')); *************** *** 319,326 **** } ! /* "Edit Profile" button */ if($_SESSION['OBJ_user']->user_id) { $mysettings = $_SESSION['translate']->it('Settings'); $tags['MYPROFILE'] = PHPWSBB_Thread::createLink($mysettings, array('PHPWSBB_MAN_OP'=>'usersettings'), 'mysettings.png', 16, 16); } --- 331,340 ---- } ! /* "Edit Profile" and "All New Posts" button */ if($_SESSION['OBJ_user']->user_id) { $mysettings = $_SESSION['translate']->it('Settings'); $tags['MYPROFILE'] = PHPWSBB_Thread::createLink($mysettings, array('PHPWSBB_MAN_OP'=>'usersettings'), 'mysettings.png', 16, 16); + $newposts = $_SESSION['translate']->it('View New Posts'); + $tags['NEW_POSTS'] = PHPWSBB_Thread::createLink($newposts, array('PHPWSBB_MAN_OP'=>'getnew'), 'xxxx.png', 16, 16); } *************** *** 361,364 **** --- 375,397 ---- + function _listNewThreads($since) { + if(!$_SESSION['OBJ_user']->username) { + $GLOBALS['CNT_phpwsbb']['title'] = $_SESSION['translate']->it('Please Register'); + $GLOBALS['CNT_phpwsbb']['content'] .= $_SESSION['translate']->it('The "New Posts" feature is only available to registered users of this site. You must log-in to view this page.'); + return FALSE; + } + + $this->setClass('PHPWSBB_Thread'); + $this->setTable('mod_phpwsbb_threads'); + $this->setOrder('sticky DESC, lastpost DESC'); + if(!$_SESSION['OBJ_user']->allow_access('phpwsbb', 'hide_threads')) + $this->setSort('lastpost > '.$since.' AND hidden=0'); + else + $this->setSort('lastpost > '.$since); + + return PHPWS_Text::profanityFilter($this->getList('threads', NULL, FALSE)); + }// END FUNC _listNewThreads + + function _categories() { if(!$this->_allow_anon_view && !$_SESSION['OBJ_user']->username) { *************** *** 629,632 **** --- 662,667 ---- }// END FUNC _updateAllThreads + + /** * Show user settings form *************** *** 1382,1385 **** --- 1417,1427 ---- $GLOBALS['CNT_phpwsbb']['content'] = $_SESSION['translate']->it('All user post counts have been reset.'); break; + + case 'getnew': + if (!$since = $GLOBALS['core']->getOne('SELECT last_on FROM mod_phpwsbb_user_info WHERE user_id = '.$_SESSION['OBJ_user']->user_id, 1)) + $since = time(); + $GLOBALS['CNT_phpwsbb']['title'] = $_SESSION['translate']->it('New Posts Since My Last Visit on [var1]', date(PHPWS_DATE_FORMAT . ' ' . PHPWS_TIME_FORMAT, $since)); + $GLOBALS['CNT_phpwsbb']['content'] = $this->_menu() . $this->_listNewThreads($since); + break; } *************** *** 1419,1446 **** } elseif(is_array($id) && !empty($id['user_id'])) { $result = $id; ! } elseif(!$result = $GLOBALS['core']->getRow('SELECT * FROM ' . $GLOBALS['core']->tbl_prefix . 'mod_phpwsbb_user_info AS i LEFT JOIN ' . $GLOBALS['core']->tbl_prefix . 'mod_users AS u ON ( u.user_id = i.user_id ) LEFT JOIN ' . $GLOBALS['core']->tbl_prefix . 'mod_user_uservar AS v ON ( v.user_id = u.user_id AND v.varName="MOD_phpwsbb") WHERE i.user_id = '.$id)) { ! // If no record was found, create one ! $result = array(); ! ! // Develop correct user post counts ! $posts = $GLOBALS['core']->getRow('SELECT COUNT(owner_id) FROM mod_phpwsbb_messages WHERE owner_id='.$id, 1); ! $result['posts'] = $posts['COUNT(owner_id)']; ! ! // If the user has uservars set for this module... ! $monitordefault = $_SESSION['OBJ_user']->getUserVar('monitordefault', NULL, 'phpwsbb'); ! if ($monitordefault!=NULL) { ! // transfer the values to the table ! $result['monitordefault'] = $monitordefault; ! $result['suspendmonitors'] = $_SESSION['OBJ_user']->getUserVar('suspendmonitors', NULL, 'phpwsbb'); ! } ! else { ! $result['monitordefault'] = '0'; ! $result['suspendmonitors'] = '0'; ! } ! ! $result['user_id'] = $id; ! $GLOBALS['core']->sqlInsert($result, 'mod_phpwsbb_user_info', FALSE, FALSE, FALSE, FALSE); ! $result['location'] = $result['avatar'] = $result['signature'] = $result['monitordefault'] = $result['suspendmonitors'] = null; ! } // If user's post count is set to 0, recalculate it. --- 1461,1466 ---- } elseif(is_array($id) && !empty($id['user_id'])) { $result = $id; ! } else ! $result = $GLOBALS['core']->getRow('SELECT * FROM ' . $GLOBALS['core']->tbl_prefix . 'mod_phpwsbb_user_info AS i LEFT JOIN ' . $GLOBALS['core']->tbl_prefix . 'mod_users AS u ON ( u.user_id = i.user_id ) LEFT JOIN ' . $GLOBALS['core']->tbl_prefix . 'mod_user_uservar AS v ON ( v.user_id = u.user_id AND v.varName="MOD_phpwsbb") WHERE i.user_id = '.$id); // If user's post count is set to 0, recalculate it. *************** *** 1487,1490 **** --- 1507,1529 ---- } + /** + * Updates a user's log data. + * + * @author Eloi George <el...@NO...> + * @module PHPWSBB + * @param none + * @return none + */ + function _update_userlog() { + // If no user record exists, create one + if(!$result = $GLOBALS['core']->getRow('SELECT * FROM ' . $GLOBALS['core']->tbl_prefix . 'mod_phpwsbb_user_info WHERE user_id = '.$_SESSION['OBJ_user']->user_id)) { + $arr['session_start'] = time(); + $arr['user_id'] = $_SESSION['OBJ_user']->user_id; + $GLOBALS['core']->sqlInsert($arr, 'mod_phpwsbb_user_info', FALSE, FALSE, FALSE, FALSE); + } + $GLOBALS['core']->query('UPDATE mod_phpwsbb_user_info SET last_on = session_start, session_start = '.time().' WHERE user_id ='.$_SESSION['OBJ_user']->user_id, 1, 1); + $this->logged_in = true; + }// END FUNC _update_userlog + } ?> \ No newline at end of file Index: Forum.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Forum.php,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -d -r1.41 -r1.42 *** Forum.php 4 Feb 2006 04:14:51 -0000 1.41 --- Forum.php 23 Feb 2006 06:16:36 -0000 1.42 *************** *** 195,198 **** --- 195,200 ---- $tags['MYPROFILE'] = PHPWSBB_Thread::createLink($mysettings, array('PHPWSBB_MAN_OP'=>'usersettings', 'PHPWS_MAN_ITEMS[]'=>$this->getId()), 'mysettings.png', 16, 16); + $newposts = $_SESSION['translate']->it('View New Posts'); + $tags['NEW_POSTS'] = PHPWSBB_Thread::createLink($newposts, array('PHPWSBB_MAN_OP'=>'getnew'), 'xxxx.png', 16, 16); } if(!empty($this->_moderators)) { Index: Runtime.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Runtime.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** Runtime.php 4 Feb 2006 04:14:51 -0000 1.17 --- Runtime.php 23 Feb 2006 06:16:37 -0000 1.18 *************** *** 109,113 **** $GLOBALS['CNT_phpwsbb_latestthreadsblock']['title'] = $latestthreadsblocktitle; $GLOBALS['CNT_phpwsbb_latestthreadsblock']['content'] = $block; ! } } }// END FUNC showLatestThreadsBlock --- 109,115 ---- $GLOBALS['CNT_phpwsbb_latestthreadsblock']['title'] = $latestthreadsblocktitle; $GLOBALS['CNT_phpwsbb_latestthreadsblock']['content'] = $block; ! if($_SESSION['OBJ_user']->username) ! $GLOBALS['CNT_phpwsbb_latestthreadsblock']['footer'] = '<a href="index.php?module=phpwsbb&PHPWSBB_MAN_OP=getnew">'.$_SESSION['translate']->it('View All New Posts').'</a>'; ! } } }// END FUNC showLatestThreadsBlock |
From: Eloi G. <ada...@us...> - 2006-02-20 05:08:57
|
Update of /cvsroot/phpwsbb/phpwsbb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22874 Modified Files: index.php Log Message: Changed code to use the core class Image Library and deleted the temporary version included with phpwsbb. Index: index.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/index.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** index.php 23 Mar 2005 20:36:00 -0000 1.15 --- index.php 20 Feb 2006 05:08:51 -0000 1.16 *************** *** 71,75 **** * are already set as POSTs from the calling form. */ ! require_once PHPWS_SOURCE_DIR . 'mod/phpwsbb/class/ImgLibrary.php'; $library = new PHPWS_IMGLib($_SESSION['OBJ_user']->allow_access('phpwsbb', 'edit_avatars') , $_SESSION['OBJ_user']->allow_access('phpwsbb', 'edit_avatar_galleries') --- 71,75 ---- * are already set as POSTs from the calling form. */ ! require_once PHPWS_SOURCE_DIR . 'core/ImgLibrary.php'; $library = new PHPWS_IMGLib($_SESSION['OBJ_user']->allow_access('phpwsbb', 'edit_avatars') , $_SESSION['OBJ_user']->allow_access('phpwsbb', 'edit_avatar_galleries') |
From: Eloi G. <ada...@us...> - 2006-02-20 05:08:57
|
Update of /cvsroot/phpwsbb/phpwsbb/imglib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22874/imglib Removed Files: Image_Library.txt ImgLibrary.php ImgLibrary_view_gallery.tpl ImgLibrary_view_row.tpl README Log Message: Changed code to use the core class Image Library and deleted the temporary version included with phpwsbb. --- README DELETED --- --- Image_Library.txt DELETED --- --- ImgLibrary.php DELETED --- --- ImgLibrary_view_gallery.tpl DELETED --- --- ImgLibrary_view_row.tpl DELETED --- |
From: Shaun M. <sin...@us...> - 2006-02-04 04:38:19
|
Update of /cvsroot/phpwsbb/phpwsbb/boost In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31628 Modified Files: update.php Log Message: v1.0.4 updater Index: update.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/boost/update.php,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -d -r1.49 -r1.50 *** update.php 23 Mar 2005 20:42:37 -0000 1.49 --- update.php 4 Feb 2006 04:38:11 -0000 1.50 *************** *** 331,334 **** --- 331,362 ---- $content .= 'Several bug fixes see ChangeLog.<br />'; } + + if(version_compare($currentVersion, '1.0.4') < 0) { + $content .= '<br />v1.0.4<br />'; + $content .= '* Added private forums.<br />'; + $content .= '* Added reroute to logins if you\'re not logged in when posting.<br />'; + $content .= '* Added Category view.<br />'; + + if ($status = $GLOBALS['core']->query('ALTER TABLE mod_phpwsbb_threads ADD views int NOT NULL default "0" AFTER replies', TRUE)) + $content .= '* Added Thread view count feature.<br />'; + else + $content .= '<div class="errortext">There was a problem creating the views column to the thread table.</div>'; + + if ($status = $GLOBALS['core']->query('ALTER TABLE mod_phpwsbb_settings ADD use_views smallint NOT NULL default "0", ADD use_low_priority smallint NOT NULL default "0"', TRUE)) + $content .= '* Added Settings for view counts.<br />'; + else + $content .= '<div class="errortext">There was a problem creating the views settings in the settings table.</div>'; + + $content .= '* Copying images to /images/phpwsbb/<br />'; + /* Copy new image files */ + $images = array(); + if($handle = opendir(PHPWS_SOURCE_DIR . 'mod/phpwsbb/img/')) { + while (false !== ($file = readdir($handle))) { + if (is_file(PHPWS_SOURCE_DIR . 'mod/phpwsbb/img/${file}')) + if(!copy(PHPWS_SOURCE_DIR . 'mod/phpwsbb/img/${file}', $GLOBALS['core']->home_dir . 'images/phpwsbb/${file}')) + $content .= '<div class="errortext">Failed to copy ${file}</div>\n'; + } + } + } ?> \ No newline at end of file |
From: Shaun M. <sin...@us...> - 2006-02-04 04:18:34
|
Update of /cvsroot/phpwsbb/phpwsbb/boost In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25767 Modified Files: install.sql Log Message: Views count. Monitors default to off. Index: install.sql =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/boost/install.sql,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** install.sql 3 Oct 2004 23:17:39 -0000 1.22 --- install.sql 4 Feb 2006 04:18:24 -0000 1.23 *************** *** 39,42 **** --- 39,43 ---- locked smallint, replies int NOT NULL default '0', + views int NOT NULL default '0', lastpost int NOT NULL default '0', lastpost_post_id int NOT NULL default '0', *************** *** 97,103 **** max_avatar_width int NOT NULL default '90', max_avatar_size int NOT NULL default '6', ! use_signatures smallint NOT NULL default '1' ); ! INSERT INTO mod_phpwsbb_settings VALUES (1, 1, NULL, 'The thread [name] has been updated. Go to [url] to view it.', 0, 1, 1, 'Forums', 1, 'Latest Forum Posts', 5, 0, 1, 0, 90, 90, 6, 1); CREATE TABLE mod_phpwsbb_user_ranks ( --- 98,106 ---- max_avatar_width int NOT NULL default '90', max_avatar_size int NOT NULL default '6', ! use_signatures smallint NOT NULL default '1', ! use_views smallint NOT NULL default '0', ! use_low_priority smallint NOT NULL default '0' ); ! INSERT INTO mod_phpwsbb_settings VALUES (1, 1, NULL, 'The thread [name] has been updated. Go to [url] to view it.', 0, 1, 1, 'Forums', 1, 'Latest Forum Posts', 5, 0, 1, 0, 90, 90, 6, 1, 0, 0); CREATE TABLE mod_phpwsbb_user_ranks ( *************** *** 121,125 **** signature varchar(255) NOT NULL, suspendmonitors smallint NOT NULL default '0', ! monitordefault smallint NOT NULL default '1', PRIMARY KEY (user_id) ); --- 124,128 ---- signature varchar(255) NOT NULL, suspendmonitors smallint NOT NULL default '0', ! monitordefault smallint NOT NULL default '0', PRIMARY KEY (user_id) ); |
From: Shaun M. <sin...@us...> - 2006-02-04 04:15:03
|
Update of /cvsroot/phpwsbb/phpwsbb/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24409 Modified Files: Forum.php Manager.php Runtime.php Thread.php Log Message: Big changes. * Views count * Private Forums * Reroute to login if trying to do something that requires it * interface tweaks * category view Index: Thread.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Thread.php,v retrieving revision 1.79 retrieving revision 1.80 diff -C2 -d -r1.79 -r1.80 *** Thread.php 28 Jul 2005 19:09:51 -0000 1.79 --- Thread.php 4 Feb 2006 04:14:51 -0000 1.80 *************** *** 65,68 **** --- 65,76 ---- /** + * Number of times the thread has been viewed? + * + * @var integer + * @access private + */ + var $_views = 0; + + /** * Forum ID of this thread * *************** *** 171,174 **** --- 179,195 ---- } + // Restricted Group Access + $forum = new PHPWSBB_Forum($this->_fid); + if(!empty($forum->_groups)) { + $restricted = TRUE; + foreach($forum->_groups as $group) { + if(PHPWS_User::userInGroup($group)) { $restricted = FALSE; break; } + } + if(($restricted) && !$_SESSION['OBJ_user']->allow_access('phpwsbb', 'edit_forums')) { + $content = '<div class="errortext">' . $_SESSION['translate']->it('Sorry, you do not have access to this forum.') . '</div>'; + return $content; + } + } + if (count($this->messages) == 0) { $content = '<div class="errortext">' . $_SESSION['translate']->it('This topic has no messages.') . '</div>'; *************** *** 193,196 **** --- 214,220 ---- $tags['REPLIES'] = $this->_replies; + if ($_SESSION['PHPWSBB_Manager']->_use_views) { + $tags['VIEWS'] = $this->_views; + } if (!$ro) { *************** *** 294,297 **** --- 318,324 ---- } + // Update Views stat + $this->updateViews(); + return '<a name="bb-top" /></a>' . PHPWS_Template::processTemplate($tags, 'phpwsbb', 'view_thread_top.tpl') *************** *** 302,305 **** --- 329,342 ---- + function updateViews() { + if ($_SESSION['PHPWSBB_Manager']->_use_views) { + if ($_SESSION['PHPWSBB_Manager']->_use_low_priority) { + $GLOBALS['core']->query('UPDATE LOW_PRIORITY ' . $GLOBALS['core']->tbl_prefix . 'mod_phpwsbb_threads SET views = views + 1 WHERE id=' . $this->getId()); + } else { + $GLOBALS['core']->query('UPDATE ' . $GLOBALS['core']->tbl_prefix . 'mod_phpwsbb_threads SET views = views + 1 WHERE id=' . $this->getId()); + } + } + } + function updateThread($new = FALSE, $suppress_sets = FALSE) { if (!empty($this->_id)) { *************** *** 749,751 **** }// END CLASS PHPWSBB_Thread ! ?> \ No newline at end of file --- 786,788 ---- }// END CLASS PHPWSBB_Thread ! ?> Index: Manager.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Manager.php,v retrieving revision 1.64 retrieving revision 1.65 diff -C2 -d -r1.64 -r1.65 *** Manager.php 23 Mar 2005 20:36:05 -0000 1.64 --- Manager.php 4 Feb 2006 04:14:51 -0000 1.65 *************** *** 36,39 **** --- 36,42 ---- require_once(PHPWS_SOURCE_DIR . 'mod/help/class/CLS_help.php'); + require_once(PHPWS_SOURCE_DIR . 'mod/fatcat/class/CategoryView.php'); + + class PHPWSBB_Manager extends PHPWS_Manager { *************** *** 251,254 **** --- 254,259 ---- $this->_max_avatar_width = $result[0]['max_avatar_width']; $this->_max_avatar_size = $result[0]['max_avatar_size']; + $this->_use_views = $result[0]['use_views']; + $this->_use_low_priority = $result[0]['use_low_priority']; // Default page $this->last_viewed = array('PHPWSBB_MAN_OP'=>'list'); *************** *** 298,305 **** function _list() { if(!$this->_allow_anon_view && !$_SESSION['OBJ_user']->username) { ! $GLOBALS['CNT_phpwsbb']['title'] = $_SESSION['translate']->it('Anonymous Viewing Denied'); ! $GLOBALS['CNT_phpwsbb']['content'] .= $_SESSION['translate']->it('Anonymous viewing of this bulletin board has been disabled. You must log-in to view this bulletin board.'); ! return FALSE; ! } $GLOBALS['CNT_phpwsbb']['title'] = $_SESSION['translate']->it('Bulletin Board Forums'); --- 303,311 ---- function _list() { if(!$this->_allow_anon_view && !$_SESSION['OBJ_user']->username) { ! $_SESSION['OBJ_user']->jumpURL = './index.php?module=phpwsbb&PHPWSBB_MAN_OP=list'; ! $_SESSION['OBJ_user']->error[] = $_SESSION['translate']->it('Anonymous viewing of this bulletin board has been disabled. You must log-in to view this bulletin board.'); ! $_SESSION['OBJ_user']->routeLogin(); ! exit(); ! } $GLOBALS['CNT_phpwsbb']['title'] = $_SESSION['translate']->it('Bulletin Board Forums'); *************** *** 307,310 **** --- 313,322 ---- $GLOBALS['CNT_phpwsbb']['content'] .= $this->_menu(); + /* "New forum" button */ + if($_SESSION['OBJ_user']->allow_access('phpwsbb', 'edit_forums')) { + $newforum = $_SESSION['translate']->it('New Forum'); + $tags['NEW'] = PHPWSBB_Thread::createLink($newforum, array('PHPWSBB_MAN_OP'=>'editforum'), 'new_forum.png', 16, 16); + } + /* "Edit Profile" button */ if($_SESSION['OBJ_user']->user_id) { *************** *** 313,316 **** --- 325,334 ---- } + /* "Categories" button */ + if($_SESSION['OBJ_fatcat']) { + $categories = $_SESSION['translate']->it('Categories'); + $tags['CATEGORIES'] = PHPWSBB_Thread::createLink($categories, array('PHPWSBB_MAN_OP'=>'categories'), 'view_tree.png', 16, 16); + } + $this->setClass('PHPWSBB_Forum'); $this->setTable('mod_phpwsbb_forums'); *************** *** 319,322 **** --- 337,341 ---- $this->setSort('hidden=0'); + $GLOBALS['CNT_phpwsbb']['content'] .= PHPWS_Template::processTemplate($tags, 'phpwsbb', 'forums_menu.tpl'); $GLOBALS['CNT_phpwsbb']['content'] .= PHPWS_Text::profanityFilter($this->getList('forums', NULL, FALSE)); }// END FUNC _list *************** *** 326,330 **** if(!$this->_allow_anon_view && !$_SESSION['OBJ_user']->username) { $GLOBALS['CNT_phpwsbb']['title'] = $_SESSION['translate']->it('Anonymous Viewing Denied'); ! $GLOBALS['CNT_phpwsbb']['content'] .= $_SESSION['translate']->it('Anonymous viewing of this bulletin board has been disabled. You must log-in to view this bulletin board.'); return FALSE; } --- 345,349 ---- if(!$this->_allow_anon_view && !$_SESSION['OBJ_user']->username) { $GLOBALS['CNT_phpwsbb']['title'] = $_SESSION['translate']->it('Anonymous Viewing Denied'); ! $GLOBALS['CNT_phpwsbb']['content'] .= $_SESSION['translate']->it('Anonymous viewing of this bulletin board has been disabled. You must log-in to view this bulletin board.'); return FALSE; } *************** *** 342,350 **** function _viewForum() { if(!$this->_allow_anon_view && !$_SESSION['OBJ_user']->username) { ! $GLOBALS['CNT_phpwsbb']['title'] = $_SESSION['translate']->it('Anonymous Viewing Denied'); ! $GLOBALS['CNT_phpwsbb']['content'] .= $_SESSION['translate']->it('Anonymous viewing of this bulletin board has been disabled. You must log-in to view this bulletin board.'); ! return FALSE; } --- 361,397 ---- + function _categories() { + if(!$this->_allow_anon_view && !$_SESSION['OBJ_user']->username) { + $_SESSION['OBJ_user']->jumpURL = './index.php?module=phpwsbb&PHPWSBB_MAN_OP=categories'; + $_SESSION['OBJ_user']->error[] = $_SESSION['translate']->it('Anonymous viewing of this bulletin board has been disabled. You must log-in to view this bulletin board.'); + $_SESSION['OBJ_user']->routeLogin(); + exit(); + } + + $GLOBALS['CNT_phpwsbb']['title'] = $_SESSION['translate']->it('Bulletin Board Forums'); + + $GLOBALS['CNT_phpwsbb']['content'] .= $this->_menu(); + + $categoryView = new CategoryView; + $categoryView->setModule('phpwsbb'); + $categoryView->setOp('PHPWSBB_MAN_OP=categories'); + if(!isset($_REQUEST['category'])) { + $content = $categoryView->categoriesMainListing(); + } else { + $content = $categoryView->categoriesSCView(); + } + + $GLOBALS['CNT_phpwsbb']['content'] .= $content; + } + function _viewForum() { if(!$this->_allow_anon_view && !$_SESSION['OBJ_user']->username) { ! if(isset($_REQUEST['PHPWS_MAN_ITEMS'][0])) { ! $_SESSION['OBJ_user']->jumpURL = './index.php?module=phpwsbb&PHPWSBB_MAN_OP=viewforum&PHPWS_MAN_ITEMS[]=' . $_REQUEST['PHPWS_MAN_ITEMS'][0]; ! } else { ! $_SESSION['OBJ_user']->jumpURL = './index.php?module=phpwsbb&PHPWSBB_MAN_OP=viewforum'; ! } ! $_SESSION['OBJ_user']->error[] = $_SESSION['translate']->it('Anonymous viewing of this forum has been disabled. You must log-in to view this forum.'); ! $_SESSION['OBJ_user']->routeLogin(); } *************** *** 360,366 **** function _view() { if(!$this->_allow_anon_view && !$_SESSION['OBJ_user']->username) { ! $GLOBALS['CNT_phpwsbb']['title'] = $_SESSION['translate']->it('Anonymous Viewing Denied'); ! $GLOBALS['CNT_phpwsbb']['content'] .= $_SESSION['translate']->it('Anonymous viewing of this bulletin board has been disabled. You must log-in to view this bulletin board.'); ! return FALSE; } --- 407,413 ---- function _view() { if(!$this->_allow_anon_view && !$_SESSION['OBJ_user']->username) { ! $_SESSION['OBJ_user']->jumpURL = './index.php?module=phpwsbb&PHPWSBB_MAN_OP=view&PHPWS_MAN_ITEMS[]=' . $_REQUEST['PHPWS_MAN_ITEMS'][0]; ! $_SESSION['OBJ_user']->error[] = $_SESSION['translate']->it('Anonymous viewing of this forum has been disabled. You must log-in to view this forum.'); ! $_SESSION['OBJ_user']->routeLogin(); } *************** *** 436,442 **** function _new() { if(!$this->_allow_anon_posts && !$_SESSION['OBJ_user']->username) { ! $GLOBALS['CNT_phpwsbb']['title'] = $_SESSION['translate']->it('Anonymous Posting Denied'); ! $GLOBALS['CNT_phpwsbb']['content'] .= $_SESSION['translate']->it('Anonymous posting to this bulletin board has been disabled. You must log-in to post to this bulletin board.'); ! return FALSE; } $this->message = new PHPWSBB_Message; --- 483,489 ---- function _new() { if(!$this->_allow_anon_posts && !$_SESSION['OBJ_user']->username) { ! $_SESSION['OBJ_user']->jumpURL = './index.php?module=phpwsbb&PHPWSBB_MAN_OP=new&fid=' . $_REQUEST['fid']; ! $_SESSION['OBJ_user']->error[] = $_SESSION['translate']->it('Anonymous posting to this bulletin board has been disabled. You must log-in to post to this bulletin board.'); ! $_SESSION['OBJ_user']->routeLogin(); } $this->message = new PHPWSBB_Message; *************** *** 446,452 **** function _reply() { if(!$this->_allow_anon_posts && !$_SESSION['OBJ_user']->username) { ! $GLOBALS['CNT_phpwsbb']['title'] = $_SESSION['translate']->it('Anonymous Posting Denied'); ! $GLOBALS['CNT_phpwsbb']['content'] .= $_SESSION['translate']->it('Anonymous posting to this bulletin board has been disabled. You must log-in to post to this bulletin board.'); ! return FALSE; } $this->message = new PHPWSBB_Message; --- 493,499 ---- function _reply() { if(!$this->_allow_anon_posts && !$_SESSION['OBJ_user']->username) { ! $_SESSION['OBJ_user']->jumpURL = './index.php?module=phpwsbb&PHPWSBB_MAN_OP=reply&PHPWS_MAN_ITEMS[]=' . $_REQUEST['PHPWS_MAN_ITEMS'][0]; ! $_SESSION['OBJ_user']->error[] = $_SESSION['translate']->it('Anonymous posting to this bulletin board has been disabled. You must log-in to post to this bulletin board.'); ! $_SESSION['OBJ_user']->routeLogin(); } $this->message = new PHPWSBB_Message; *************** *** 770,774 **** if($GLOBALS['core']->sqlUpdate($data, 'mod_phpwsbb_user_info', 'user_id', $_POST['user'])) { $title = $_SESSION['translate']->it('Settings Saved'); ! $content = $this->_menu() . $_SESSION['translate']->it("Your settings have been successfully saved.") . "<br />"; $content .= PHPWS_Text::moduleLink($_SESSION['translate']->it('Back to Forums'), 'phpwsbb', $this->last_viewed); } else { --- 817,821 ---- if($GLOBALS['core']->sqlUpdate($data, 'mod_phpwsbb_user_info', 'user_id', $_POST['user'])) { $title = $_SESSION['translate']->it('Settings Saved'); ! $content = $this->_menu() . $_SESSION['translate']->it("Your settings have been successfully saved.") . "<br /><br />"; $content .= PHPWS_Text::moduleLink($_SESSION['translate']->it('Back to Forums'), 'phpwsbb', $this->last_viewed); } else { *************** *** 807,810 **** --- 854,867 ---- $tabs++; + $form->add('SETTINGS_views', 'checkbox'); + $form->setMatch('SETTINGS_views', $this->_use_views); + $form->setTab('SETTINGS_views', $tabs); + $tabs++; + + $form->add('SETTINGS_views_lowpri', 'checkbox'); + $form->setMatch('SETTINGS_views_lowpri', $this->_use_low_priority); + $form->setTab('SETTINGS_views_lowpri', $tabs); + $tabs++; + $form->add('SETTINGS_admin_email', 'text', $this->_admin_email); $form->setTab('SETTINGS_admin_email', $tabs); *************** *** 880,889 **** $tags['STATUS_TITLE'] = $_SESSION['translate']->it('Status'); $tags['ANON_TITLE'] = $_SESSION['translate']->it('Anonymous Users'); $tags['MONITORS_TITLE'] = $_SESSION['translate']->it('Monitors'); $tags['BLOCKS_TITLE'] = $_SESSION['translate']->it('Blocks'); $tags['AVATARS_TITLE'] = $_SESSION['translate']->it('Avatar Settings'); $tags['PERSONAL_TITLE'] = $_SESSION['translate']->it('Personal Info'); ! $tags['ANONPOSTS_TEXT'] = $_SESSION['translate']->it('Allow Anonymous Posts'); ! $tags['ANONVIEW_TEXT'] = $_SESSION['translate']->it('Allow Anonymous Viewing of Posts'); $tags['ADMIN_EMAIL_TEXT'] = $_SESSION['translate']->it('Bulletin Board Admin Email'); $tags['MONITOR_POSTS_TEXT'] = $_SESSION['translate']->it('Monitor Posts'); --- 937,949 ---- $tags['STATUS_TITLE'] = $_SESSION['translate']->it('Status'); $tags['ANON_TITLE'] = $_SESSION['translate']->it('Anonymous Users'); + $tags['STATS_TITLE'] = $_SESSION['translate']->it('Statistics'); $tags['MONITORS_TITLE'] = $_SESSION['translate']->it('Monitors'); $tags['BLOCKS_TITLE'] = $_SESSION['translate']->it('Blocks'); $tags['AVATARS_TITLE'] = $_SESSION['translate']->it('Avatar Settings'); $tags['PERSONAL_TITLE'] = $_SESSION['translate']->it('Personal Info'); ! $tags['ANONPOSTS_TEXT'] = $_SESSION['translate']->it('Allow Anonymous Posts by default'); ! $tags['ANONVIEW_TEXT'] = $_SESSION['translate']->it('Allow Anonymous Viewing of Posts by default'); ! $tags['VIEWS_TEXT'] = $_SESSION['translate']->it('Record and show number of times a thread is viewed'); ! $tags['VIEWS_LOWPRI_TEXT'] = $_SESSION['translate']->it('Use low priority stats updates (MySQL only)'); $tags['ADMIN_EMAIL_TEXT'] = $_SESSION['translate']->it('Bulletin Board Admin Email'); $tags['MONITOR_POSTS_TEXT'] = $_SESSION['translate']->it('Monitor Posts'); *************** *** 891,894 **** --- 951,956 ---- $tags['BBOFFLINE_TEXT'] = $_SESSION['translate']->it('Take Bulletin Board Offline'); $tags['EMAIL_TEXT_TEXT'] = $_SESSION['translate']->it('Email Notification Text'); + $tags['VIEWS_HELP'] = CLS_help::show_link('phpwsbb', 'views'); + $tags['VIEWS_LOWPRI_HELP'] = CLS_help::show_link('phpwsbb', 'views_lowpri'); $tags['ADMIN_EMAIL_HELP'] = CLS_help::show_link('phpwsbb', 'admin_email'); $tags['EMAIL_TEXT_HELP'] = CLS_help::show_link('phpwsbb', 'email_text'); *************** *** 948,952 **** $title = $_SESSION['translate']->it('Admin Settings'); ! $content = $this->_menu() . PHPWS_Template::processTemplate($tags, 'phpwsbb', 'edit_settings.tpl'); $GLOBALS['CNT_phpwsbb']['title'] = $title; --- 1010,1014 ---- $title = $_SESSION['translate']->it('Admin Settings'); ! $content = PHPWS_Template::processTemplate($tags, 'phpwsbb', 'edit_settings.tpl'); $GLOBALS['CNT_phpwsbb']['title'] = $title; *************** *** 972,975 **** --- 1034,1047 ---- $this->_allow_anon_view = 0; + if(isset($_REQUEST['SETTINGS_views'])) + $this->_use_views = 1; + else + $this->_use_views = 0; + + if(isset($_REQUEST['SETTINGS_views_lowpri'])) + $this->_use_low_priority = 1; + else + $this->_use_low_priority = 0; + if(isset($_REQUEST['SETTINGS_monitor_posts'])) $this->_monitor_posts = 1; *************** *** 1056,1059 **** --- 1128,1133 ---- $data['allow_anon_posts'] = $this->_allow_anon_posts; $data['allow_anon_view'] = $this->_allow_anon_view; + $data['use_views'] = $this->_use_views; + $data['use_low_priority'] = $this->_use_low_priority; $data['admin_email'] = $this->_admin_email; $data['email_text'] = $this->_email_text; *************** *** 1081,1084 **** --- 1155,1160 ---- $GLOBALS['CNT_phpwsbb']['title'] = $title; $GLOBALS['CNT_phpwsbb']['content'] .= $content; + $_SESSION['PHPWSBB_Manager'] = NULL; + }// END FUNC _saveSettings *************** *** 1296,1299 **** --- 1372,1379 ---- break; + case 'categories': + $this->_categories(); + break; + case 'recalc_users': /* Resets all post count to 0 so they'll be recalculated on user_load */ Index: Forum.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Forum.php,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** Forum.php 22 Mar 2005 00:49:47 -0000 1.40 --- Forum.php 4 Feb 2006 04:14:51 -0000 1.41 *************** *** 112,115 **** --- 112,123 ---- /** + * Restrict access to these groups + * + * @var string + * @access private + */ + var $_groups; + + /** * Forum Moderator flag * *************** *** 148,154 **** return $content; } $tags = array(); - if($_SESSION['OBJ_fatcat']) { $cat = $_SESSION['OBJ_fatcat']->fatcatLinks($this->getId()); --- 156,173 ---- return $content; } + + // Restricted Group Access + if(!empty($this->_groups)) { + $restricted = TRUE; + foreach($this->_groups as $group) { + if($_SESSION['OBJ_user']->userInGroup($group)) { $restricted = FALSE; break; } + } + if(($restricted) && !$_SESSION['OBJ_user']->allow_access('phpwsbb', 'edit_forums')) { + $content = '<div class="errortext">' . $_SESSION['translate']->it('Sorry, you do not have access to this forum.') . '</div>'; + return $content; + } + } $tags = array(); if($_SESSION['OBJ_fatcat']) { $cat = $_SESSION['OBJ_fatcat']->fatcatLinks($this->getId()); *************** *** 242,246 **** $form->add('Forum_description', 'textarea', $this->_description); $form->setRows('Forum_description',10); ! $form->setWidth('Forum_description',95); $form->setTab('Forum_description', $tabs); $tabs++; --- 261,265 ---- $form->add('Forum_description', 'textarea', $this->_description); $form->setRows('Forum_description',10); ! $form->setWidth('Forum_description',60); $form->setTab('Forum_description', $tabs); $tabs++; *************** *** 299,302 **** --- 318,325 ---- } + // Limit user access to this group + $tags['GROUPS_LABEL'] = $_SESSION['translate']->it('Limit access to these groups'); + $tags['GROUPS'] = $this->showGroups(); + if($_SESSION['OBJ_user']->js_on) $tags['FORUM_DESCRIPTION'] = PHPWS_WizardBag::js_insert('wysiwyg', 'PHPWSBB_Forum_edit', 'Forum_description') . $tags['FORUM_DESCRIPTION']; *************** *** 340,344 **** else $this->_moderators = ''; ! /* Hacks to get around some of Eloi's DDL */ if (empty($this->_posts)) --- 363,374 ---- else $this->_moderators = ''; ! ! // Set group access ! if(isset($_POST['phpwsBB_groups']) && is_array($_POST['phpwsBB_groups'])) { ! $this->_groups = $_POST['phpwsBB_groups']; ! } else { ! $this->_groups = NULL; ! } ! /* Hacks to get around some of Eloi's DDL */ if (empty($this->_posts)) *************** *** 499,502 **** --- 529,543 ---- function getLastPost() { + // Restricted Group Access + if(!empty($this->_groups)) { + $restricted = TRUE; + foreach($this->_groups as $group) { + if($_SESSION['OBJ_user']->userInGroup($group)) { $restricted = FALSE; break; } + } + if(($restricted) && !$_SESSION['OBJ_user']->allow_access('phpwsbb', 'edit_forums')) { + $content = '<div class="errortext">' . $_SESSION['translate']->it('Restricted') . '</div>'; + return $content; + } + } if($this->_lastpost) { $poster = $this->getEditor(); *************** *** 505,517 **** $retstring = NULL; - //$retstring .= '<font size="-2">'; $retstring .= $_SESSION['translate']->it('[var1]<br />in [var2]<br />by [var3]' , date(PHPWS_DATE_FORMAT . ' ' . PHPWS_TIME_FORMAT, $this->_lastpost) , '<a href="./index.php?module=phpwsbb&PHPWSBB_MAN_OP=view&PHPWS_MAN_ITEMS=' . $this->_lastpost_topic_id . '#' . $this->_lastpost_post_id . '">' . $this->_lastpost_topic_label . '</a>' , $poster); - //$retstring .= '</font>'; return $retstring; } else return NULL; }// END FUNC getLastPost }// END CLASS PHPWSBB_Forum --- 546,602 ---- $retstring = NULL; $retstring .= $_SESSION['translate']->it('[var1]<br />in [var2]<br />by [var3]' , date(PHPWS_DATE_FORMAT . ' ' . PHPWS_TIME_FORMAT, $this->_lastpost) , '<a href="./index.php?module=phpwsbb&PHPWSBB_MAN_OP=view&PHPWS_MAN_ITEMS=' . $this->_lastpost_topic_id . '#' . $this->_lastpost_post_id . '">' . $this->_lastpost_topic_label . '</a>' , $poster); return $retstring; } else return NULL; }// END FUNC getLastPost + + // Show a select box with users that are/can be Moderators + function showModerators() { + }// END FUNC showModerators + + // Show a select box with user groups for restricted access + function showGroups() { + if (!($groups = PHPWS_User_Groups::loadAllGroups())){ + $content = $_SESSION["translate"]->it("No groups found"); + } else { + $groupArray = array(); + foreach ($groups as $info){ + $groupArray[$info->group_id] = $info->group_name; + } + $content = PHPWS_Form::formMultipleSelect("phpwsBB_groups", $groupArray, $this->_groups, NULL, 1, 5); + } + return $content; + }// END FUNC showGroups + + function getListID() { + return $this->getId(); + } + + function getListOwner() { + return $this->_owner; + } + + function getListLabel() { + return $this->getLabel(); + } + + function getListDescription() { + return $this->_description; + } + + function getListThreads() { + return $this->_threads; + } + + function getListPosts() { + return $this->_posts; + } + + function getListLastpost() { + return $this->getLastPost(); + } }// END CLASS PHPWSBB_Forum Index: Runtime.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/class/Runtime.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Runtime.php 21 Mar 2005 17:23:11 -0000 1.16 --- Runtime.php 4 Feb 2006 04:14:51 -0000 1.17 *************** *** 70,74 **** /** ! * Displays block with next set of games in it * * @author Don Seiler <do...@NO...> --- 70,74 ---- /** ! * Displays block with recently changed threads in it * * @author Don Seiler <do...@NO...> |
From: Shaun M. <sin...@us...> - 2006-02-04 04:12:26
|
Update of /cvsroot/phpwsbb/phpwsbb/conf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23579 Modified Files: boost.php Log Message: version 1.0.4 Index: boost.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/conf/boost.php,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -d -r1.41 -r1.42 *** boost.php 23 Mar 2005 20:42:50 -0000 1.41 --- boost.php 4 Feb 2006 04:12:18 -0000 1.42 *************** *** 32,36 **** $admin_mod = 1; $active = 'on'; ! $version = '1.0.3'; $admin_op = '&PHPWSBB_MAN_OP=list'; $mod_class_files = array('Manager.php'); --- 32,36 ---- $admin_mod = 1; $active = 'on'; ! $version = '1.0.4'; $admin_op = '&PHPWSBB_MAN_OP=list'; $mod_class_files = array('Manager.php'); |
From: Shaun M. <sin...@us...> - 2006-02-04 01:51:38
|
Update of /cvsroot/phpwsbb/phpwsbb/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8787 Modified Files: editforum.tpl Log Message: Group Access restrictions Index: editforum.tpl =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/templates/editforum.tpl,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** editforum.tpl 26 Oct 2004 05:13:16 -0000 1.6 --- editforum.tpl 4 Feb 2006 01:51:29 -0000 1.7 *************** *** 40,43 **** --- 40,52 ---- <br /> + <!-- BEGIN GROUPS --> + <label> + {GROUPS_LABEL}:<br /> + {GROUPS} + </label> + <br /> + <br /> + <!-- END GROUPS --> + {FORUM_SAVE} {END_FORM} |
From: Shaun M. <sin...@us...> - 2006-02-04 01:39:01
|
Update of /cvsroot/phpwsbb/phpwsbb/templates/threads In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3889 Modified Files: list.tpl row.tpl Log Message: Added Views column Index: row.tpl =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/templates/threads/row.tpl,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** row.tpl 26 Oct 2004 05:15:05 -0000 1.6 --- row.tpl 4 Feb 2006 01:38:52 -0000 1.7 *************** *** 9,12 **** --- 9,13 ---- --> <td class="smalltext" style="text-align:center">{REPLIES}</td> + <!-- BEGIN VIEWS --><td class="smalltext" style="text-align:center">{VIEWS}</td><!-- END VIEWS --> <td class="smalltext" style="text-align:center">{LASTPOST}</td> </tr> Index: list.tpl =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/templates/threads/list.tpl,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** list.tpl 26 Oct 2004 05:15:05 -0000 1.7 --- list.tpl 4 Feb 2006 01:38:52 -0000 1.8 *************** *** 10,15 **** <th scope="col">{SELECT_LABEL}</th> <!-- END SELECT_LABEL --> ! <th width="60%" scope="col">{LABEL_LABEL}</th> <th width="10%" valign="middle" style="text-align:center" scope="col">{REPLIES_LABEL}</th> <th width="30%" valign="middle" nowrap="nowrap" style="text-align:center" scope="col">{LASTPOST_LABEL}</th> </tr> --- 10,16 ---- <th scope="col">{SELECT_LABEL}</th> <!-- END SELECT_LABEL --> ! <th scope="col">{LABEL_LABEL}</th> <th width="10%" valign="middle" style="text-align:center" scope="col">{REPLIES_LABEL}</th> + <!-- BEGIN VIEWS_LABEL --><th width="10%" valign="middle" style="text-align:center" scope="col">{VIEWS_LABEL}</th><!-- END VIEWS_LABEL --> <th width="30%" valign="middle" nowrap="nowrap" style="text-align:center" scope="col">{LASTPOST_LABEL}</th> </tr> |