PDA

View Full Version : Integrating VBulletin and Smarty


konstance
04-26-2005, 03:48 PM
I'm trying to integrate my current VBulletin forum with an X-Cart Store system, which uses Smarty templates.

Basically, what I'd like to do is take one of the Smarty templates and include it on the VBulletin page.

So far, I've been able to include the .tpl file itself, but it doesn't get parsed. (i have included the template in phpinclude_start and assigned it to a variable).

I have no idea how to do it so I just see the processed template and not the code.

Does anyone have ideas on how that could be done? I would greatly appreciate any pointers in the right direction.

Thanks

Reeve of shinra
04-26-2005, 04:53 PM
Might be easiest to open the tpl file and just dump it into a new template created in vbulletin. You would have to change out the variables since I think they use something a little different but hopefully it wouldn't be too bad.

konstance
04-26-2005, 05:10 PM
I was thinking about that alternative...

I guess the only problem that I see with this is that the PHP file that outputs variables to be used in Smarty Template does so with $smarty class. And I'm not sure if it would be possible to use those variables in vBulletin templates...

swrzzzz
07-09-2007, 05:54 PM
did you get this to work?

I have integrated a smarty page into VBA ok. Just add in the php page in VBA then in the smarty templates add eg...

{php}
global $stylevar;
echo "width=".$stylevar['outertablewidth'];
{/php}

where you need to see VB variables
and use the standard VB styles in smarty tpl files.

Steve