![]() |
Set Mixed Variables In Template
I need help to understand how template variables works.
I need a variable from table phrase in database. Name of the variable key is a mix between plaintext and variable. Cannot explain exactly what I mean, so I show an example: Code:
{vb:phrase 'pre_'.$var['key'].'_post'} Solved. That works: Code:
{vb:phrase prefix_$conversation['prefixid']_title_rich} |
I know it's solved and I was actually surprised your solution works. But I would do it this way using string concatenation:
Code:
{vb:set phraseVar, 'prefix_'} |
Quote:
Quote:
EDIT: Works! THX! |
All times are GMT. The time now is 01:12 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:
|