![]() |
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 .... |
Please provide the code you are using.
|
Hi it's just the following in a phrase...
Code:
$threadinfo[title] from MySite.com Code:
Test - $vbphrase[$threadinfo[title]] Code:
Test - {$threadindo['title']} |
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> |
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! |
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.
|
All times are GMT. The time now is 11:48 PM. |
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:
|