The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
User to Admin PM Notification
Looking for a hack that will notify admin ID 1 every time a user sends a pm
|
#2
|
||||
|
||||
Wow.... what if you had like 300+ PMs sent a day?
|
#3
|
||||
|
||||
I can handle it
|
#4
|
||||
|
||||
What kind of notification is that?
You want to receive a CC pm (which will full your message box) or an email that X pm'ed Y? Do you want the content of the PM or just a notification about its presence? What's the aim? Reading user's pms? I can help you more if you answer these questions.. But a quick reminder: If your aim is to read your user's pms, there are easy ways: * You can install "Admin can read user's pms" hack and read them individually * You can install Webtemplates Hack and then apply this webquery to have a web page which only you can login and read last XX pms in your database. See here: https://vborg.vbsupport.ru/showthrea...threadid=36578 |
#5
|
||||
|
||||
the kind of notification this is a notification that a user has sent a pm to another user.
I would jus like the notification about PM's that are being sent well the aim, I can already rad user's pm's, but I forgot to mention that if possible I would like to be filtered by words, for an example, if it is configured to scan for words like " admin " and user A sends and pm to user B saying our admin sucks, then some how I can be notified that user a sent a pm to user b containing the word admin |
#6
|
||||
|
||||
any luck
|
#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 |
#8
|
||||
|
||||
as there a way I can add more words to this hack ???
like somewhere in the control panel define a set of words ? |
#9
|
||||
|
||||
Adding a feature to define set of words inside CP requires a lot of coding and hacking. It's possible but there is no simple or easy way..
|
#10
|
||||
|
||||
do you think you could try, if not I understand, im not in no big fast hurry
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|