0
Welcome Guest! Login
0 items Join Now

How to get rid of the displayed articles on front page..

    • ryan gass's Avatar

    How to get rid of the displayed articles on front page..

    Posted 17 years 7 months ago
    • I'm looking to make the displayed articles area on my home page disappear altogether. If you don't know what I'm talking about, goto bearsboards.com , and it's the big orange box under "popular" and "latest news" with article about a logo contest..

      I want to get rid of this altogether because the RT scroller already does a pretty nice job of displaying any new stories, and to have this article area underneath is just very redundant.. I've seen joomla sites before that didn't have article areas.

      Does anyone know how to disable it?
  • Re: How to get rid of the displayed articles on front page..

    Posted 17 years 7 months ago
    • If you are in Joomla 1.0.XX, try this...
      <?php if ($option!="com_frontpage") : ?>
      <?php mosMainbody(); ?>
      <?php endif; ?>

      This will show the articles an every page except the home page...
    • --
      Heather M. Claus
      www.nookienotes.com/index.php <--- in development
    • ryan gass's Avatar

    Re: How to get rid of the displayed articles on front page..

    Posted 17 years 7 months ago
    • Heather Claus wrote:
      If you are in Joomla 1.0.XX, try this...
      <?php if ($option!="com_frontpage") : ?>
      <?php mosMainbody(); ?>
      <?php endif; ?>



      This will show the articles an every page except the home page...



      Hey thanks...

      Where do I put that code though?
  • Re: How to get rid of the displayed articles on front page..

    Posted 17 years 7 months ago
    • That is based on the template's index.php file.
    • James Spencer / Developer & Support / Hull, UK
    • ryan gass's Avatar

    Re: How to get rid of the displayed articles on front page..

    Posted 17 years 7 months ago
    • Ok,.. but more specifically,.. where on the index.php file... here is a complete copy and paste of my index.php file..
      <?php
      defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
      $iso = split( '=', _ISO );
      ?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <?php
      if ( $my->id ) {
           initEditor();
      }
      mosShowHead();
       
      // *************************************************
      // Change this variable blow to switch color-schemes
      //
      // If you have any issues, check out the forum at
      // http://www.rockettheme.com
      //
      // *************************************************
       
      $background_style = "orange";              // orange
      $primary_style = "gator";                   // gator
      $body_style = "gator";                      // gator
      $menu_name = "mainmenu";                    // mainmenu by default, can be any Joomla menu name
      $show_pathway = "false";                    // true | false
      $enable_livesearch = "true";          // true | false
       
      // config override
      $override_config = $mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/rt_config.php";
      if(file_exists($override_config)) require($override_config);
       
      // *************************************************
       
      require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/rt_splitmenu.php");
       
      // menu initialization code
      $forcehilite = false;
      $topnav = rtShowHorizMenu($menu_name);
      $subnav = rtSubMenu($menu_name, 1);
      $sidenav = rtSubMenu($menu_name, 2);
       
      $livesearch =&nbsp; $mosConfig_absolute_path . "/templates/" . $mainframe->getTemplate() . "/livesearch/livesearch_ui.php";
       
      //Are we in edit mode
      if (&nbsp; !empty( $_REQUEST['task'])&nbsp; && $_REQUEST['task'] == 'edit'&nbsp; ) {
           $editmode = true;
      }
       
      // *************************************************
      ?>
      <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
      <link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css.css" rel="stylesheet" type="text/css" />
      <link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/body_<?php echo $body_style; ?>.css" rel="stylesheet" type="text/css" />
      <link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/primary_<?php echo $primary_style; ?>.css" rel="stylesheet" type="text/css" />
      <!--[if lte IE 7]>
      <link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_ie7.css" rel="stylesheet" type="text/css" />
      <![endif]-->
      <!--[if lte IE 6]>
      <link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_ie.css" rel="stylesheet" type="text/css" />
      <![endif]-->
      <link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/slimbox/slimbox.css" rel="stylesheet" type="text/css" media="screen" />
      <link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/favicon.ico" />
      <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/livesearch.js"></script>
      <?php if (!$editmode) : ?>
      <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/mootools.release.83.js"></script>
      <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/slimbox.js"></script>
      <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/rt_sameheight.js"></script>
      <?php endif; ?>
      </head>
      <body id="page_bg" class="b-<?php echo $background_style; ?> p-<?php echo $primary_style; ?> bd-<?php echo $body_style; ?>">
           <div class="wrapper">
                
                <div class="mainbg">
                     <div id="header">
                          <a href="<?php echo $mosConfig_live_site;?>" class="nounder"><img src="<?php echo $mosConfig_live_site;?>/images/blank.png" border="0" alt="" id="logo" /></a>
                          <div id="scroller">
                               <?php mosLoadModules('newsflash', -1); ?>
                          </div>
                          <div id="header_spotlight">
                               <div id="topbox">
                                    <?php mosLoadModules('banner', -2); ?>
                               </div>
                               <div id="searchbox">
                                    <?php if ($enable_livesearch == "true") : ?>
                                         <?php include($livesearch) ?>
                                    <?php else: ?>
                                         <?php mosLoadModules('user8', -1); ?>
                                    <?php endif;&nbsp; ?>
                               </div>
                          </div>
                     </div>
                     
                     <div id="safari">
                          <div id="nav">
                               <?php echo $topnav; ?>
                          </div>
                          <div id="menu_horiz" >
                               <?php echo $subnav; ?>
                               <div class="clr"></div>
                          </div>
                     </div>
                     
                     <table class="mainbg" cellspacing="0" cellpadding="0">
                          <tr valign="top">
                               <td class="main">
                                    <?php if (!$editmode and mosCountModules('inset')) : ?>
                                    <div class="hilight">
                                         <?php mosLoadModules('inset', -2); ?>
                                                   </div>
                                    <?php endif; ?>
                                    <?php if (!$editmode and (mosCountModules('user1') or mosCountModules('user2'))) : ?>
                                    <div class="block normal">
                                         <table class="userblock" cellspacing="0" cellpadding="0">
                                              <tr valign="top">
                                                   <?php if (mosCountModules('user1')) : ?>
                                                   <td class="user">
                                                        <?php mosLoadModules('user1', -2); ?>
                                                   </td>
                                                   <?php endif; ?>
                                                   <?php if (mosCountModules('user1') and mosCountModules('user2')) : ?>
                                                   <td class="spacer">&nbsp;</td>
                                                   <?php endif; ?>
                                                   <?php if (mosCountModules('user2')) : ?>
                                                   <td class="user">
                                                        <?php mosLoadModules('user2', -2); ?>
                                                   </td>
                                                   <?php endif; ?>
                                              </tr>
                                         </table>
                                    </div>
                                    <?php endif; ?>
                                    <div class="mainbody">
                                         <?php if ($show_pathway == "true") : ?>
                                         <?php mosPathway(); ?>
                                         <?php endif; ?>
                                         <?php mosMainbody(); ?>
                                    </div>
                                    <?php if (!$editmode and (mosCountModules('user3') or mosCountModules('user4'))) : ?>
                                    <div class="surround">
                                         <div class="block bottom">
                                              <table class="userblock" cellspacing="0" cellpadding="0">
                                                   <tr valign="top">
                                                        <?php if (mosCountModules('user3')) : ?>
                                                        <td class="user">
                                                             <?php mosLoadModules('user3', -2); ?>
                                                        </td>
                                                        <?php endif; ?>
                                                        <?php if (mosCountModules('user3') and mosCountModules('user4')) : ?>
                                                        <td class="spacer">&nbsp;</td>
                                                        <?php endif; ?>
                                                        <?php if (mosCountModules('user4')) : ?>
                                                        <td class="user">
                                                             <?php mosLoadModules('user4', -2); ?>
                                                        </td>
                                                        <?php endif; ?>
                                                   </tr>
                                              </table>
                                         </div>
                                    </div>
                                    <?php endif; ?>
                               </td>
                               <?php if (!$editmode and mosCountModules('user5')) : ?>
                               <td class="middle">
                                    <div class="block light">
                                    <?php mosLoadModules('user5', -2); ?>
                                    </div>
                               </td>
                               <?php endif; ?>
                               <?php if (!$editmode and ($sidenav != '' or mosCountModules('user6') or mosCountModules('user7'))) : ?>
                               <td class="side">
                                    <?php if ($sidenav != '' or mosCountModules('user6')) : ?>
                                    <div class="block accent">
                                         <div class="extra_pad">
                                              <?php echo $sidenav; ?>
                                              <?php mosLoadModules('user6', -2); ?>
                                         </div>
                                    </div>
                                    <?php endif; ?>
                                    <?php if (mosCountModules('user7')) : ?>
                                    <div class="block">
                                         <?php mosLoadModules('user7', -2); ?>
                                    </div>
                                    <?php endif; ?>
                               </td>
                               <?php endif; ?>
                          </tr>
                     </table>
                     <div id="footer">
                          <a href="http://www.rockettheme.com/" title="RocketTheme Joomla Template Club"><img src="<?php echo $mosConfig_live_site;?>/images/blank.png" border="0" alt="RocketTheme Joomla Templates" id="rocket" /></a>
                          <a href="http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=<?php echo $mosConfig_live_site;?>"><img src="<?php echo $mosConfig_live_site;?>/images/blank.png" class="css_button" alt="CSS Valid" /></a>
                          <a href="http://validator.w3.org/check?uri=<?php echo $mosConfig_live_site;?>"><img src="<?php echo $mosConfig_live_site;?>/images/blank.png" class="xhtml_button" alt="XHTML Valid" /></a> 
                          <?php mosLoadModules('footer',-1); ?>
                     </div>                                
                </div>
           </div>
       
       
      <?php mosLoadModules( 'debug', -1 );?>
      </body>
      </html>

      Could someone perhaps just make the necessary change and post the "new" index.php file?..

      Thanks.
    • Joe K's Avatar
    • Joe K
    • Elite Rocketeer
    • Posts: 902
    • Thanks: 0

    Re: How to get rid of the displayed articles on front page..

    Posted 17 years 7 months ago
    • Make a back up of your original (although you can always get it on this page lol) and try this file.
  • Re: How to get rid of the displayed articles on front page..

    Posted 17 years 7 months ago
    • It is
      <?php mosMainbody(); ?>
    • James Spencer / Developer & Support / Hull, UK
    • ryan gass's Avatar

    Re: How to get rid of the displayed articles on front page..

    Posted 17 years 7 months ago
    • It worked!... Thanks so much guys..

      The only issue with it is that it left sort of an odd orange "bar" where the articles used to be.. But oddly enough it sort of looks alright.. I think I can just live with it... The only thing that would make it better is if i could put an image in there, so I could give it some "accent". Anyone know if that's doable? If not no biggy..


      I appreciate all of your help guys. This forum has been a tremendous resource for me..
  • Re: How to get rid of the displayed articles on front page..

    Posted 17 years 7 months ago
    • Try this to get rid of that bar.
      <?php if ($option!="com_frontpage") : ?>
                                    <div class="mainbody">
                                         <?php if ($show_pathway == "true") : ?>
                                         <?php mosPathway(); ?>
                                         <?php endif; ?>
                                         <?php mosMainbody(); ?>
                                    </div>
      <?php endif; ?>
    • --
      Heather M. Claus
      www.nookienotes.com/index.php <--- in development
    • Alme's Avatar
    • Alme
    • Jr. Rocketeer
    • Posts: 39
    • Thanks: 0

    Re: How to get rid of the displayed articles on front page..

    Posted 17 years 3 months ago
    • I'm sorry for bringing back this topic but I need ur help.I did what Heather Claus said but seem like I cannot get rid of the box.I'm using replicant.Here is how it looks like.I want to get rid off the box pointed.

      This image is hidden for guests.
      Please log in or register to see it.

Time to create page: 0.083 seconds