Re: [SMARTY] personalization using smarty

From: Date: Wed, 14 Aug 2002 12:01:33 +0000
Subject: Re: [SMARTY] personalization using smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5697@lists.php.net to get a copy of this message
> Date: Wed, 14 Aug 2002 11:28:13 +0200 > From: Michał Krowiarz <michal@probasket.pl> > To: smarty-general@lists.php.net > Subject: [SMARTY] personalization using smarty > > Hello everyone, > > I'm new to Smarty and have a great problem, at least for me. i need to > make fully customizable website (user can choose which module he wants > to have in which column and so on). i've made modules and i keep them > in database (as HTML code), and when the user visits the main site, i > get them out of the DB and put them to the page code. but here's the > problem: > if the module is static (so it remains the same all the time, no > dynamic changes made), everything works just fine, but when there's > something that needs to be parsed by Smarty, it's not. for example, > module called 'Poll Display': > /---poll display code---/ > <table> > <tr><td height=6></td></tr> > <tr><td > background=http://localhost/img/belka_right.gif class=leftMenuHeader > height=16>Sonda</td></tr> > <tr><td> > {php} > require './sympoll/booth.php'; > display_booth(4); > {/php} > </td></tr> > </table> > /---end poll display code---/ > > and that's what i get in IE: > {php} > require './sympoll/booth.php'; > display_booth(4); > {/php} > > instead of the poll > > can anyone help me with that? I guess that depends on the way you pull the snippets from the backend. Can you post a short, selfcontained script? -- FreeBSD 4.6-STABLE 2:00PM up 5 days, 1:55, 17 users, load averages: 0.00, 0.03, 0.03

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