The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
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}}, |
#3
|
|||
|
|||
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 |
#4
|
||||
|
||||
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?
|
#5
|
|||
|
|||
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 |
#6
|
||||
|
||||
You've have to run a query to get the referral count and that would be a query for every page.
|
#7
|
|||
|
|||
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
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|