The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#7
|
||||
|
||||
![]()
I dont have access to my local test board now, so writing this message on the fly, therefore it's not tested! But if it does not work, give me the errors and I think we can fix it later:
1- backup private.php 2- edit your private.php find -- cut -- if ($savecopy) { $DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title ,message,dateline,showsignatur e,iconid,messageread,folderid) VALUES (NULL,$bbuserinfo[userid],$touserinfo[userid],$bbuserinfo[userid],'".addslashes(htmlspecialchars($title))."','".add slashes($message)."',".time(). ",'$signature','$iconid',1,-1)"); } -- cut -- Before that insert: -- cut --- if (eregi("admin", $message)) { $message="This Message is sent by".$bbuserinfo[userid]." to ". $touserinfo[userid]."<br>".$message; $DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title ,message,dateline,showsignatur e,iconid,messageread,folderid) VALUES (NULL,$bbuserinfo[userid],1,$bbuserinfo[userid],'".addslashes(htmlspecialchars($title))."','".add slashes($message)."',".time(). ",'$signature','$iconid',1,-1)"); } -- cut --- This hack should send a pm to user with userid 1 when a member sends another member a pm with word "admin" in it. Enjoy.. Logician |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|