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 |
#32
|
|||
|
|||
You probably put the code inside the inlinemod form.
|
#33
|
|||
|
|||
Im getting blank page, when i press solve button.
http://www.kma.mv/forum/inlinemod.php?threadid=4025&p= Can somebody tell me how to fix it. it is really useful Best Regards kma.mv |
#34
|
|||
|
|||
fixed the problem and thanks for a great and useful mod
|
#35
|
||||
|
||||
any way to lock the thread too?
-philos |
#36
|
|||
|
|||
The only way I can think is to add another button.
I don't think its possible to do all at once with this approach. |
#37
|
|||
|
|||
Quote:
|
#38
|
|||
|
|||
Quote:
Personally even though I care a lot about my site's looks, I don't give a damn about how moderator-only functions look, I just stick them in the first place that makes sense |
#39
|
|||
|
|||
I have a feature request...
Would it be possible to make it so that after you click the "Solve Report" and it moves the report to the completed section that it can take you back to your original location (ie...reported posts) instead of leaving you in the completed forum? This hack is perfect for working several reports but if you login and see alot of reports you have the option to either work them one by one and then group move them (not use the hack) or use the "Solve Report" on each one which you then have to step your way back to the reports section again. Having it drop you back to original location would maintain the awesome features of the hack (moving it, solving it, and showing who solved it) and let you do it in a timely fashion with alot of reports |
#40
|
|||
|
|||
So is there anyway to do it inside a form? I just want a regular button like new post, ect.
|
#41
|
|||
|
|||
Quote:
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> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|