PDA

View Full Version : Help for show different forumdisplay templates


nando.dominios
12-18-2011, 11:37 AM
I put this for test a idea in forumdisplay but raw forumdisplay_mod not work(i have a forumdisplay_mod template created):



<vb:if condition="$bbuserinfo[userid] == 1">
{vb:raw FORUMDISPLAY_MOD}
<vb:else />
Original template code here.
</vb:if>




My idea is show alternative forumdisplay template in a especific forum id, the condition bbuserinfo=1 is only for test purposes which admin user.

kh99
12-18-2011, 12:26 PM
You can't put a template name directly in another template, you have to have php code to render it. What you could do is edit file forumdisplay near the end and put in code to change the template name, or you could write a plugin using hook forumdisplay_complete.

nando.dominios
12-18-2011, 12:41 PM
ok, thanks!

I make the changes in forumdisplay.php