Support Forums


Go Back   68 Classifieds Forums > Help & Support > v4 Questions & Support

Notices

 
LinkBack Thread Tools Display Modes
Old 01-18-2009, 06:50 PM   #1
Junior Member
 
Join Date: Jan 2009
Posts: 17
Rep Power: 3
naidu01 is on a distinguished road
Default How to remove Left side navigation

Hello,
I would like to show the left side navigation bars just the way they are. but I would like for them to go away after the home page. So if someone clicks on search or categories that the ads take up all the space and that all navigation bars on the left go away.

I can't seem to figure this one out. Any help would be greatly appreciated.
naidu01 is offline   Reply With Quote
Old 01-18-2009, 07:24 PM   #2
Junior Member
 
Join Date: Jan 2009
Posts: 17
Rep Power: 3
naidu01 is on a distinguished road
Default

Never mind. I figured it out. Sorry but I don't know how to delete a thread.

If anyone needs help with this please let me know.
naidu01 is offline   Reply With Quote
Old 01-18-2009, 10:39 PM   #3
Moderator
 
Chaslie's Avatar
 
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 744
Rep Power: 28
Chaslie will become famous soon enough
Default

Even if you figured it out yourself, its great if you could use the forum to then answer your own question. There will be others in the future who could then benefit by your forum 'answer'.
__________________
Chaslie
V4.1 dev


68 Classifieds Important Links
Customer Area | Issue Tracker | User Manuals & Documentation

HTML Help
W3 Schools
Chaslie is offline   Reply With Quote
Old 01-18-2009, 11:20 PM   #4
Junior Member
 
Join Date: Jan 2009
Posts: 17
Rep Power: 3
naidu01 is on a distinguished road
Default

That's true. Here's how I figured it out.

In the layout.tpl

I added this code just before the left bar code:
{if $body=='home.tpl'}
and added {/if} at the end of the code


Here is the full code in the layout.tpl:


{if $body=='home.tpl'}
<table width="100%">
<tr>
<td valign="top" width="200">
<!-- // Left Side // -->
{* Left side navigation.*}
<div id="sidebar">
<h1>{$smarty.const.LANG_MEMBER_NAVIGATION}</h1>
<div class="left-box">
<ul class="sidemenu">
{if $smarty.session.username<>'' || $smarty.cookies.username<>""}
<li><a href="{$smarty.const.URL}/userindex.php">{$smarty.const.LANG_MY_ACCOUNT}</a></li>
<li><a href="{$smarty.const.URLS}/usercheckout.php">{$smarty.const.LANG_TPL_PLACE_AD }</a></li>
{if $canSaveFavorites=="Y"}
<li><a href="{$smarty.const.URLS}/userfavorites.php">{$smarty.const.LANG_TPL_VIEW_FA VORITES}</a></li>
{/if}
<li><a href="{$smarty.const.URLS}/userbrowselistings.php">{$smarty.const.LANG_TPL_MO DIFY_AD}</a></li>
<li><a href="{$smarty.const.URLS}/logout.php">{$smarty.const.LANG_TPL_LOGOUT}</a></li>
{else}
<li><a href="{$smarty.const.URLS}/login.php">{$smarty.const.LANG_TPL_LOGIN}</a></li>
<li><a href="{$smarty.const.URLS}/usercheckout.php">{$smarty.const.LANG_TPL_PLACE_AD }</a></li>
{/if}
</ul>
</div>

<h1>{$smarty.const.LANG_TPL_NAVIGATION}</h1>
<div class="left-box">
<ul class="sidemenu">
<li><a href="{$smarty.const.URL}/index.php">{$smarty.const.LANG_TPL_HOME}</a></li>
<li><a href="{$smarty.const.URL}/search.php">Advanced Search</a></li>
{foreach from=$templatepages item="entry"}
<li><a href="{$smarty.const.URL}/pages.php?page={$entry.pageID}">{$entry.pPageTitle }</a></li>
{/foreach}
<li><a href="{$smarty.const.URL}/contactus.php">Contact Us</a></li>
</ul>
</div>
</div>
</td>
<td valign="top">
<div id="content">
{/if}
naidu01 is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove Member Navigation & Navigation In Showlistings bowers01 v4 Questions & Support 1 09-04-2008 12:41 PM
Expanding menu at the left side wesse249 v4 Questions & Support 2 08-26-2008 07:12 AM
CSS Side Menu outlook HTML, CSS, and Design Help 7 07-16-2008 10:45 PM
Can I replace the side navigation menu?? sbuell20 v3.1 Questions & Support 10 03-31-2007 06:28 AM
Adding a content box for advertising under the left side navigation Zack v3.0 Questions & Support 7 04-10-2006 09:13 PM


All times are GMT -4. The time now is 10:32 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0