Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
Details »»

Version: , by tubedogg tubedogg is offline
Developer Last Online: Dec 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-28-2001 Last Update: Never Installs: 0
 
No support by the author.

This hack automatically sends a PM to a user when he or she is added to someone's buddy list. It works both when you add via the link in a profile, and when you add via the Edit Buddy List page in the User Control Panel. It does not send a message when a user is added to someone's ignore list, nor does it send a message when a user is removed from someone's buddy list. The message is configurable, and is sent "from" the board admin or a moderator. That is also configurable.

No demo or screenshot, since it happens behind the scenes and is never seen by anyone.

For version: v2 beta 3 (may work with beta 1 and beta 2, however it is untested with those versions).

Files needed: buddyadd.php, buddyupdate.php (see attached zip file).

Files to edit: member2.php, buddyadd.php, buddyupdate.php (see instructions below).

Instructions
1] Unzip the files buddyadd.php and buddyupdate.php to your hard drive.
2] Open member2.php in an ASCII text editor, such as Notepad (Windows), SimpleText (Mac), EditPlus, UltraEdit, TextPad, etc. (DO NOT use WYSIWYG HTML editors such as FrontPage, HotDog, DreamWeaver, etc. They will in all likelyhood screw up the file! I will not be able to support you if you edit the file in one of these programs.)
3] Find (around line 35)
Code:
$bbuserinfo[$var]=trim($bbuserinfo[$var]);
Right under this, add
Code:
include("buddyadd.php");
Find (around line 155)
Code:
$listids=trim($listids);
Right under this, add
Code:
include("buddyupdate.php");
4] Open buddyadd.php in an ASCII text editor (see direction #2 for more info on doing this).
5] On the second line, change the value of $fromuserid (it's set at 1 right now) to an admin or moderator's user id. That way, if someone replies to the PM, it goes to a moderator or an admin and not the user, who has no idea that a PM was sent when they added someone to their buddy list. Next, you can change the wording of the $message if you wish. Only edit it at the top (line 3), not in the middle. Keep in mind that unless your board allows HTML in messages, you cannot use HTML in your message. However, you *can* use vBCode. The default message gives a link for the recipient to send a PM to the user that added the recipient to their buddy list, and states that the message is automated and not to reply to it. Add "\n" (without the quotes) anywhere you want a new line to appear.
6] Repeat step #5, only in buddyupdate.php. I suggest you use the same wording in both, since both are sent upon addition to a buddy list.
7] Save member2.php, buddyadd.php, and buddyupdate.php, and upload them all to your main forums directory.

That's it!

Instructions are also included in the zip file (pmonadd.txt).

FEEDBACK WANTED! Likes/disklikes/modification requests all gladly accepted.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-29-2001, 06:11 AM
Guest
 
Posts: n/a
Default

Loving it man, LOVING IT!
  #3  
Old 03-29-2001, 06:18 AM
Guest
 
Posts: n/a
Default

Great! I'm glad you like it.
Took me a while to realize (my dumbass self) that when you go through the Edit Buddy List page it uses a different function than when you add someone from their profile (getinfo) page. Once I got past that hump, and realized I couldn't use the same code on both sections it was smooth sailing. (Oh yeah, and then there was the part where it was sending me 8 emails telling me I had private messages that I didn't cause I forgot to change the email variable. Am I getting stupider??? )

Seriously, I'm glad you're loving it.
  #4  
Old 04-03-2001, 06:22 PM
JohnM's Avatar
JohnM JohnM is offline
 
Join Date: Oct 2001
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should make your settings actual settings in vB, and the message a template...
  #5  
Old 04-03-2001, 06:59 PM
conan
Guest
 
Posts: n/a
Default

Nice hack man, great job as usual!
  #6  
Old 04-04-2001, 01:20 AM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JohnM
You should make your settings actual settings in vB, and the message a template...
Unfortunately I'm not quite that talented just yet. I'll look into doing a better version a bit down the road.
Closed Thread

Thread Tools

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:51 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.03803 seconds
  • Memory Usage 2,236KB
  • Queries Executed 19 (?)
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
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (3)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete