PDA

View Full Version : Center Block php


MagNaMan
04-19-2003, 05:33 AM
I want center block to be displayed based on this.

if ($bbuserinfo[usergroupid]=="4") {
*** show template IsMember
} else {
*** show template NotMember
}

Not I've created two templates called 'IsMember' and 'NotMember' each containing html

Question I have is how to I call the tempate from php script in center block?

DigitalDesktops
04-19-2003, 01:47 PM
try doing this:

if ($bbuserinfo[usergroupid]=="4") {
eval("dooutput(\"".gettemplate('IsMember')."\");");
} else {
eval("dooutput(\"".gettemplate('NotMember')."\");");
}

MagNaMan
04-19-2003, 03:16 PM
I guess I've got bigger problems, from reading past posts. VBportal which I'm using center block for hasn't implemented php very well. Refer to this thread -->

http://www.vbportal.com/forums/showthread.php?s=&threadid=8983&highlight=center+block+php