vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Be notified when user posts? (https://vborg.vbsupport.ru/showthread.php?t=135118)

RedGTiVR6 12-30-2006 06:02 PM

Be notified when user posts?
 
Is there a way to be notified when certin users start a thread or post?

Our forum is dedicated to community first and foremost, but also dealers. When I've signed a dealer up I also get them to let me know their forum user name. Right now I just add them to my buddy list, but I have no way of knowing when they have posted.

These users will most likely be posting questions and I'd like to be sure and be there to provide support and let them know that I'm there to help them, not just get money from them.

Would this require setting up a group and putting those members in that group then somehow set it to notify someone when someone in that group posts?

Thanks in advance!

Andy 01-03-2007 04:52 AM

1 Attachment(s)
These two plugins should do the trick. Just edit line 4 with the members id's that you wish to be notified on.

RedGTiVR6 01-03-2007 12:04 PM

Thanks!

I'll be giving them a go today...hopefully!

-------------------------------------------------------------------------------------------------------------

ok - so since i'm not a whiz when it comes to php...I'm trying to figure out what this code does exactly...in other words, I'm trying to edit the code to fit my needs...


So I need to change 1 = Andy and 267 = Nan too....

The first one will be my user number, then I just list off the other users and their user numbers that I want to watch?

Then in the array(1,267) I just add in the numbers I want to follow?

Code:

// 1 = Andy
// 267 = Nan

if (in_array($vbulletin->userinfo['userid'], array(1, 267))){

// Construct the message text
$subject = "New post needing followup";

$postdate = 'Post Date: '. date('m-d-Y');
$posttime = 'Post Time: '. date('h:i A');
$message = 'Please review the following new post in this thread: ' . '

' . '[thread]' . $threadinfo['threadid'] . '[/thread]' . '

' . $postdate . '

' . $posttime;

// Init the PM datamanager
$pm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);
$pmperms['adminpermissions'] = 2;

// Fill in the blanks
$pm->set('fromuserid', '1'); // admin id number
$pm->set('fromusername', 'Andy'); // admin name
$pm->set('title', $subject);
$pm->set('message', $message);
$pm->set_recipients('Andy', $pmperms); // admin name
$pm->set('dateline', time());

// Send the PM
if (empty($pm->errors))
{
        // There are no errors, so send the PM
        $pm->save();
}
}


Andy 01-04-2007 05:45 AM

Quote:

Originally Posted by RedGTiVR6 (Post 1149820)

So I need to change 1 = Andy and 267 = Nan too....

The first one will be my user number, then I just list off the other users and their user numbers that I want to watch?

Then in the array(1,267) I just add in the numbers I want to follow?

You got it.n

Also there are a couple places further down in the code that need to be changed once, look for the //.

RedGTiVR6 01-04-2007 08:46 PM

thanks so much. Just one more question....how do I determine the user numbers? I've tried searching the forum and the manual but I can't seem to find any info on it. Does it require going into the DB and seeing what number correlates to each user I'm looking for?
-----------------------------------------------------------------------------------------------------------
got it!

now I must wait....no way to test this mod is there?
------------------------------------------------------------------------------------------------------------
welp, after a night, one of the users on my list made a post!

Unfortunately, the link wasn't directly to the post, but it sent me a link to the thread, which is deffinately a good thing!

Thanks so much for the mod, this should help me keep track of dealers and make sure that I'm responding to their questions.

Andy 01-08-2007 12:42 AM

Quote:

Originally Posted by RedGTiVR6 (Post 1150879)

Unfortunately, the link wasn't directly to the post, but it sent me a link to the thread, which is deffinately a good thing!

I was not able to make it go to the post because I think there is a limitation of vBulletin, the post isn't created yet at the time the code runs. So I just show the thread and time of the post which allows one to quickly find it.

Glad to be able to help.

Smoothie 01-08-2007 12:49 AM

Just subscribe to all the forums. Easy, done. :p

RedGTiVR6 01-23-2007 01:28 PM

right...on a forum with 50k members and 800,000+ hits a day just on the home page?

that wouldn't work.


All times are GMT. The time now is 03:05 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.01075 seconds
  • Memory Usage 1,732KB
  • 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)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete