Auto-solve report threads
This modification is in the archives.
In our forum we have a category for reports and when a report is "solved" we move them into "Reported Archive" and put a [solved] in front of their title.
We used to do this manually, until today that I thought of a way to make the process automatic, and it only requires a template edit! I'm releasing this for any forum that has a similar moderation regime. In your SHOWTHREAD template add somewhere (not inside a form though) the following code: HTML Code:
<if condition="can_moderate() AND $forumid==$vboptions['rpforumid']"> <form method="post" action="postings.php?do=domovethread&t=$threadid"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="hidden" name="t" value="$threadid" /> <input type="hidden" name="do" value="domovethread" /> <input type="hidden" name="title" value="[solved] $threadinfo[title]" /> <input type="hidden" name="destforumid" value="88" /> <input type="hidden" name="redirect" value="none" /> <input type="submit" value="Solve report"> </form> </if> FAQ I get an "Invalid Action Specified" or "You did not select any posts" error. Spoiler (click to open)
Find:
PHP Code:
<if condition="$show['inlinemod']">
Close
I get a no permission error Spoiler (click to open)
One of my mods gets this: (Edit: all mods get it, only I dont)
, you do not have permission to access this page. This could be due to one of several reasons:
His primary usergroup is the mod usergroup, any reason why it is not giving him permission to do it? Edit: solved, some mods didnt have moderator permission in that forum. Close
How do I get the moderator's name to show in the moved thread's title as well? Spoiler (click to open)
Quote by TheInsaneManiac
It says you have not chosen a post because you put the code inside the inlinemod form. I said in the first post that it shouldn't be inside an existing form.
Quote by tavarish
Sure, just change this:
HTML Code:
<input type="hidden" name="title" value="[solved] $threadinfo[title]" />
HTML Code:
<input type="hidden" name="title" value="[solved by $bbuserinfo[username]] $threadinfo[title]" />
Close
Download No files for download. |
Similar Mods
vB Report Manager 2.0 (Admin CP) - Report to Email, PM, Staff Forum as a new Thread! | vBulletin 3.0 Full Releases |
Expired Threads (Auto Close Threads) | Modification Graveyard |
Auto Prune Threads | vBulletin 3.0 Full Releases |