Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Improved Moderator Alert System Details »»
Improved Moderator Alert System
Version: 1.00, by Overgrow Overgrow is offline
Developer Last Online: Jun 2004 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-05-2003 Last Update: Never Installs: 40
 
No support by the author.

IMPROVED MODERATOR ALERT v.1.1

Goal: Improve the way staff handles junk posts. Speed up processing time of moderator alerts from users. Make the forum meta-moddable.

Usefuleness: The default moderator alerts are useless. Why rely on email to a few people when you have a perfectly good forum system? This hack will have you create a thread in your private Moderators forum. Then as users click "Moderator Alert" under any post, the system will add a new post to your thread in the private room-- allowing all staff to see and discuss the problem immediately instead of relying on the old style email functions.


Requirements:

-Existing private moderator/admin forum
-Annoying users that violate your TOS
-Useful users that will report them


Installation:

-Create and upload one file to your forum directory
-Make one addition in functions.php
-Upload one gif
-Make one addition to the postbit template
-Add two templates


Difficulty: Somewhat Easy

Speed: Not too bad

Release: 1.1-- Feb 07, 2003

Added option to put all alerts in one post or in mutiple threads

Fixed bugs and tested both versions


Michael Knight:

Show Your Support

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

Comments
  #62  
Old 04-15-2003, 08:28 PM
Figment Figment is offline
 
Join Date: Nov 2001
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone help on this please?
Reply With Quote
  #63  
Old 04-19-2003, 12:38 AM
heynurse heynurse is offline
 
Join Date: Jan 2002
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
04-11-03 at 06:02 AM yzztik said this in Post #53
With Erwins suggestion, the post that gets made, does it include the post they are reporting and their reason too? Also, does it only do the new thread thing, or can it post to an existing thread?
Nice Hack! Just installed.

I agree the feature that I would like to see would be to let the reporting users give comments as to why they think the post is bad. Has anyone added this option?
Reply With Quote
  #64  
Old 04-19-2003, 01:36 AM
heynurse heynurse is offline
 
Join Date: Jan 2002
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
02-07-03 at 06:33 PM Erwin said this in Post #35
I've integrated your hack into my forum now -

when a user reports a post, the report is sent via EMAIL, PM, and a new THREAD is opened in my admin forum at the same time. It's just editing the report.php file.
Erwin,

I tried using both of your codes so that the mods get an e-mail with the reported post, but neither of them are sending e-mails?

Is there a setting that will send it to all the supermods, mods and admins?

Any ideas? Thanks
Reply With Quote
  #65  
Old 04-20-2003, 01:26 PM
yzztik's Avatar
yzztik yzztik is offline
 
Join Date: Feb 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, I am thinking of using the original of this that simply posts the thread in the mod forum, but is there any way at all to allow the user to give a reason for reporting it? This feature is installed at another board I mod and some of the reported posts without a reason make no sense.
Reply With Quote
  #66  
Old 04-22-2003, 02:24 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
04-11-03 at 11:10 PM Erwin said this in Post #57
Try this code:

Find:

PHP Code:
  $url str_replace("\""""$url); 
Above, add:

PHP Code:
$modforum="xx";
    
$DB_site->query("INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,postusername,postuserid,lastposter,dateline,iconid,visible,attach) VALUES (NULL,'".addslashes(htmlspecialchars($subject))."','".time()."','$modforum','1','0','".addslashes($bbuserinfo[username])."','$bbuserinfo[userid]','".addslashes($bbuserinfo[username])."','".time()."','$iconid','1','0')");
    
$threadid=$DB_site->insert_id();
    
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($subject))."','$bbuserinfo[username]','$bbuserinfo[userid]','".time()."','".addslashes(parseurl($message))."','$allowsmilie','$signature','$ipaddress','$iconid','1')");
    
$DB_site->query("UPDATE forum SET replycount=replycount+1,lastpost='".time()."',lastposter='".addslashes($bbuserinfo[username])."' WHERE forumid='$modforum'"); 
Replace xx with your mod forum.

This is the code I am using.

If you have the LAST TITLE ON FORUM HOME hack, use this code instead (which updates the forum title too).

PHP Code:
$modforum="xx";
    
$DB_site->query("INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,postusername,postuserid,lastposter,dateline,iconid,visible,attach) VALUES (NULL,'".addslashes(htmlspecialchars($subject))."','".time()."','$modforum','1','0','".addslashes($bbuserinfo[username])."','$bbuserinfo[userid]','".addslashes($bbuserinfo[username])."','".time()."','$iconid','1','0')");
    
$threadid=$DB_site->insert_id();
    
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($subject))."','$bbuserinfo[username]','$bbuserinfo[userid]','".time()."','".addslashes(parseurl($message))."','$allowsmilie','$signature','$ipaddress','$iconid','1')");
    
$DB_site->query("UPDATE forum SET replycount=replycount+1,lastpost='".time()."',lastposter='".addslashes($bbuserinfo[username])."',lasttitle='".addslashes(htmlspecialchars($subject))."' WHERE forumid='$modforum'"); 
Again, replace xx with your mod forum.

somehow, the code has a bunch of extra "))"

couldnt get this to work in report.php.
if I remove those extra ), it give me

mysql error number: 1062
mysql error: Duplicate entry '68995' for key 1

where '68995' should be the new postid (which doesnt exist yet)
Reply With Quote
  #67  
Old 05-06-2003, 04:01 PM
SemperFidelis SemperFidelis is offline
 
Join Date: May 2002
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cheers for the code Erwin
Works flawlessly on a severly hacked up vb 2.3.0
Reply With Quote
  #68  
Old 05-26-2003, 12:04 PM
Shepski Shepski is offline
 
Join Date: Jul 2002
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to make this send an email to ALL moderators? The new thread gets posted in my moderators room but it would be very handy if the email gets sent to everyone as opposed to just the moderators of the forum that the post has been reported from.
Reply With Quote
  #69  
Old 06-25-2003, 04:26 AM
cnczone cnczone is offline
 
Join Date: Mar 2003
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I add a box for the user to place a reason for the alert?
Reply With Quote
  #70  
Old 06-26-2003, 03:06 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It has obviously been requested before, but I would like to see the following:

A spot for a user to state the reason for the Report.

I can easily add the textarea required to the modalert template. How do I make it so the contents of the comment field are posted to the ALERT thread.
Reply With Quote
  #71  
Old 06-30-2003, 07:43 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello? Anybody home?
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:22 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.04651 seconds
  • Memory Usage 2,344KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_php
  • (3)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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