Page 1 of 1

Post Count Mods

PostPosted: Fri Jun 23, 2006 8:39 am
Author: aoowais
I'd like to learn how to port these two mods to Integramod.

[url=http]Forum Enter Post Limit[/url]
[url=http]Spin the Wheel[/url]

This is to prevent inactive users from accessing a few parts of my forum. But, if they'd like to try to increase their post count artificially by 'spinning the wheel', they are most welcome to do so.

Now for forum enter post limit, this is the problem. I can't seem to find these lines from admin_forums.php:

Code: Select all
 #----[ FIND ]------------------------------------------ #                   $forumstatus = FORUM_UNLOCKED;  ##----[ AFTER, ADD ]------------------------------------------ #                   $forum_enter_limit = '';    


and

Code: Select all
 ##-----[ FIND ]--------------------------------------------#             $sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable" . $field_sql . ")                 VALUES ('" . $next_id . "', '" . str_replace("'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")";  ##-----[ IN LINE, FIND ]------------------------------------#, forum_status  ##-----[ AFTER, ADD ]--------------------------------------#  , forum_enter_limit  ##-----[ IN LINE, FIND ]------------------------------------#, " . intval($HTTP_POST_VARS['forumstatus']) . "  ##-----[ AFTER, ADD ]--------------------------------------#  , " . intval($HTTP_POST_VARS['forum_enter_limit']) . "  ##-----[ FIND ]--------------------------------------------#             $sql = "UPDATE " . FORUMS_TABLE . "                 SET forum_name = '" . str_replace("'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", forum_desc = '" . str_replace("'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "  ##-----[ IN LINE, FIND ]------------------------------------#, forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . "  ##-----[ AFTER, ADD ]--------------------------------------#  , forum_enter_limit = " . intval($HTTP_POST_VARS['forum_enter_limit']) . "    


and these from templates/fisubice/admin/forums_edit_body.tpl

Code: Select all
 ##----[ FIND ]------------------------------------------ #       <tr>       <td>{L_FORUM_STATUS}</td>       <td><select>{S_STATUS_LIST}</select></td>     </tr>  ##----[ AFTER, ADD ]------------------------------------------ #       <tr>       <td>{L_FORUM_ENTER_LIMIT}</td>       <td><input></td>     </tr>  

PostPosted: Sat Jun 24, 2006 9:03 pm
Author: aoowais
Does anyone know how to port the "Forum Enter Post Limit" to integramod? I've managed to fix the spinner already.

Re: Post Count Mods

PostPosted: Sat Jul 01, 2006 11:45 am
Author: Skywalker
you maybe can post your file changes so other can use them also...
you request help here, so post your solutions also...
the help does not need to come from the IM team only