Back to vBulletin 3.7 Template Modifications

Auto-solve report threads
Mod Version: 1.00, by Lea Verou

This modification is in the archives.
vB Version: 3.7.3 Rating: (3 votes - 5.00 average) Installs: 22
Released: 20 Sep 2008 Last Update: Never Downloads: 2
Not Supported Template Edits Re-usable Code Translations  

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>
in that code, subsitute 88 to the actual forumid of your reported archive.

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']">
$spacer_close
</form>
$spacer_open
</if> 
Place the code below.

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:
  1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
I logged in on his name, went to the report, but then when i clicked on the report solved button, it gave me that message as well.

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
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 -->
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
any options to add the nick of the mod who solved it at the end after the thread title?
Sure, just change this:
HTML Code:
<input type="hidden" name="title" value="[solved] $threadinfo[title]" />
with this:
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

vblts.ru supports vBulletin®, 2022-2024