Home arrow Forum Hide Menus in SMF
  Welcome, Guest. Please login or register.
Did you miss your activation email?
January 08, 2009, 03:16:58 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 1.0.x (Moderators: -Wolverine, kai920)
| | | |-+  Hide Menus in SMF
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Hide Menus in SMF  (Read 2638 times)
Guillermo
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


View Profile
Hide Menus in SMF
« on: October 12, 2005, 07:45:12 PM »

Hi,

I'd like to hide both right and left menus on my wrapped SMF forum.

Everything is working great, thanks for the excellent component!
Logged
Editor (cowboy)
Administrator
Joomla Guru
*****

Karma: +86/-23
Offline Offline

Posts: 1144



View Profile WWW
Re: Hide Menus in SMF
« Reply #1 on: October 13, 2005, 11:42:49 AM »

Edit your Joomla template index.php.
Here's a snippet on how I did it here... "com_smf" is the forum page.

Code:
    <tr class="canvas_main">
      <!-- MAIN -->
      <?php
  
$_opt "";
   if (isset($_REQUEST['option'])) $_opt $_REQUEST['option']; ?>

      <!-- MENU -->
      <?php if ( mosCountModules("left") && $_opt != "com_smf") { ?>
      <td width="190" valign="top"><img src="<?php echo $mosConfig_live_site;?>/templates/mambohacks3/images/blank.gif" alt="" width="180" height="1" />        <?php mosLoadModules ('left', -3); ?></td>
      <?php ?>
    </tr>

What this does is, it only shows the right menu if the page is NOT "com_smf".
« Last Edit: October 13, 2005, 11:47:44 AM by Editor (cowboy) » Logged
joni6
QA / Testers
Joomla Newbie
*****

Karma: +0/-0
Offline Offline

Posts: 23


View Profile
Re: Hide Menus in SMF
« Reply #2 on: October 13, 2005, 07:47:38 PM »

thanks for this code. I will try this too.
Logged
Jeremy
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 24



View Profile
Re: Hide Menus in SMF
« Reply #3 on: July 03, 2006, 04:04:16 PM »

I tried using this code and it just shows a blank page.
I think it has to do with me using css instead of tables.

Here is my code for my left menu

<?php if (mosCountModules('left')) { ?>
<div id="sidebar">
<div class="inside">

<?php mosLoadModules('left',-2);?>

</div></div>
<?php } ?>
</div>

How would I hide the left menu for the forums?
Logged
Jeremy
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 24



View Profile
Re: Hide Menus in SMF
« Reply #4 on: July 05, 2006, 08:01:04 PM »

Any ideas??
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
Search Contact About Advertise Blogs Topsites Submit News Register Login