View Full Version : Show Referrals in Phrases
Wolver2
02-09-2011, 05:01 PM
How can I show the referral amount inside the phrases?
In template it is {vb:raw referrals} but how about in phrases?
Is there a way to insert the referral amount in phrases?
Boofo
02-09-2011, 05:10 PM
You could use {1} in the phrases and call it in the template, like this:
phrasename: Referrals: {1}
Template: {vb:rawphrase phrasename, {vb:raw referrals}},
Wolver2
02-09-2011, 05:15 PM
Wow interesting, but I am kind of confused..
I create a new template and insert {vb:rawphrase phrasename, {vb:raw referrals}},
inside..
then i create a new phrasename?
I hope you could explain it a bit further.. sorry for the lack of knowledge
Boofo
02-09-2011, 05:35 PM
Yes, like I showed you. But you must also make sure that the referrals variable is registered for whatever template you want to use it in. Where are you trying to use this?
Wolver2
02-09-2011, 05:51 PM
Sounds still a bit confusing, I wanted to add it on the header(template) on top right after "MY Profile"
Im not sure if the variable is regsitered there aswell
Boofo
02-09-2011, 06:02 PM
You've have to run a query to get the referral count and that would be a query for every page.
Wolver2
02-09-2011, 06:07 PM
u really got me now :/ I hope if you wont have time to explain the steps... i hope someone else has a few mins time to explain how to do that
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.