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
  #2  
Old 06-27-2002, 08:01 PM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Main referral page.
Reply With Quote
  #3  
Old 06-27-2002, 08:01 PM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Successfully sent
Reply With Quote
  #4  
Old 06-27-2002, 08:02 PM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Error
Reply With Quote
  #5  
Old 06-27-2002, 08:02 PM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the online page...
Reply With Quote
  #6  
Old 06-27-2002, 08:03 PM
zachb's Avatar
zachb zachb is offline
 
Join Date: Nov 2001
Location: Indianapolis
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice, adding right now.

*clicks install button*
Reply With Quote
  #7  
Old 06-27-2002, 08:37 PM
pseudocode pseudocode is offline
 
Join Date: May 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe I'm missing something. But, when I click on Refer Friends, I go directly to the error page. What could be wrong?
Reply With Quote
  #8  
Old 06-27-2002, 08:50 PM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check the link and make sure it is pointing to "refer.php?s=$session[sessionhash]"

Also make sure you're logged in. I tried linking directly to &action=compose and it took me directly to the error page too. When I took it out, it worked. If it still doesn't work try removing ?s=$session[sessionhash] too.
Reply With Quote
  #9  
Old 06-27-2002, 08:56 PM
snyx's Avatar
snyx snyx is offline
 
Join Date: Oct 2001
Location: Vancouver (whistler.2010)
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

interesting
Reply With Quote
  #10  
Old 06-27-2002, 09:07 PM
afterlab's Avatar
afterlab afterlab is offline
 
Join Date: Oct 2001
Location: Dallas, TX
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good job, i'll install it after a good 'ol game of B-Ball i'm in. Be back in 3 hours!
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 06:14 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.07113 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
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)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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