PDA

View Full Version : [misbehaving feature] When validating posts they aren't considered new (and more)


amykhar
Tue 27th Nov '01, 11:38am
Here's the scenario. A member submitted a few threads to a forum that must be moderated before new threads appear.

When I approved them, they showed up in the forum, BUT

1) They did not show up in the new posts list.
2) They displayed not as if they had just been posted, but as if they had been posted when they were originally submitted. Thus, they were not at the top of the forum, but sprinkled in with other threads that had recently received replies.

Amy

Chen
Tue 27th Nov '01, 11:49am
I agree, this should be changed.

amykhar
Tue 27th Nov '01, 11:57am
Do you know offhand where the code is that controls the approval process? I believe it would be trivial for me to simply update the dateline of the thread with the time of the approval.

I just gotta find it :)

Amy

Chen
Tue 27th Nov '01, 12:04pm
From the top of my head, it's moderate.php in the mod folder.

amykhar
Tue 27th Nov '01, 12:38pm
yep. That was it.

I simply added dateline=time() to the two update queries, and it seems to be working just fine.

Thank you.

Amy

Black Tiger
Mon 3rd Dec '01, 6:55pm
Could you give me a line example and line number please? I'm not that good in php.:)