vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Referrals at registration hack request (https://vborg.vbsupport.ru/showthread.php?t=98587)

MacMorag 10-17-2005 07:35 AM

Referrals at registration hack request
 
Currently on vb, when a user registers via a referral link, the "registered by" field is prepopulated with the referring members name. This is great - except that if the registering member clears this box, the referring member is not credited with a referral.

I suggest a two-tier referral system:

The "referred by" field is left as is. This way word-of-mouth referrals can still be rewarded. But to reward email referrals, regardless of whether the registering user clears the box or not, an additional hidden field is added to the registration form. This field adds one referral point to the referring member.

This will mean that email referrals are potentially rewarded with two points, and word-of-mouth referrals get one point.

(Or can a form field be constructed so that the initial value, if set, cannot be cleared? Basic HTML question - off to Google ;) )

Edit:

All this requires is a simple conditional in the registration form which tests for $referrename. I'll create a thread in 3.5 template hacks and explain more.

Andreas 10-17-2005 11:31 AM

Don't know what others do, but I never follow links with referral IDs, I always remove them manually.


All times are GMT. The time now is 07:05 AM.

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.01024 seconds
  • Memory Usage 1,707KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete