Post Count Mods

Mods etc.

Moderator: Integra Moderator

Post Count Mods

PostAuthor: aoowais » Fri Jun 23, 2006 7:39 am

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>  
Last edited by aoowais on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

aoowais
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Thu Jun 01, 2006 1:22 am
Cash on hand: 0.00

PostAuthor: aoowais » Sat Jun 24, 2006 8:03 pm

Does anyone know how to port the "Forum Enter Post Limit" to integramod? I've managed to fix the spinner already.
Last edited by aoowais on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

aoowais
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Thu Jun 01, 2006 1:22 am
Cash on hand: 0.00

Re: Post Count Mods

PostAuthor: Skywalker » Sat Jul 01, 2006 10:45 am

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
Last edited by Skywalker on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 4:25 pm
Cash on hand: 0.00


Return to IntegraMOD Modifications

Who is online

Registered users: Bing [Bot], Vendethiel