vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Improved Moderator Alert System (https://vborg.vbsupport.ru/showthread.php?t=48603)

EchoHype.com 02-07-2003 05:34 PM

Alright, I set them to the new user I made just for it. Is that correct?

Because I noticed it posted with an entirely new unregistered user?

Overgrow 02-07-2003 07:25 PM

Did you re-download the zip and save out modalert.php again? Everyone should.

X-Fan 02-07-2003 09:26 PM

When I tested this out and sent an alert to the moderators for a post, it changed the lastposter in the thread to modalert. Is there any way to stop that from happening? I don't want to end up with dozens of threads all with lastposter modalert!

Erwin 02-07-2003 09:42 PM

Nice to see you're still in action, Overgrow. :)

I see you are a Hasselhoff fan... must be only when you're stoned... hehe

It's a great idea. :)

Erwin 02-07-2003 10:33 PM

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.

WebMasterAJ 02-07-2003 10:43 PM

Erwin,

Could you please share this? I've really been looking for something like that...

If not, I completely understand... :cool:

Thanks...

Erwin 02-07-2003 11:15 PM

To integrate this into your usual reporting methods, you do NOT have to make a new file or make new templates up, or add any extra queries to search the message - everything is in report.php already.

To achieve the same result, while being able to email mods (and if you have the PM mod hack, PM mods as well), just do this (no need to do anything else):

Open report.php.

Find:

PHP Code:

  $url str_replace("\""""$url); 

ABOVE this, ADD:

PHP Code:

$modforum="100"
    
$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','Post Alert - $postinfo[username]','$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='$bbuserinfo[username]' WHERE forumid='$modforum'"); 

Change:

$modforum="100";

To the forumid of your admin forum.

Done! :)

P.S. I hope Overgrow doesn't mind me posting this here - I could post this in a separate hack, but after all, it's his idea, and he should get the credit. :)

Brad 02-07-2003 11:22 PM

Very nice ~s~, i will be using this..when im not on overgrow that is LOL

ethics 02-09-2003 03:12 AM

Guys, anyway that this can have a small text box that the user (complainer) will be able to state their reasons for their report?

If not no biggie, great hack and thank you very much to not only you but all of the hackers and the members. :)

hukgwai 02-13-2003 05:24 PM

i created a new user and put it's userid in modalert.php.. but ends up me posting the alerts in the mod forum

any reason why this is happening? i changed the variable to someone else, still posts under me.

wierd.. please help


All times are GMT. The time now is 01:12 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.02672 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete