The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Admin receive PM when need moderate new post/thread
PLease make this hack:
Admin receive PM when need moderate new post/thread. |
#2
|
||||
|
||||
Not tested, but should work:
Edit Newthread.php, find: -- cut -- if ($visible==1) { $DB_site->query("UPDATE forum SET replycount=replycount+1,threadcount=threadcount+1, lastpost='".time()."',lastpost er='".addslashes($postusername)."' WHERE forumid IN ($foruminfo[parentlist])"); } -- cut -- BEFORE that add: -- cut -- if ($visible!=1) { $title1="Message Moderation: $title"; $message1="Moderation Required for message ".$title.":\n-----------\n\n".$message; $DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title ,message,dateline,showsignatur e,iconid,messageread,folderid) VALUES (NULL,1,1,1,'".addslashes(htmlspecialchars($title1 ))."','".addslashes($message1) ."',".time().",'$signature','$iconid',1,0)"); } -- cut -- Add the same line BEFORE that line in newreply.php -- cut -- $postid=$DB_site->insert_id(); indexpost($postid,0); if ($visible) { if ($threadinfo[replycount]%10==0) { $replies=$DB_site->query_first("SELECT COUNT(*)-1 AS replies FROM post WHERE threadid='$threadid'"); $DB_site->query("UPDATE thread SET lastpost='".time()."',replycount='$replies[replies]',lastposter='".addslashes($postusername)."' WHERE threadid='$threadid'"); } else { $DB_site->query("UPDATE thread SET lastpost='".time()."',replycount=replycount+1,last poster='".addslashes($postuser name)."' WHERE threadid='$threadid'"); -- cut -- This will sent a notification PM to Admin (Userid 1) whenever a moderation required for a new message. (But he will NOT get an email for this PM! Just the PM..) Enjoy.. Regards, |
#3
|
|||
|
|||
don't work.
blank page after post reply and create thread |
#4
|
||||
|
||||
I will check..
|
#5
|
||||
|
||||
edited the code.. Apply again..it's now working.. tested and approved!
|
#6
|
|||
|
|||
Work's fine! Thanks
Post this hack in Full Release |
#7
|
||||
|
||||
Quote:
I dont think other people would be interested with this hack, so I didnt plan to publish it. I replied it so as to help you, not to create a new hack to publish.. Anyway if someone else reading this thread finds it useful and thinks it should be published, holler! I can publish it provided that people think it is useful.. Regards, Logician |
#8
|
||||
|
||||
O_O i added it, lol, its very neat i will definatly use it
|
#9
|
||||
|
||||
I'll consider it ^_^
|
#10
|
|||
|
|||
Logician, please create addon. I need see thread name, forum name and link for moderate message in PM.
Please :tup: |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|