1

(6 replies, posted in General discussion)

ok I've found the matter so I write here for ones who had or will have this problem.

the mistake is because of the space in "program files", but it doesn't work with brackets, so put your folder at the root

c:\folder1 and c:\folder2

2

(6 replies, posted in General discussion)

Hi

I actually use hdiff on windows by using cygwin and i have a problem to built a hdiff file when i want to "scan" complete folders and no only files

c:\>perl.exe hdiff -n -l "3" -o "difference.html" -t "Forums difference" /Punbb /forums

this doesn't work on win, the mistake is /Punbb not found

I've tried with c:\program files\punbb but it's the same

If someone can tell me how can I do I thank him a lot

I'm posting here something for people as me who wants to have the real counter of user_posts

When you delete a post or a topic the field num_posts of posters isn't decreased. That's a choice of Rickard but I post here the modification if someone wants them

For this you have to modify the file includes/functions.php
in function delete_topic

while ($row = $db->fetch_row($result)){
    $post_ids .= ($post_ids != '') ? ','.$row[0] : $row[0];

by

    while ($row = $db->fetch_row($result)){
        $post_ids .= ($post_ids != '') ? ','.$row[0] : $row[0];

    $db->query('UPDATE pun_users SET num_posts=num_posts-1 WHERE id='.$row[1]) 
or error('Unable to update users posts', __FILE__, __LINE__, $db->error());
    }

in the function delete_post

just before deleting the post
   

  // Delete the post

add those lines


    //keep the id_poster
    $result = $db->query('SELECT poster_id FROM pun_posts WHERE id='.$post_id.' ORDER BY id DESC LIMIT 2') 
or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
    $row = $db->fetch_row($result);
    $db->query('UPDATE pun_users SET num_posts=num_posts-1 WHERE id='.$row[0])
 or error('Unable  to update users posts', __FILE__, __LINE__, $db->error());

Tell me back want do you think of this modification and if that's usefull for you too