Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
Use prefixes for reported threads and moderation Details »»
Use prefixes for reported threads and moderation
Version: 1.00, by pipin pipin is offline
Developer Last Online: Jul 2022 Show Printable Version Email this Page

Category: Moderators Functions - Version: 3.7.2 Rating:
Released: 10-01-2008 Last Update: Never Installs: 6
Re-useable Code Code Changes  
No support by the author.

This one adds a prefix for all reported threads which are posted into a special forum.

You have to add a piece of code to the file "class_reportitem.php" which is located in the includes folder.

Code:
After line 242 or "$threadman->set('visible', 1);"

add this:
$threadman->set('prefixid', 'f135_0');
f135_0 is the prefixid for a certain prefix which can be set by yourself.


To show how this can be handy, i will provide a short how-to about using prefixes for moderation.


Moderation with prefixes:



1) Choosing a forum for reports

In the vbulletin settings you can choose a forum to which all reported threads are sent. For e.g. we call this "Reports".

2) Setting prefixes for this forum

a) Add a prefix category named "Reports" and tie it to the "Reports" forum


b) set different states for moderation

in this example we have New, Done, Discuss and Nothing




In this example the prefix ids where set according to the forum where the reports go. The id of the forum is 135 and therefore ids for the prefixes are 135_0, 135_1 ....


3) Change class_reportitem.php

The standard prefix for new reported threads is "New" so we use the id of this prefix in the file class_reportitem.php as shown above.




4) Use "Change prefixes with AJAX" hack

If you add the "Change prefixes with AJAX" hack you can edit the prefixes like this:


Show Your Support

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

Comments
  #2  
Old 10-06-2008, 07:17 AM
Silencer Groans's Avatar
Silencer Groans Silencer Groans is offline
 
Join Date: Dec 2007
Location: k.s.a
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
  #3  
Old 10-06-2008, 11:31 AM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great one, should be standard in vB 3.8.x or one of the other future official releases.
Reply With Quote
  #4  
Old 10-16-2008, 03:21 PM
ShackMaster ShackMaster is offline
 
Join Date: Apr 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem with this is that when you click on Report Post, there is no option to add a prefix at that time. After reporting a post you are redirected back to the thread you were viewing. In order to add the prefix you have to go to the reporting forum and do an advanced edit of the reported post... unless you have the Ajax hack (which I do not care for), but you still have to go to the reporting forum to add the prefix. That is aggravating and too many steps to make it worth while. Figure out a way to add the prefix when reporting the post and it may be worth using.

Uninstalled.
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 07:55 PM.


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.01758 seconds
  • Memory Usage 2,220KB
  • Queries Executed 17 (?)
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_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete