The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Unapproving Posts
Like many other forums, the forum I work with has a spam problem. In order to help contain the problem, we decided to open up the ability to "unapprove" posts to a non-moderator group. I have added a checkbox to the report bad post template. If the member checks that they are sure this is a spam post it will be hidden using the unapprove post function.
here is a snip from the report.php page that I modified. PHP Code:
It uses a vBulletin function to unapprove the post and adds a line to the report text informing the moderators that a user has hidden a post (or thread). Then they can decide to restore the post or delete it. However, I am having a problem with the latest post display. This method does a great job at removing the offending post/thread. What it doesn't do is remove the post from the latest post in the forum display on the home page. The thread is listed to anyone, but only moderators can actually see the post (everyone else gets an invalid thread). Obviously I need to do something else here. Does anyone have any suggestions? Thanks for taking a look! |
#2
|
|||
|
|||
If anyone is interested, I fixed my problem. I used the postid to obtain postinfo, then threadinfo. Once the forumid was obtained from the threadinfo I used the build_forum_counters($forumid) function. This took care of the issue.
|
#3
|
|||
|
|||
Thank you for adding your second post Charlie, that tells me my problem's solvable.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|