The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vb variable in phrase?
Hi guys,
I'm trying to use a variable ... for the thread title in a phrase ... Is this possible?? $threadinfo[title] - that's the var i'm trying to insert but it isn't outputting the thread title, it's outputting itself .... |
#2
|
|||
|
|||
Please provide the code you are using.
|
#3
|
|||
|
|||
Hi it's just the following in a phrase...
Code:
$threadinfo[title] from MySite.com Code:
Test - $vbphrase[$threadinfo[title]] Code:
Test - {$threadindo['title']} |
#4
|
||||
|
||||
This is done quite a bit in vb. If you look at how they do it, it's done something like this:
phrase = my_phrase: HTML Code:
The title is {1} HTML Code:
<phrase 1=" $threadinfo[title]">$vbphrase[my_phrase]</phrase> |
#5
|
|||
|
|||
Hi Lynne,
I think we're getting closer but still nothing unfortunately! I've created a new phrase and put this as the text Code:
<phrase 99xsa=" $threadinfo[title]">$vbphrase[doa_thread_title]</phrase> Code:
Varname - doa_thread_title Code:
Test - {99xsa} And that simply out puts Code:
Test - {99xsa} So close yet so far! |
#6
|
||||
|
||||
Reread my post. The phrase itself will have the {1} in it, not any variable. Then the other code is what you put in the template to call the phrase. Like I said, if you look at the templates, you will see this method used throughout.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|