Home arrow Forum Wide View / Full View ... how did you do that admin?
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 01, 2008, 04:52:00 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  General Discussion
| |-+  Techies Zone (Moderator: johnny)
| | |-+  Wide View / Full View ... how did you do that admin?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Wide View / Full View ... how did you do that admin?  (Read 4761 times)
PeterOne
Joomla Newbie
*

Karma: +1/-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
Editor (cowboy)
Administrator
Joomla Guru
*****

Karma: +86/-23
Offline Offline

Posts: 1144



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
Joomla 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
Editor (cowboy)
Administrator
Joomla Guru
*****

Karma: +86/-23
Offline Offline

Posts: 1144



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
Joomla 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
Editor (cowboy)
Administrator
Joomla Guru
*****

Karma: +86/-23
Offline Offline

Posts: 1144



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
Joomla 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
Editor (cowboy)
Administrator
Joomla Guru
*****

Karma: +86/-23
Offline Offline

Posts: 1144



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 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
MamboBuzz.com
Search Contact About Advertise Blogs Topsites Submit News Register Login