Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-30-2006, 06:02 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 01-03-2007, 04:52 AM
Andy Andy is offline
 
Join Date: Sep 2003
Location: San Francisco
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

These two plugins should do the trick. Just edit line 4 with the members id's that you wish to be notified on.
Attached Files
File Type: xml pm_on_new_thread.xml (1.2 KB, 9 views)
File Type: xml pm_on_new_post.xml (1.2 KB, 5 views)
Reply With Quote
  #3  
Old 01-03-2007, 12:04 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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();
}
}
Reply With Quote
  #4  
Old 01-04-2007, 05:45 AM
Andy Andy is offline
 
Join Date: Sep 2003
Location: San Francisco
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedGTiVR6 View Post

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 //.
Reply With Quote
  #5  
Old 01-04-2007, 08:46 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 01-08-2007, 12:42 AM
Andy Andy is offline
 
Join Date: Sep 2003
Location: San Francisco
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedGTiVR6 View 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!
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.
Reply With Quote
  #7  
Old 01-08-2007, 12:49 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just subscribe to all the forums. Easy, done.
Reply With Quote
  #8  
Old 01-23-2007, 01:28 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

that wouldn't work.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:54 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05748 seconds
  • Memory Usage 2,251KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (2)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete