How To Don't Discount Posts I Delete To The Users? »  Show posts from    to     

Icy Phoenix


Old Support Topics - How To Don't Discount Posts I Delete To The Users?



tiolalu [ Fri 22 Dec, 2006 09:58 ]
Post subject: How To Don't Discount Posts I Delete To The Users?
If I delete posts, the users discounts the number of posts.

How to change it in order not to discount any post?

Thanks!


Mighty Gorgon [ Sun 24 Dec, 2006 22:14 ]
Post subject: Re: How To Don't Discount Posts I Delete To The Users?
You should check the function_post.php...

FIND
Code: [Hide] [Select]
$sign = ($mode == 'delete') ? '- 1' : '+ 1';


REPLACE WITH
Code: [Hide] [Select]
$sign = ($mode == 'delete') ? '- 0' : '+ 1';


tiolalu [ Mon 25 Dec, 2006 05:15 ]
Post subject: Re: How To Don't Discount Posts I Delete To The Users?
Thanks!

Merry christmas and a happy new year!


Mighty Gorgon [ Fri 29 Dec, 2006 11:11 ]
Post subject: Re: SOLVED -How To Don't Discount Posts I Delete To The User
You're welcome...


tiolalu [ Wed 03 Jan, 2007 02:12 ]
Post 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!


Mighty Gorgon [ Sun 07 Jan, 2007 22:21 ]
Post 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.


tiolalu [ Sun 07 Jan, 2007 22:42 ]
Post subject: Re: SOLVED -How To Don't Discount Posts I Delete To The User
Thanks!

I will try it, but... how to know it?


Mighty Gorgon [ Mon 08 Jan, 2007 14:35 ]
Post subject: Re: SOLVED -How To Don't Discount Posts I Delete To The User
tiolalu wrote: [View Post]
Thanks!

I will try it, but... how to know it?

Where do you click to delete a topic? Well... the file that is being recalled is the responsible... that is the first step...


tiolalu [ Fri 12 Jan, 2007 13:40 ]
Post subject: Re: How To Don't Discount Posts I Delete To The Users?
I had no time until now. I got the solution , thanks MG.

If anybody want it:

In /modcp.php

FIND (All without '///'):
Code: [Hide] [Select]
///$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);
/// }
/// }
///}


Comment al lines like above. That is .


Mighty Gorgon [ Wed 31 Jan, 2007 02:05 ]
Post 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.


tiolalu [ Tue 29 May, 2007 00:15 ]
Post 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!




Powered by Icy Phoenix