Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Bulletproof referral awards at registration Details »»
Bulletproof referral awards at registration
Version: 1.00, by MacMorag MacMorag is offline
Developer Last Online: Dec 2008 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-16-2005 Last Update: 11-04-2005 Installs: 41
Template Edits
 
No support by the author.

The way vb is set up, means that it is possible for a registering user to clear the "referred by" field when they are completing the registration form - thus robbing the referring member of a referral point.

The following mod is to the "register" template, and tests whether the registering member has followed a referral link, and if they have, it doesn't show the "referred by" field at all, but hides it, so that the referring member definitely gets the referral award.

In register template, look for:

<if condition="$show['referrer']">

before this add:

<if condition="$referrername">
<input type="hidden" name="referrername" value="$referrername" />
<else />


Now look for:

<tr>
<td>
$vbphrase[referrer]:<br />
<input type="text" class="bginput" name="referrername" value="$referrername" size="50" maxlength="250" />
</td>
</tr>
</table>
</fieldset>
</if>


After this, add:

</if>

And that's it. All very simple.

Show Your Support

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

Comments
  #12  
Old 11-15-2005, 04:31 AM
2fast4ya 2fast4ya is offline
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

but doesnt this mean people who weren't sent in by link wont be able to type in a refferal iname?
Reply With Quote
  #13  
Old 11-15-2005, 04:34 AM
Moparx Moparx is offline
 
Join Date: Jul 2004
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 2fast4ya
but doesnt this mean people who weren't sent in by link wont be able to type in a refferal iname?
they wont need too.. the referral id is already added. its just in a hidden input field
if they are given the link without an attached referring id then they will have the option of stating who referred them.
Reply With Quote
  #14  
Old 11-15-2005, 07:34 AM
MacMorag MacMorag is offline
 
Join Date: Dec 2001
Location: Ayr, Scotland
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just to clarify:

There are two ways a new member can arrive. The referral field will be visible or hidden, depending on how the visitor arrives -

1. Visitor has heard about the site via word-of-mouth, and arrives without an attached referrerid. The field is VISIBLE. If visitor wishes to credit his oral informer then this is possible.

2. Visitor arrives at the site via a referral link sent to him/her by an existing member (with attached referrid). The field is INVISIBLE. The original referring member will be credited with the referral - even if the visitor would like to give the referrer credit to someone else, or simply give credit to no-one.

Reply With Quote
  #15  
Old 11-30-2005, 08:39 PM
bonjurkes bonjurkes is offline
 
Join Date: Nov 2005
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanx / installed
Reply With Quote
  #16  
Old 01-16-2006, 04:28 PM
Totti's Avatar
Totti Totti is offline
 
Join Date: Jul 2005
Location: Germany
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks a lot
Reply With Quote
  #17  
Old 02-12-2006, 02:00 PM
msm25 msm25 is offline
 
Join Date: Feb 2006
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

Is this to be done at register.php that is on the root?

I don't see this "<if condition="$show['referrer']">

Thank you,
Reply With Quote
  #18  
Old 02-18-2006, 04:33 PM
o0Hubba0o's Avatar
o0Hubba0o o0Hubba0o is offline
 
Join Date: Mar 2005
Location: Minnesota
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by msm25
Hello,

Is this to be done at register.php that is on the root?

I don't see this "<if condition="$show['referrer']">

Thank you,
Nope, this is a template edit, look in the Referrer template section for the "register" template.
Reply With Quote
  #19  
Old 02-19-2006, 03:30 AM
mrahul mrahul is offline
 
Join Date: Nov 2005
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screenshot please ?
Reply With Quote
  #20  
Old 02-19-2006, 05:10 AM
TruthElixirX's Avatar
TruthElixirX TruthElixirX is offline
 
Join Date: Sep 2004
Location: Oklahoma
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Take registration form... minus "refferer" field.
Reply With Quote
  #21  
Old 03-13-2006, 01:07 PM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you

Install
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 03: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.08202 seconds
  • Memory Usage 2,298KB
  • 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
  • (2)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