vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   User to Admin PM Notification (https://vborg.vbsupport.ru/showthread.php?t=37140)

hypedave 04-07-2002 09:05 PM

User to Admin PM Notification
 
Looking for a hack that will notify admin ID 1 every time a user sends a pm

Neo 04-08-2002 02:00 AM

Wow.... what if you had like 300+ PMs sent a day?

hypedave 04-08-2002 02:07 AM

I can handle it :)

Logician 04-08-2002 06:44 AM

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

hypedave 04-08-2002 03:22 PM

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

hypedave 04-09-2002 11:08 PM

any luck

Logician 04-10-2002 08:52 AM

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

hypedave 04-10-2002 08:54 PM

as there a way I can add more words to this hack ???
like somewhere in the control panel define a set of words ?

Logician 04-11-2002 03:59 AM

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..

hypedave 04-11-2002 04:01 AM

do you think you could try, if not I understand, im not in no big fast hurry


All times are GMT. The time now is 04:16 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.01793 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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