Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Automatically Add a New User to Their Referrer's Buddy List Details »»
Automatically Add a New User to Their Referrer's Buddy List
Version: 1.00, by amykhar amykhar is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 03-20-2005 Last Update: 03-20-2005 Installs: 9
 
No support by the author.

This one was done by request. It's a simple, easy to install hack that will take you less than 5 minutes to install. No screenshots because there's nothing to shoot.

If a new person registers at your board and lists an existing member as a referrer, this will automatically add the new user to the referrer's buddy list. And, the honor will be automatically reciprocated.

This is a great hack for beginners to try because it involves only one file edit and no templates, phrases, or database changes.

Enjoy

Show Your Support

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

Comments
  #12  
Old 03-22-2005, 06:21 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem is that it needs to be two options. The existing members need to be able to decide if they want the newbies to be on their buddy list and the new members need to decide if they want the existing member added to theirs. All easy enough to code, but I have enough trouble getting new registrants to read the registration screen without adding a new option.
Reply With Quote
  #13  
Old 03-23-2005, 12:09 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

couldn't you just have the user option in the existing buddies page? "add your new referrals to your buddy list"? and that be enough? alternatively you can do that and then send the new members a pm with a link to add the existing member to their buddylist?

[high]* sabret00the is just tossing around ideas [/high]
Reply With Quote
  #14  
Old 03-23-2005, 12:51 AM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabret00the
couldn't you just have the user option in the existing buddies page? "add your new referrals to your buddy list"? and that be enough? alternatively you can do that and then send the new members a pm with a link to add the existing member to their buddylist?

[high]* sabret00the is just tossing around ideas [/high]
I was thinking a very simple idea.
you add me as a referral.
You add me as a buddy. I get a pm saying you added me.
If I want to add you click here kind of thing and that is the end of it.
Reply With Quote
  #15  
Old 03-23-2005, 02:10 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by T3MEDIA
I was thinking a very simple idea.
you add me as a referral.
You add me as a buddy. I get a pm saying you added me.
If I want to add you click here kind of thing and that is the end of it.
Quote:
Straight forward no interface needed. Can some one put that together for me?
In other words if I get a referral they become my buddy and I become theirs.

instantly when the new guy joins up.
of course it should work with the referer link as well.

PLEASE guys its small if you can that would be nice.
Your original request said automatically and with no interface. So, that's what you've got. Feel free to tweak it to meet your specific needs if those needs have changed.
Reply With Quote
  #16  
Old 03-26-2005, 10:51 AM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by amykhar
Your original request said automatically and with no interface. So, that's what you've got. Feel free to tweak it to meet your specific needs if those needs have changed.
why would you put a response like that?
What would that do.
I did ask for the hack and you responded and I am gratefull. Never said I wasnt.

I asked the second question simply becuase (should I retype all of it or use quotes?) A girl found from using the hack a ton of people was instantly (well in a day) added to her friends where she didnt want that to be the case.

SOOOOO from testing you could say I realized ok... you do need to inform a user. That isnt a interface. I dont see how you see that to be a interface.

AND I was only having a conversation. For me to tweak response I mean... I am asking here because I do not know how to tweak as you put it.

Look I am thankfull you did it really.
Thanks.
Reply With Quote
  #17  
Old 03-26-2005, 12:31 PM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To make adding referrer as an option at registration page.
Open register template,
FIND:
Code:
<input type="text" class="bginput" name="referrername" value="$referrername" size="50" maxlength="250" />
BELOW, ADD:
Code:
<br><input type="checkbox" name="addreferrer" value=""> Add $referrername to your buddylist?
Then from amykhar's hack,
REPLACE:
Code:
if($referrer)
		{
					// Put it in the database.
				   	$DB_site->query("
				   	UPDATE " . TABLE_PREFIX . "usertextfield
				   	SET buddylist = '" . addslashes($testreferrerid[userid]) . "'
				   	WHERE userid = $userid
						");
		}
WITH:
Code:
if ($referrer AND $_POST['addreferrer'])
		{
					// Put it in the database.
				   	$DB_site->query("
				   	UPDATE " . TABLE_PREFIX . "usertextfield
				   	SET buddylist = '" . addslashes($testreferrerid[userid]) . "'
				   	WHERE userid = $userid
						");
		}
Did not tested
Reply With Quote
  #18  
Old 03-29-2005, 11:28 AM
Benj's Avatar
Benj Benj is offline
 
Join Date: May 2006
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if i refered someone using my referal form (
https://vborg.vbsupport.ru/showthread.php?t=59708) would they also be added to my buddy list ?? and would i be added to theres ??
Reply With Quote
  #19  
Old 03-29-2005, 11:30 AM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by benj
if i refered someone using my referal form (
https://vborg.vbsupport.ru/showthread.php?t=59708) would they also be added to my buddy list ?? and would i be added to theres ??
yes they would.
Reply With Quote
  #20  
Old 04-08-2005, 12:05 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tnguy3n
To make adding referrer as an option at registration page.
Thanks but I dont think anyone would do that. Keeping in mind they are new.

Is there a hack (because I did not see it) that simply PM's a user (regardless if they have ignore pms on or not) that x user would like to add them as a friend? if they say yes the both are added if they say no JUST the x person gets them on the buddy list.

thats all and the hack would be flawless.

Anyone with out getting upset or offended could huck that up?
Reply With Quote
  #21  
Old 04-08-2005, 12:45 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

>>>amykhar
How about this?
How would I go about having it done only one way then?
If I am adding a referrer it goes to my buddy list and thats that?
(Half of what this hack does) Thanks again.
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 12:06 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.04540 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
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
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete