PDA

View Full Version : Templater Variables / Instructions


CypherSTL
01-09-2010, 09:06 AM
Alright.
I have a question in regards with passing variable information along to the templater.


vBulletin 4.0 Templater Rendering
$templater = vB_Template::create('awards_awardusers_bit');
$templater->register('awardusers', $awardusers);
$awarduserslist .= $templater->render();Displays a list of users that have that award separated by a comma.

I used this to get rid of the initial comma:

$awarduserslist = substr($awarduserslist , 2)How would I pass that string through the templater? I've tried a few different ideas I could thing of, but none of them worked.

Lynne
01-09-2010, 03:09 PM
I'm not sure I understand exactly. Did you try adding that line after you rendered the template? I can't think of why it shouldn't work the same as before.