PDA

View Full Version : Default referrer?


chrisisonfire
11-27-2005, 09:02 PM
Hi, I was looking at another script about referrers, and I wondered whether it was possible to have a default referrer if a different user hasn't been noted as the true referrer.

So, on the registration page, if the 'Referred by:' box has not been completed, a script defines a specified member as the referrer, ie. the owner/Super Admin.

I like the idea, I just don't know what to do!

Marco van Herwaarden
11-28-2005, 06:13 AM
Well that sounds a bit like cheating to me. ;) :D

chrisisonfire
11-28-2005, 11:28 PM
Well, technically. ;) ...But it's my board and I'll cheat if err... someone will help me. :D

007
11-29-2005, 12:49 AM
You could add something like <if condition="!$userinfo[referrername]">1<else />(whatever is the default value set for the referrer name field)</if>

I don't know the exact variable names though. Something like that should work.