MyBB Community Forums

Full Version: last poster in approve required forums problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
I made an approving required forum, When someone creates a topic in that forum and I approve it ; if I create a post in that topic and approve my post too , the topic's last poster will not change and still shows the previous last poster.
What is the problem ?

Thank you.
No idea.
Which page are you talking about? The last post in the forumdisplay.php, or last post in the entire forum in index.php
forumdisplay.php
I'm not sure if this has already been fixed, or if it's a problem with your forum in specific. Are you able to reproduce this on a clean installation of MyBB 1.2.x? Also are you able to reproduce this on the MyBB 1.4.x beta (see link at the bottom of my signature).
I've tested on a fresh 1.2.12 and the problem was there too!
From a quick look at the 1.4 code, there's a call to update_thread_data in approving posts, so it should work (haven't double checked yet).

I haven't tested this either, but you can.
In inc/class_moderation.php, on line 1299, there should be the following line of code:
$db->update_query(TABLE_PREFIX."threads", $counters, "tid='{$tid}'");
Add after it:
update_thread_data($tid);
ZiNgA BuRgA: Thanks but Nothing Yet !!

Thank you.