Smarty with vBulletin?

From: Date: Thu, 21 Mar 2002 16:25:32 +0000
Subject: Smarty with vBulletin?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3206@lists.php.net to get a copy of this message
Hi, We currently run the vBulletin bulletin board software. As you may or may not know vBulletin uses the concept of 'templates' which are stored in the database. However, it lacks things like conditionals and caching. I was wondering how Smarty would integrate (if at all) with vBulletin to provide more performance (we're a large vB and always looking for ways to improve performance) vis-à-vis caching. From what I see, the documentation says that variables *can* be in templates but are not needed.. vB keeps all variables in templates, e.g. <html> <header> <title> You're at: $location </title> </header> </html> Would that work well with Smarty? Further, how does the caching/compiling mechanism work? On runtime different templates are loaded depending on if a user is currently logged in, is viewing a particular forum, etc. ex. index.php ( if( $logged_in == 1 ) load_template( "navigation_loggedin" ); else load_template( "navigation_loggedout" ); ) forumdisplay.php ( if( $forumid == 43 ) { load_template( "special_header" ); else load_template( "regular_header" ); ) Thanks, -- Matt

« previous php.smarty.general (#3206) next »