![]() |
Show Referrals in Phrases
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? |
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}}, |
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 |
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?
|
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 |
You've have to run a query to get the referral count and that would be a query for every page.
|
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
|
All times are GMT. The time now is 11:42 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|