miniBB Support Forums | 15 years on The Web
miniBB ®


 | Forums | Register | Reply | Search | Statistics | Manual |
Re-cycled miniBB Support Forums / Re-cycled /   

Template variables

Author Grunff
#1 | Posted: 27 Feb 2004 00:08 
I'm trying to display some more info by the user's name, as outputted in main_posts_cell.html.

I've placed the output I want in a variable which is set in bb_func_vthread.php, but I can't figure out how the template parsing works!

I tries putting the variable in main_posts_cell.html like this {$myvar}, but it doesn't get parsed + outputted.

Any clues?

Many thanks.

Author Grunff
#2 | Posted: 27 Feb 2004 00:39 
D'oh - please ignore, I was being an idiot. That is exactly how you do it - it just helps if your variable actually contains something!

Author link92
#3 | Posted: 2 Jan 2005 21:51 
How is this done in version 2?

Author Team
#4 | Posted: 3 Jan 2005 10:27 
The same way as in all versions :-) Declare variable in your script and put it in a template like {$variable}

Author link92
#5 | Posted: 4 Jan 2005 00:32 
OK :)

Re-cycled miniBB Support Forums / Re-cycled /
 Template variables
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.