|
|
#1 |
|
Junior Member
Join Date: Jan 2009
Posts: 17
Rep Power: 3 ![]() |
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. |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Jan 2009
Posts: 17
Rep Power: 3 ![]() |
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. |
|
|
|
|
|
#3 |
|
Moderator
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 744
Rep Power: 28 ![]() |
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 |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jan 2009
Posts: 17
Rep Power: 3 ![]() |
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} |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |