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

Reply
 
Thread Tools
Refer Friends! Details »»
Refer Friends!
Version: 1.00, by Unknown553 Unknown553 is offline
Developer Last Online: Aug 2007 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-26-2002 Last Update: Never Installs: 66
 
No support by the author.

First off, I need to thank c-pr0mpt's template driven pages hack for helping me with the online bit and template help.

Second, I must add a disclaimer. I am NOT fluent in PHP and this is my first publicly released hack. This may not be perfectly coded or the most efficient, but I have tested this numerous times on fresh vB's as well as hacked vB's and installation went smoothly every time, so I hope it works for you. I tried my best to make this hack as compatible as possible but I am sure I could have messed up somewhere. This is mostly an addon but optional integration is also supplied in the hack. If installation gets messed up it's not hard to revert, but it never hurts to backup your database first.

Now onto the details of the hack. This hack creates a new page for members that will send out emails to people of their choice with their referral links in them. It's a great way to get your members to promote your site. You could also start a referral contest and grant special prizes, like a custom title or avatar, to whomever gets the most referrals. You do not have to have referrals on, but it would help if you wanted to keep track of who has referred the most members.

Features:

1) Only registered members can use the referral page, guests will get an error page.
2) An error will also occur if a required field is left blank
3) Users can refer 3 friends at a time
4) Users can edit the title and message of their outgoing referral email
5) The user's referral link is in the email message by default (index.php?s=&referrerid=xxx)
6) Default title and message can be edited in the refer.php page
7) "Referring Friends" link appears in the who's online page when a member is referring people

Only 1 file edit (optional)
Only 1 template edit (optional)
3 new templates
1 new PHP file

4 screenshots in my next posts.

Support will be given, but as I said before, I am not fluent in PHP or MySQL, so I can't guarantee that I can make every addon or fix every error.

UPDATE: If you get a bug that sends you straight to the error page, install version 2.0. If the hack is already working for you, do not install version 2.0. This is just a bug fix, a patch, and is only needed if you can't get the original hack to work properly.

Enjoy.

-Marcus

Show Your Support

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

Comments
  #22  
Old 07-01-2002, 04:28 AM
Mr H Mr H is offline
 
Join Date: Jun 2002
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great! Last question, I swear.

Where do I go to see who referred who?
Reply With Quote
  #23  
Old 07-01-2002, 05:23 AM
Ryan McBain's Avatar
Ryan McBain Ryan McBain is offline
 
Join Date: Feb 2002
Location: Earth
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by bpuetz
Ryan,

Have you looked at this: vButtonPro

Makes buttons a piece of cake, as long as you have PhotoShop 7.

Bill
i dont have photoshop 7 lol
Reply With Quote
  #24  
Old 07-01-2002, 07:51 PM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Ryan McBain
the hack looks awesome, i want to install it but I would need some button icons for the refer link. can anyone help me?

http://www.ryanmcbain.com/forums
I'm not much of a button maker myself, so I can't help you. I'd ask whoever made your other buttons to make you another custom one, or just put a text link in the footer.
Reply With Quote
  #25  
Old 07-01-2002, 07:56 PM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Mr H
Works great! Last question, I swear.

Where do I go to see who referred who?
This requires more hacking. It's very small though. I have it added on my forum as well.

http://www.vbulletin.com/forum/showt...325#post152325

In a members profile it will say something like

Referrals: 2 (username1, username2)

Or you can use FireFly's "Full List of Referrers and Referrals" hack
Reply With Quote
  #26  
Old 07-03-2002, 07:07 PM
Pilot Pilot is offline
 
Join Date: Oct 2001
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

VBstats hack shows top referrers etc
Reply With Quote
  #27  
Old 07-04-2002, 05:53 PM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't believe it shows an entire list though. I don't use it so I'm not familiar with it.
Reply With Quote
  #28  
Old 07-05-2002, 03:18 PM
Mr H Mr H is offline
 
Join Date: Jun 2002
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I added the Firefly referreal hack. It works

Is there anywhere to go to find a "top referrers" link or do I have to click on everyones profile to see who was the top referrer?
Reply With Quote
  #29  
Old 07-05-2002, 07:40 PM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The last link I posted does exactly that. FireFly's Top Referrers list. See one in action here (slightly modified):

http://moacsupreme.com/forum/reflist.php
Reply With Quote
  #30  
Old 07-26-2002, 01:51 PM
thenetbox thenetbox is offline
 
Join Date: Mar 2002
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

VERY nice its running on my site

http://www.darkforum.com/darkforum
Reply With Quote
  #31  
Old 07-28-2002, 03:21 PM
X-Fan's Avatar
X-Fan X-Fan is offline
 
Join Date: Jan 2002
Location: Adelaide, Australia
Posts: 496
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having the same problem - clicking the Refer Friends link brings up the error page straight away, even though I'm logged in.

I tried removing the sessionhash bit from the link, but the error page still came up.

Any ideas?
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:22 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.05324 seconds
  • Memory Usage 2,299KB
  • 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
  • (3)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
  • (4)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