|
Page 1 of 1
|
tiolalu 
Joined: November 2006
Posts: 311
Location:  Madrid
|
 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!
|
#1 Fri 22 Dec, 2006 09:58 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
| |
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: How To Don't Discount Posts I Delete To The Users?
You should check the function_post.php...
FIND
$sign = ($mode == 'delete') ? '- 1' : '+ 1';
REPLACE WITH
$sign = ($mode == 'delete') ? '- 0' : '+ 1';
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#2 Sun 24 Dec, 2006 22:14 |
|
tiolalu 
Joined: November 2006
Posts: 311
Location:  Madrid
|
 Re: How To Don't Discount Posts I Delete To The Users?
Thanks!
Merry christmas and a happy new year!
|
#3 Mon 25 Dec, 2006 05:15 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: SOLVED -How To Don't Discount Posts I Delete To The User
You're welcome...
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#4 Fri 29 Dec, 2006 11:11 |
|
tiolalu 
Joined: November 2006
Posts: 311
Location:  Madrid
|
 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!
|
#5 Wed 03 Jan, 2007 02:12 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 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.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#6 Sun 07 Jan, 2007 22:21 |
|
tiolalu 
Joined: November 2006
Posts: 311
Location:  Madrid
|
 Re: SOLVED -How To Don't Discount Posts I Delete To The User
Thanks!
I will try it, but... how to know it?
|
#7 Sun 07 Jan, 2007 22:42 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: SOLVED -How To Don't Discount Posts I Delete To The User
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...
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#8 Mon 08 Jan, 2007 14:35 |
|
tiolalu 
Joined: November 2006
Posts: 311
Location:  Madrid
|
 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 '///'):
///$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  .
|
#9 Fri 12 Jan, 2007 13:40 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: SOLVED -How To Don't Discount Posts I Delete To The User
Great you could solve on your own... and thanks for sharing.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#10 Wed 31 Jan, 2007 02:05 |
|
tiolalu 
Joined: November 2006
Posts: 311
Location:  Madrid
|
 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!
|
#11 Tue 29 May, 2007 00:15 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
| Link this topic |
| URL |
|
| BBCode |
|
| HTML |
|
You cannot post new topics You 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
|
|
|
|