![]() |
Auto-solve report threads
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']"> 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 |
SO, you mean, while we remove to "reported archive" then title will show "solved". right?
|
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. |
amazing how something as simple as this will save you time :) thanks for sharing.
|
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> |
great work guys!
|
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. |
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 ;) |
[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. |
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! |
Find:
PHP Code:
|
Quote:
You understood what the hack does, but you didn't understand how it does it. :) |
Quote:
|
Quote:
This hack doesn't do anything that couldn't be done before, it just speeds up a process, which can be useful if your mods have to do this process often (my mods were soooo glad about it :p) |
Now that this process is automatic, it makes sense for me to start this process.
|
I seem to have a small problem. I want to add this code in next to my large reply button at the top of the post. Only it says I have not chosen a post. I even added an image for it:
<!-- report --> <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="225" /> <input type="hidden" name="redirect" value="none" /> <input type="image" value="Solve report" src="$stylevar[imgdir_button]/solve.gif" width="105" height="21" border="0" alt="Solve report" name="image"> </form> </if> <!-- /report --> |
any options to add the nick of the mod who solved it at the end after the thread title?
|
Quote:
Quote:
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]" /> |
Quote:
Quote:
Quote:
|
Quote:
|
Thanks for the quick reply :)
Implemented and working 100% Thanks a bunch! |
Quote:
|
Done ;) Javascript blocker stopped it before :)
|
when i push the button i get this message about wanting to merge post any ideas
vBulletin Tip #42: Not much would be accomplished by merging this item with itself. Got it sorted thanks Ok after I sorted the problem had no mod tools could not even delete a post with mod tools at bottom of thread the thread would not highlight either when adding a tick in box |
You did not place it in the right spot. Please read my previous post.
Does anyone have an idea how to get post report titles(before they are solved) to include the name of the forum, the report is about? |
Quote:
Quote:
|
What version of vbulletin are you using?
|
v3.72 I have a friend who has v3.7.3 and he has the same code as mine in showthread template
this is friends template v3.7.3 Quote:
|
Quote:
Quote:
Quote:
|
ok when you want to delete a post you need to add a tick then the post normally highlight this never happened and when i went to use the mod tools at the bottom of thread they did not work took the code out and everything worked fine so not sure what it is
the main thread tools at top worked fine This is a great mod when I had it working before this other happened hope this can be sorted |
You probably put the code inside the inlinemod form.
|
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 |
fixed the problem and thanks for a great and useful mod
|
any way to lock the thread too?
-philos |
Quote:
I don't think its possible to do all at once with this approach. |
Quote:
|
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 :p |
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 :) |
Quote:
|
Quote:
Code:
<if condition="can_moderate() AND $forumid==$vboptions['rpforumid']"> |
All times are GMT. The time now is 05:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|