First let me say "I hate Microsoft Internet Explorer!"
It sucks and you can find out why
here. My biggest issue with designing or porting themes for CPG is that several pages (usermgr.php and groupmgr.php for example) are too wide to fit within a small fixed width theme of less than 600px. Because IE is not a fully CSS compliant browser, you have to add "hacks" to get it to not display scrollbars on other pages which in turn can make a mess with other complaint browsers. I'm tired of spending hours of testing themes only to find IE burps over a simple compliant scrollbar issue. OK... I'm done ranting here (almost) so on to hopefuly a simple solution.
Not being a particularly strong PHP programmer (OK, actually very weak) I could use some help with this one. What I'd like to do is create a custom token so that for certain pages it will use a CSS class that will display the scrollbars and when not on these pages use a class that won't. I could easiy do this if the user is logged in, I searched and found lots of examples for the use of "if (!USER_ID) { ..." but then the scrollbars in IE would always show in all the pages while logged in. What I'm hoping to accomplish here is to limit a certain style to certain pages. While I can give instructions with every theme on how to edit these pages since they are not in the theme directory, I'm hopeful that I can do all of this from the theme.php so that users won't have to do this.
Is something like this possible and if so, some help in coding this would be most helpful to my future theme work and my sanity.
<?php
if (page = usermgr.php || groupmgr.php) { /* this is the part that I need help with */
<div class="content_scrollbar">
{GALLERY}
</div>
else
<div class="content">
{GALLERY}
</div>
EOT;
}
?>
Thanks,
Gizmo