epolady wrote: How is this MOD different from this?
http://www.phpbb.com/phpBB/viewtopic.php?t=138032
fateorfantasy wrote:epolady wrote:How is this MOD different from this?
http://www.phpbb.com/phpBB/viewtopic.php?t=138032
This mod has:and most of the differences are addressed on this page: http://www.phpbb.com/phpBB/viewtopic.ph ... c&start=20
- If someone posts in a specific forum, post count does not go up?
- If that previous post is deleted, his/her post count does not go down?
- If a topic in the no-post-count forum is moved to a post-count-forum, all people get the credit (ie: post count goes up for all people who have posted in that topic)?
- If a topic in a post-count forum is moved to the no-post-count-forum, all people lose the credit (ie: post count goes down for all people who have posted in that topic)?
Xore wrote: IIRC, this one will recount your posts, so if topics you posted in get deleted, this will cause your post count to decrease for that also.
Code: Select all
Parse error: parse error in /var/home/my_site_name/forum/modcp.php on line 494
Code: Select all
$topics = ( isset($HTTP_POST_VARS['topic_id_list']) ) ? $HTTP_POST_VARS['topic_id_list'] : array($topic_id);topic_id_list']) ) ? $HTTP_POST_VARS['topic_id_list'] : array($topic_id);
Code: Select all
$topic_list = '';
morpheus2matrix wrote: have you check all your modifications in the file modcp.php ? maybe you should, or try to take a fresh file and re-done the modifications
Code: Select all
$HTTP_POST_VARS['topic_id_list'] : array($topic_id);topic_id_list']) ) ?
Allen_oc wrote:morpheus2matrix wrote:have you check all your modifications in the file modcp.php ? maybe you should, or try to take a fresh file and re-done the modifications
I've just checked the modification and what was wrong? There shouldn't be the:In Line 494 in modcp.php File.Code: Select all
$HTTP_POST_VARS['topic_id_list'] : array($topic_id);topic_id_list']) ) ?
I think that was the residue of last scipt for no inceasing post in forums, which i used before. Anyway, now all is working properly.
Thx 4 giving me a hand.
Code: Select all
$topics = ( isset($HTTP_POST_VARS['topic_id_list']) ) ? $HTTP_POST_VARS['topic_id_list'] : array($topic_id);
Code: Select all
topic_id_list']) ) ?
Code: Select all
include($phpbb_root_path . 'includes/functions_search.'.$phpEx);
$topics = ( isset($HTTP_POST_VARS['topic_id_list']) ) ? $HTTP_POST_VARS['topic_id_list'] : array($topic_id);
// Start code for Stop Post Count MOD
// Code writen by KingRufus (09/23/2002)
$board_config['no_post_count_forum_id'] = $GLOBALS['board_config']['no_post_count_forum_id'];
if( strstr($board_config['no_post_count_forum_id'], ',') )
{
$fids = explode(',', $board_config['no_post_count_forum_id']);
while( list($foo, $id) = each($fids) )
{
$fid[] = intval( trim($id) );
}
}
else
{
$fid[] = intval( trim($board_config['no_post_count_forum_id']) );
}
reset($fid);
$topic_id_sql = '';
$topic_id_sql_onlypostcount_forums = '';
for($i = 0; $i < count($topics); $i++)
{
$topic_id_sql .= ( ( $topic_id_sql != '' ) ? ', ' : '' ) . $topics[$i];
$sql = "SELECT forum_id
FROM " . POSTS_TABLE . "
WHERE topic_id = ". $topics[$i];
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get forum id information', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
if (in_array($row["forum_id"], $fid) == false)
{
$topic_id_sql_onlypostcount_forums .= ( ( $topic_id_sql_onlypostcount_forums != '' ) ? ', ' : '' ) . $topics[$i];
}
}
if ($topic_id_sql_onlypostcount_forums != '')
{
$sql = "SELECT poster_id, COUNT(post_id) AS posts
FROM " . POSTS_TABLE . "
WHERE topic_id IN ($topic_id_sql_onlypostcount_forums)
GROUP BY poster_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get poster id information', '', __LINE__, __FILE__, $sql);
}
$count_sql = array();
while ( $row = $db->sql_fetchrow($result) )
{
$count_sql[] = "UPDATE " . USERS_TABLE . "
SET user_posts = user_posts - " . $row['posts'] . "
WHERE user_id = " . $row['poster_id'];
}
$db->sql_freeresult($result);
if ( sizeof($count_sql) )
{
for($i = 0; $i < sizeof($count_sql); $i++)
{
if ( !$db->sql_query($count_sql[$i]) )
{
message_die(GENERAL_ERROR, 'Could not update user post count information', '', __LINE__, __FILE__, $sql);
}
}
}
}
// End code for Stop Post Count MOD
Code: Select all
http://thenest.dyndns.org/ppforum/viewforum.php?f=2
the Pelican's configuration wrote: 2,37,44