Hello,
I'd like to include a sidebar everywhere in my forums except the usercp.php and private.php areas. I tried to accomplish this using a combination of phpinclude_start and conditionals, but it isn't working correctly. The sidebar is included on all pages, but not excluding usercp.php and private.php.
The sidebar is a parsed php file outside my forums directory and is used throughout my site.
Here's what I have currently:
In phpinclude_start:
ob_start();
include('/home/path/to/my/forums/left_sidebar.php');
$left_sidebar = ob_get_contents();
ob_end_clean();
In the header template:
<if condition="THIS_SCRIPT!='private' or THIS_SCRIPT!='usercp'">$left_sidebar</if>
Do I have something wrong in the code? Can anyone offer a suggestion on how I can get this working?
Thanks in advance!
Rebecca
I'd like to include a sidebar everywhere in my forums except the usercp.php and private.php areas. I tried to accomplish this using a combination of phpinclude_start and conditionals, but it isn't working correctly. The sidebar is included on all pages, but not excluding usercp.php and private.php.
The sidebar is a parsed php file outside my forums directory and is used throughout my site.
Here's what I have currently:
In phpinclude_start:
ob_start();
include('/home/path/to/my/forums/left_sidebar.php');
$left_sidebar = ob_get_contents();
ob_end_clean();
<if condition="THIS_SCRIPT!='private' or THIS_SCRIPT!='usercp'">$left_sidebar</if>
Do I have something wrong in the code? Can anyone offer a suggestion on how I can get this working?
Thanks in advance!
Rebecca
Comment