Home arrow Forum
Wide View / Full View ... how did you do that admin?
  Welcome, Guest. Please login or register.
September 06, 2008, 03:47:07 PM
Home New Posts Search Calendar


Login with username, password and session length
Forum  |  Techies Zone  |  How-To's  |  Topic: Wide View / Full View ... how did you do that admin? « previous next »
Pages: [1] Go Down Print
Author Topic: Wide View / Full View ... how did you do that admin?  (Read 13172 times)
PeterOne
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2



View Profile
Wide View / Full View ... how did you do that admin?
« 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
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: Wide View / Full View ... how did you do that admin?
« Reply #1 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.
Logged
Chris Gunter
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 3


View Profile
Re: Wide View / Full View ... how did you do that admin?
« Reply #2 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
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: Wide View / Full View ... how did you do that admin?
« Reply #3 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 ?>
« Last Edit: August 05, 2005, 04:48:41 PM by cowboy » Logged
Chris Gunter
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 3


View Profile
Re: Wide View / Full View ... how did you do that admin?
« Reply #4 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.
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: Wide View / Full View ... how did you do that admin?
« Reply #5 on: August 05, 2005, 04:49:12 PM »

check it again, there's a missing closing parenthesis in my sample.
Logged
Chris Gunter
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 3


View Profile
Re: Wide View / Full View ... how did you do that admin?
« Reply #6 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.  Smiley
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: Wide View / Full View ... how did you do that admin?
« Reply #7 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.  Grin
Logged
Pages: [1] Go Up Print 
Forum  |  Techies Zone  |  How-To's  |  Topic: Wide View / Full View ... how did you do that admin? « previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by MamboHacks.com. Powered by Mambo. All rights reserved.
TERMS OF USE