iGuest 3 Report post Posted March 1, 2005 Can a member of admin add a new forum, entitled "Forum Games" this forum would be a place where users can play forums games such as word association etc.Also would it be possible to make it so that posts made there would not accumulate posts? (Spam and all that)Thanks Share this post Link to post Share on other sites
iGuest 3 Report post Posted March 1, 2005 yes I can, but need to install a mod(stop post increase in certain forum)...i forgot where did I found it... Share this post Link to post Share on other sites
iGuest 3 Report post Posted March 1, 2005 I've got the file, I'll post it in a bit. - EDIT: Here are the contents of the file: ############################################################## ## MOD Title: Disable Post Count Increase## MOD Author: Xore < xore@azuriah.com > (Robert Hetzler) http://www.azuriah.com/ ## MOD Description: This mod enables you to selectively turn off post count increments on each forum ## MOD Version: 1.0.1 ## ## Installation Level: (Easy) ## Installation Time: 2 Minutes ## Files To Edit: includes/functions_post.php,## admin/admin_forums.php## language/lang_english/lang_admin.php## templates/subSilver/admin/forum_edit_body.tpl## Included Files: (n/a) ############################################################## ## For Security Purposes, Please Check: https://www.phpbb.com/mods/ for the ## latest version of this MOD. Downloading this MOD from other sites could cause malicious code ## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered ## in our MOD-Database, located at: https://www.phpbb.com/mods/ ############################################################## ## Author Notes: ## ############################################################## ## MOD History: ## ## 2003-09-21 - Version 1.0.0 ## - Initial release ## 2003-09-23 - Version 1.0.1 ## - Comma error fixed, fixed "Files To Edit" ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # #-----[ SQL ]------------------------------------------ # Change the prefix 'phpbb_' accordingly. 'phpbb_' is the default prefix#ALTER TABLE phpbb_forums ADD forum_postcount TINYINT( 1 ) DEFAULT '1' NOT NULL;# #-----[ OPEN ]------------------------------------------ # includes/functions_post.php# #-----[ FIND ]------------------------------------------ # $sql = "UPDATE " . USERS_TABLE . "# #-----[ BEFORE, ADD ]------------------------------------------ # $sql = "SELECT forum_postcount FROM " . FORUMS_TABLE . " WHERE forum_id = $forum_id AND forum_postcount = 0"; if (!($result = $db->sql_query($sql))) { message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql); } if ($row = $db->sql_fetchrow($result)) { return; }# #-----[ OPEN ]------------------------------------------ # admin/admin_forums.php# #-----[ FIND ]------------------------------------------ # 'S_PRUNE_ENABLED' => $prune_enabled,# #-----[ AFTER, ADD ]------------------------------------------ # 'S_FORUM_POSTCOUNT' => ( isset($row) && isset($row['forum_postcount']) && ($row['forum_postcount'] == 0) ) ? '' : 'checked="checked"',# #-----[ FIND ]------------------------------------------ # 'L_DAYS' => $lang['Days'],# #-----[ AFTER, ADD ]------------------------------------------ # 'L_POSTCOUNT' => $lang['Forum_postcount'],# #-----[ FIND ]------------------------------------------ # prune_enable" . $field_sql# #-----[ IN-LINE FIND ]------------------------------------------ # prune_enable# #-----[ IN-LINE AFTER, ADD ]------------------------------------------ # (before the " )#, forum_postcount# #-----[ FIND ]------------------------------------------ # intval($HTTP_POST_VARS['prune_enable']) . $value_sql# #-----[ IN-LINE FIND ]------------------------------------------ # intval($HTTP_POST_VARS['prune_enable'])# #-----[ IN-LINE AFTER, ADD ]------------------------------------------ # (before the . )# . ", " . intval($HTTP_POST_VARS['forum_postcount'])# #-----[ FIND ]------------------------------------------ # prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "# #-----[ AFTER, ADD ]------------------------------------------ # , forum_postcount = " . intval($HTTP_POST_VARS['forum_postcount']) . "# #-----[ OPEN ]------------------------------------------ # language/lang_english/lang_admin.php# #-----[ FIND ]------------------------------------------ # $lang['prune_freq']# #-----[ BEFORE, ADD ]------------------------------------------ # $lang['Forum_postcount'] = 'Count user's posts';# #-----[ OPEN ]------------------------------------------ # templates/subSilver/admin/forum_edit_body.tpl# #-----[ FIND ]------------------------------------------ # <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{S_SUBMIT_VALUE}" class="mainoption" /></td># #-----[ BEFORE, ADD ]------------------------------------------ # <tr> <td class="row1">{L_POSTCOUNT}</td> <td class="row2">{L_ENABLED}<input type="checkbox" name="forum_postcount" value="1" {S_FORUM_POSTCOUNT} /></td> </tr># #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM And here's an auto-installer for the SQL. Save it as mod_install.php in your root phpBB dir, and run it. <?php/*************************************************************************** * mod_install.php * ------------------- * Version : 1.0 * begin : Friday, December 6th, 2002 * ***************************************************************************//*************************************************************************** * * copyright (C) 2002/2003 IcE-RaiN/Zarath * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * http://www.gnu.org/copyleft/gpl.html * ***************************************************************************/ define('IN_PHPBB', true);$phpbb_root_path='./';include($phpbb_root_path.'extension.inc');include($phpbb_root_path.'common.'.$phpEx);//// Start session management//$userdata = session_pagestart($user_ip, PAGE_INDEX);init_userprefs($userdata);//// End session management//if( !$userdata['session_logged_in'] ){ header('Location: ' . append_sid("login.$phpEx?redirect=shop_install.$phpEx", true));}if( $userdata['user_level'] != ADMIN ){ message_die(GENERAL_MESSAGE, $lang['Not_Authorised']);}if( !strstr($dbms, "mysql") ){ if( !isset($bypass) ) { $message = 'This mod has only been tested on MySQL and may only work on MySQL.<br />'; $message .= 'Click <a href="mod_install.php?bypass=true">here</a> to install anyways.'; message_die(GENERAL_MESSAGE, $message); }}$sql = array();$sql[] = "ALTER TABLE phpbb_forums ADD forum_postcount TINYINT( 1 ) DEFAULT '1' NOT NULL";$sql_count = count($sql);echo "<html>n";echo "<body>n";for($i = 0; $i < $sql_count; $i++){ echo "Running :: " . $sql[$i]; flush(); if ( !$db->sql_query($sql[$i]) ) { $errored = true; $error = $db->sql_error(); echo " -> <b>FAILED</b> ---> <u>" . $error['message'] . "</u><br /><br />nn"; } else { echo " -> <b>COMPLETED</b><br /><br />nn"; }}if( $errored ){ $message = "Some of the querys have failed, contact me so I can fix the errors.";}else{ $message = "The table have been edited successfully. You can now delete this file.";}echo "n<br />n<b>Finished!</b><br />n";echo $message . "<br />n";echo "</body>n";echo "</html>n";exit();?> Share this post Link to post Share on other sites
iGuest 3 Report post Posted March 1, 2005 CodeFX - you rock man. I think this is a good idea haz - i've saw this in mindintentions, another host. Share this post Link to post Share on other sites
iGuest 3 Report post Posted March 2, 2005 Yeah, nice idea... and i love the idea of the mod Share this post Link to post Share on other sites