Hello,
My forum members are keep asking about referral link they dont want the ID number.
They want a referral link so people can easily join under their name.
Please help
Just activate the Referrer System of the board.
Go to ACP -> Configuration > Login & Register
In a users profile the link is given - just copy and paste to a potential new user.
The referral URL looks like (where X is the userid):
http... ./forum/member.php?action=register&referrer=X
[ExiTuS]
I know! but members wants a link so when other people press on this link it fills the referral box automaticly!
Now i see your intention
The following link code can be added anywhere in the "member_profile" template.
<a href="https://.../member.php?action=register&referrer={$uid}">REGISTER + REFERRER</a>
Mind: The variable $uid is available all over the member profile templates for sure.
If you want to put this link to a very different location of the forum, then you might need to replace the variable (find an appropriate alternate available in that template).
I personally beleive the profile is the best place for such a referrer link.
[ExiTuS]
I think OP does want that link with a username but not a uid in it.
(2019-08-28, 12:26 PM)Password1234 Wrote: [ -> ]I know! but members wants a link so when other people press on this link it fills the referral box automaticly!
Oh, just get your idea. The code does handles the referrer, via browser Cookies.
If a guest has enabled its browser's Cookies on your site, that value should be automatically filled. If it's now working, probably it's your theme/template's fault.
What theme/template are you using on your forum?
noyle Wrote:[...] The code does handles the referrer, via browser Cookies. [...]
Cool, thanks for this info. In a rush I was not sure whether PHP session or Cookie.
[ExiTuS]
(2019-08-28, 11:59 AM)[ExiTuS] Wrote: [ -> ]Just activate the Referrer System of the board.
Go to ACP -> Configuration > Login & Register
In a users profile the link is given - just copy and paste to a potential new user.
The referral URL looks like (where X is the userid):
http... ./forum/member.php?action=register&referrer=X
[ExiTuS]
(2019-08-28, 01:58 PM)[ExiTuS] Wrote: [ -> ]Now i see your intention
The following link code can be added anywhere in the "member_profile" template.
<a href="https://.../member.php?action=register&referrer={$uid}">REGISTER + REFERRER</a>
Mind: The variable $uid is available all over the member profile templates for sure.
If you want to put this link to a very different location of the forum, then you might need to replace the variable (find an appropriate alternate available in that template).
I personally beleive the profile is the best place for such a referrer link.
[ExiTuS]
I tried this but it didnt work i have no idea why