Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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!
 




____________
My 2 IP Forums:
ModMovil: Motorola, Nokia, SonyEricsson
 
tiolaluSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: How To Don't Discount Posts I Delete To The Users? 
 
You should check the function_post.php...

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


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

 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How To Don't Discount Posts I Delete To The Users? 
 
Thanks!

Merry christmas and a happy new year!
 




____________
My 2 IP Forums:
ModMovil: Motorola, Nokia, SonyEricsson
 
tiolaluSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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!
 




____________
My 2 IP Forums:
ModMovil: Motorola, Nokia, SonyEricsson
 
tiolaluSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: SOLVED -How To Don't Discount Posts I Delete To The User 
 
Thanks!

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




____________
My 2 IP Forums:
ModMovil: Motorola, Nokia, SonyEricsson
 
tiolaluSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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...
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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: [Download] [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 .
 




____________
My 2 IP Forums:
ModMovil: Motorola, Nokia, SonyEricsson
 
tiolaluSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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!
 




____________
My 2 IP Forums:
ModMovil: Motorola, Nokia, SonyEricsson
 
tiolaluSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron