If I delete posts, the users discounts the number of posts.
How to change it in order not to discount any post?
Thanks!
SOLVED How To Don't Discount Posts I Delete To The Users?
Subject: Re: How To Don't Discount Posts I Delete To The Users?
You should check the function_post.php...
FIND
REPLACE WITH
FIND
REPLACE WITH
Subject: Re: How To Don't Discount Posts I Delete To The Users?
Thanks!
Merry christmas and a happy new year!
Merry christmas and a happy new year!
Subject: Re: How To Don't Discount Posts I Delete To The Users?
Ok, it works if you delete them single, but if you delete the whole thread it doesn't work, any idea?
Thanks!
Thanks!
Subject: Re: SOLVED -How To Don't Discount Posts I Delete To The User
I don't have the time to look at this right now... but you may try to check which files is running the topic deletion and then look for the code which is discounting posts...
If you can at least find these part... then someone will try to help you in solving this. :wink:
If you can at least find these part... then someone will try to help you in solving this. :wink:
Subject: Re: SOLVED -How To Don't Discount Posts I Delete To The User
Thanks!
I will try it, but... how to know it?
I will try it, but... how to know it?
Subject: Re: SOLVED -How To Don't Discount Posts I Delete To The User
Where do you click to delete a topic? Well... the file that is being recalled is the responsible... that is the first step... :wink:
tiolalu wrote: [View Post]
Where do you click to delete a topic? Well... the file that is being recalled is the responsible... that is the first step... :wink:
Subject: Re: How To Don't Discount Posts I Delete To The Users?
I had no time until now. I got the solution :D , thanks MG.
If anybody want it:
In /modcp.php
FIND (All without '///'):
Comment al lines like above. That is ;) .
If anybody want it:
In /modcp.php
FIND (All without '///'):
///$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);
/// }
/// }
///}
///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);
/// }
/// }
///}
Comment al lines like above. That is ;) .
Subject: Re: SOLVED -How To Don't Discount Posts I Delete To The User
Great you could solve on your own... and thanks for sharing. :wink:
Subject: Re: SOLVED - How To Don't Discount Posts I Delete To The Use
I revive this post to ask how can I avoid discount post when pruning act.
I was looking pruning.php but nothing found, I have function_post.php and modcp.php already modified.
Thanks!
I was looking pruning.php but nothing found, I have function_post.php and modcp.php already modified.
Thanks!
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.0873s (PHP: 21% SQL: 79%)
SQL queries: 10 - Debug Off - GZIP Enabled