Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications

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
  #52  
Old 10-19-2008, 05:20 PM
n95gps n95gps is offline
 
Join Date: Aug 2008
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok thanx

anyhow thanx for sharing
Reply With Quote
  #53  
Old 10-24-2008, 01:28 AM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For anyone who wants to have the Assigned Moderators in the title of the report, here's the instructions:

Go to the phrase $vbphrase[reportpost_newthread]

Change the text to:
PHP Code:
$reportinfo[modlist] - Reported Post by $reportinfo[rusername
Reply With Quote
  #54  
Old 11-16-2008, 12:46 PM
momo2 momo2 is offline
 
Join Date: Feb 2007
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any plugs or hack to remove the post/thread as soon someone click on reports ?
I have a huge forum and I now seeing a big problem, which take more time to see the report and than delete the original thread than go back again and delete the report made.........

So what i am looking for, one click on report, that post or thread goes to a report section, from there delete or etc.....
Reply With Quote
  #55  
Old 01-13-2009, 02:41 PM
transparent transparent is offline
 
Join Date: Apr 2008
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works perfect in 3.8 gold.
Reply With Quote
  #56  
Old 02-20-2009, 06:04 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey Michelle, could you help me set up away for this to work on a different forum ID. eg. I am using this and love it! but would now like to auto solve threads in this other forum section and have them auto move to another forum. What would be the correct code to use to make that work?

Would this be correct?

Quote:
<!-- auto-solve report threads -->
<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 by $bbuserinfo[username]] $threadinfo[title]" />
<input type="hidden" name="destforumid" value="443" />
<input type="hidden" name="redirect" value="none" />
<input type="submit" value="Report Solved">
</form>
</if>
<!-- / auto-solve Multiple account threads -->

<!-- auto-solve report threads -->
<if condition="can_moderate() AND $forumid==375">
<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 by $bbuserinfo[username]] $threadinfo[title]" />
<input type="hidden" name="destforumid" value="500" />
<input type="hidden" name="redirect" value="none" />
<input type="submit" value="Report Solved">
</form>
</if>
<!-- / auto-solve Multiple account threads -->
Would this be correct?
Reply With Quote
  #57  
Old 03-02-2009, 01:56 PM
RobbieZ RobbieZ is offline
 
Join Date: Jul 2008
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks good thanks.
Reply With Quote
  #58  
Old 03-11-2009, 02:11 PM
koolasia koolasia is offline
 
Join Date: Apr 2007
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What a relief thanks al ot
Reply With Quote
  #59  
Old 07-10-2010, 06:26 AM
RobbieZ RobbieZ is offline
 
Join Date: Jul 2008
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi michelle I have this working on vb4 if I can release it please.
Reply With Quote
Reply

Thread Tools

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 06:54 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.07484 seconds
  • Memory Usage 2,290KB
  • 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_php
  • (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
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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