0
Welcome Guest! Login
0 items Join Now

Hide left and right menu while viewing SMF

  • Hide left and right menu while viewing SMF

    Posted 18 years 10 months ago
    • How do I hide the menus on the left and right while viewing SMF.

      I posted at joomla hacks my problem
      www.joomlahacks.com/component/option,com...temid,94/topic,732.0


      Someone at joomlahacks said to use the following code:

      <tr class="canvas_main">
      <!-- MAIN -->
      <?php
      $_opt = "";
      if (isset($_REQUEST)) $_opt = $_REQUEST; ?>
      <!-- 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>


      I using that code did not work with my div tags.
      Is there something I can do that will work with my css code:

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

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

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



      Any ideas?
    • Stew Thompson's Avatar
    • Stew Thompson
    • Elite Rocketeer
    • Posts: 573
    • Thanks: 0
    • School Teacher

    Re: Hide left and right menu while viewing SMF

    Posted 18 years 10 months ago
    • If you are using a newer template, all you need to do is unpublish ALL modules (ie. menus) on your SMF page. What template are you using, by the way?
    • www.bentonhighschool.com/
  • Re: Hide left and right menu while viewing SMF

    Posted 18 years 10 months ago
    • I made a template using only css.

      There is a problem with what you suggested, I have a lot of sections that don't have menus.
      A lot of the content that I want ads on, I don't want on the forums.

      So is there a way to achieve this using php code like the guy from joomlahack suggested?

Time to create page: 0.081 seconds