|
Title: Wide View / Full View ... how did you do that admin? Post by: PeterOne on March 19, 2005, 06:51:21 PM Hi admin,
I like the "Wide View | Full View | Menu View" options you did in this forum? How did you do that? tia. Pete Title: Re: Wide View / Full View ... how did you do that admin? Post by: cowboy on March 21, 2005, 04:08:53 AM I added a field in SMF component which is "expv". The coding really depends on your template.
expv=0 - show menu expv=1 - wide view (hidden menu) expv=2 - full view So in your mambo template index.php, hide your left or right position if "$_REQUEST['expv']!=0". To make the full view, use a variable to make table width 100% if "$_REQUEST['expv']=2". Let me know if you still got some questions. Title: Re: Wide View / Full View ... how did you do that admin? Post by: Chris Gunter on August 05, 2005, 09:41:20 AM Hi there,
First time on. I have a fixed width mambo site and I need to hide the left side when the forum is up like you have on this site. Is this the method to accomplish this? If so, I don't fully understand where the 'expv' come into play. Could you give a newbie a little more description? Thank you Title: Re: Wide View / Full View ... how did you do that admin? Post by: cowboy on August 05, 2005, 11:10:35 AM $expv will not come into play.
You do something like this with your mambo template. Code: <?php $_opt = (isset($_REQUEST['option']) ? $_REQUEST['option'] : "") ?> <?php if ( mosCountModules("left") && $_opt != "com_smf") { ?> <td width="190" valign="top"> <?php mosLoadModules ('left'); ?> </td> <?php } ?> Title: Re: Wide View / Full View ... how did you do that admin? Post by: Chris Gunter on August 05, 2005, 04:45:53 PM I get this error
Parse error: parse error, unexpected ';' in /home/egan/Websites/Nas/templates/nas_online/index.php on line 87 I replaced <?php mosLoadModules ( 'left' ); ?> with your code. Title: Re: Wide View / Full View ... how did you do that admin? Post by: cowboy on August 05, 2005, 04:49:12 PM check it again, there's a missing closing parenthesis in my sample.
Title: Re: Wide View / Full View ... how did you do that admin? Post by: Chris Gunter on August 05, 2005, 07:32:00 PM Ok, I modified the double quotes to singles quotes and moved the inner and outer div tags down into the code. Now what happens is that the left blocks do indeed go away whixh is good. However, the space occupied by them is still there and it doesn't allow the forum to take up the whole width. Not sure what to do at this point.
Thanks for any help. :) Title: Re: Wide View / Full View ... how did you do that admin? Post by: cowboy on August 05, 2005, 07:38:23 PM Well you need to know CSS and HTML at this point now. Unless you want to post your code here and maybe someone might have a chance to take a look at it. I want to help you, but it's Friday. My friends will kill me for sticking my face in front of the computer again. ;D
Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved. |