The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Auto-solve report threads Details »» | |||||||||||||||||||||||||
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. https://vborg.vbsupport.ru/showpost....8&postcount=11 I get a no permission error https://vborg.vbsupport.ru/showpost....50&postcount=9 How do I get the moderator's name to show in the moved thread's title as well? https://vborg.vbsupport.ru/showpost....2&postcount=18 Show Your Support
|
Comments |
#2
|
|||
|
|||
SO, you mean, while we remove to "reported archive" then title will show "solved". right?
|
#3
|
|||
|
|||
I am saying that when the button that will appear is clicked, it moves the thread to the Reported Archive and puts '[solved]' in front of its title.
Simple as that. |
#4
|
|||
|
|||
amazing how something as simple as this will save you time thanks for sharing.
|
#5
|
|||
|
|||
You could also make it so if a thread is old, or spam, you could send it to your trash forums instantly:
<if condition="can_moderate()"> <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="[trash] $threadinfo[title]" /> <input type="hidden" name="destforumid" value="88" /> <input type="hidden" name="redirect" value="none" /> <input type="submit" value="Trash Thread"> </form> </if> |
#6
|
||||
|
||||
great work guys!
|
#7
|
|||
|
|||
I got the error: Invalid Action Specified
What do you think I have done wrong? I change the section 88 to my section 443 was there anything else I had to change? This is the url it is sending me to: forums/inlinemod.php?threadid=115069&p= Does that help? Question 1: Where is the best place to position it? in your opinion. under what code? Thanks. Edit: Solved. You must have this code down near the bottom of the showthread or it wont work for some reason. |
#8
|
|||
|
|||
Quote:
I have no idea where the best place to position it in the default vB templates is, as mine are wildly customized. I know for sure though that it shouldn't be inside an existing form. @TheInsaneManiac: Cool idea |
#9
|
|||
|
|||
[S]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?[/S] Edit: solved, some mods didnt have moderator permission in that forum. |
#10
|
|||
|
|||
I added the code and am not getting any errors which is good and I specified the forum {reports completed} as required but I'm not sure what exactly is suppose to happen now...
I created a test report and my report button isn't "appearing as clicked" or anything of the sorts so once the report comes in what do we do with it? Based on what I read above it sounds as though the report button should show as it has been clicked and then you click it again and it moves the report to your completed forum adding Solved to the title. Is that correct or am I misunderstanding? Thank you! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|