Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by JohnM JohnM is offline
Developer Last Online: Apr 2005 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-26-2001 Last Update: Never Installs: 17
 
No support by the author.

This hack allows you to select the method of delivery for the report to moderator message.

Rename the attached script to JohnMinstall.php and run it. It will make the necessary database modification and give you further instructions. Delete the script when you're done.

I hope this helps some people

Show Your Support

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

Comments
  #12  
Old 05-29-2001, 04:29 PM
JohnM's Avatar
JohnM JohnM is offline
 
Join Date: Oct 2001
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First of all, it's against the license to post files. Please remove it.

for your question, your tags were a bit messed up

your while() loop part should be:

Code:
  while ($moderator=$DB_site->fetch_array($moderators)) {
    if ($reporttomoderator == 1 || $reporttomoderator == 3) {
	      eval("\$message = \"".gettemplate("email_reportbadpost",1,0)."\";");
	      eval("\$subject = \"".gettemplate("emailsubject_reportbadpost",1,0)."\";");
	      mail ($moderator[email],$subject,$message,"From: \"$bbtitle Mailer\" <$webmasteremail>");
	    }
	    if ($reporttomoderator == 2 || $reporttomoderator == 3) {
	      eval("\$message = \"".gettemplate("pm_reportbadpost",1,0)."\";");
	      eval("\$subject = \"".gettemplate("pmsubject_reportbadpost",1,0)."\";");
	      $DB_site->query("INSERT INTO privatemessage  (privatemessageid,userid,touserid,fromuserid,title,message,dateline,showsignature,iconid,messageread,folderid) VALUES (NULL,$moderator[userid],$moderator[userid],$bbuserinfo[userid],'$subject','$message',".time().",0,0,0,0)");
	    }
  }
Reply With Quote
  #13  
Old 05-29-2001, 04:32 PM
JohnM's Avatar
JohnM JohnM is offline
 
Join Date: Oct 2001
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by DEMOLiTiON
ok I got this working now
but the reports are only send to one moderator.. is there a way to send it to all moderators and admins?
thnx
it should send it to all of them... I don't see why it wouldn't... PM me your while loop part of report.php
Reply With Quote
  #14  
Old 05-29-2001, 10:16 PM
Psycho
Guest
 
Posts: n/a
Default

I wasnt thinking on the file, but I appreciate your help. It works great now. Thank you very much
Reply With Quote
  #15  
Old 05-31-2001, 09:10 PM
Psycho
Guest
 
Posts: n/a
Default

I know your probably getting sick of me. Ive put that code into my file which seemed to have fixed it. However, when I look at the private message it give me this

("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title
,message,dateline,showsignature,iconid,messageread
,folderid) VALUES (NULL,1,1,1,',',".time().",0,0,0,0)");
Reply With Quote
  #16  
Old 06-01-2001, 05:17 AM
DEMOLiTiON
Guest
 
Posts: n/a
Default

JohnM, I emailed you my report.php, please look at it
Reply With Quote
  #17  
Old 06-01-2001, 10:51 PM
JohnM's Avatar
JohnM JohnM is offline
 
Join Date: Oct 2001
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"Look at the private message"?

Demolition: it shouldn't be doing that. are you sure you have more than one moderator?
Reply With Quote
  #18  
Old 06-02-2001, 03:13 AM
kdog316
Guest
 
Posts: n/a
Default

i keep getting parase error and here is what my code looks like

oh and the parase is on line 68 which is ?>





PHP Code:
 while ($moderator=$DB_site->fetch_array($moderators)) { 
    if (
$reporttomoderator == || $reporttomoderator == 3) { 
      eval(
"\ = \"".gettemplate("email_reportbadpost",1,0)."\";"); 
      eval(
"\ = \"".gettemplate("emailsubject_reportbadpost",1,0)."\";"); 
      
mail ($moderator[email],$subject,$message,"From: \"$bbtitle Mailer\" <$webmasteremail>"); 
    } 
    if (
$reporttomoderator == || $reporttomoderator == 3) { 
      eval(
"\ = \"".gettemplate("pm_reportbadpost",1,0)."\";"); 
      eval(
"\ = \"".gettemplate("pmsubject_reportbadpost",1,0)."\";"); 
      
$DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title,message,dateline,showsignature,iconid,messageread,folderid) VALUES (NULL,$moderator[userid],$moderator[userid],$bbuserinfo[userid],'$subject','$message',".time().",0,0,0,0)"); 
    }

  
$url str_replace("\""""$url);
  eval(
"standardredirect(\"".gettemplate("redirect_reportthanks")."\",\"$url\");");
}
? > 
with out the space after the question mark
Reply With Quote
  #19  
Old 06-02-2001, 04:14 AM
jojo85
Guest
 
Posts: n/a
Default

Good idea,nice hack,
CONGRATS
Reply With Quote
  #20  
Old 06-28-2001, 01:15 AM
daydreamer
Guest
 
Posts: n/a
Default

"go into your control panel and select an option"

You lost me there... select an option where?

dd
Reply With Quote
  #21  
Old 06-28-2001, 01:51 AM
daydreamer
Guest
 
Posts: n/a
Default

Duh, found it.
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 08:21 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04820 seconds
  • Memory Usage 2,303KB
  • Queries Executed 27 (?)
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)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
  • (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
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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