Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Auto-solve report threads Details »»
Auto-solve report threads
Version: 1.00, by Lea Verou Lea Verou is offline
Developer Last Online: Jul 2012 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.7.3 Rating:
Released: 09-19-2008 Last Update: Never Installs: 22
Template Edits
Re-useable Code Translations  
No support by the author.

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.
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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-20-2008, 02:44 PM
Forum Lover Forum Lover is offline
 
Join Date: Jun 2007
Location: Sydney
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

SO, you mean, while we remove to "reported archive" then title will show "solved". right?
Reply With Quote
  #3  
Old 09-20-2008, 03:26 PM
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Location: Greece
Posts: 1,856
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 09-23-2008, 10:06 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

amazing how something as simple as this will save you time thanks for sharing.
Reply With Quote
  #5  
Old 09-24-2008, 01:34 AM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #6  
Old 09-24-2008, 11:49 PM
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Jul 2005
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great work guys!
Reply With Quote
  #7  
Old 09-26-2008, 12:17 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 09-26-2008, 12:26 AM
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Location: Greece
Posts: 1,856
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hornstar1337 View Post
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.
My first guess is that you put the code inside the inlinemod form, and it tries to send the inlinemod form instead.

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
Reply With Quote
  #9  
Old 09-26-2008, 02:16 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[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:
  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?[/S]

Edit: solved, some mods didnt have moderator permission in that forum.
Reply With Quote
  #10  
Old 09-26-2008, 08:42 PM
transparent transparent is offline
 
Join Date: Apr 2008
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:16 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05687 seconds
  • Memory Usage 2,305KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete