Support Forums

How do you remove the Browse Categories Box?

This is a discussion on How do you remove the Browse Categories Box? within the Templates, HTML, CSS, and Design Help forums, part of the General category; How do you remove the Browse Categories Box located on the homepage? I was looking in the Home.tpl folder, but ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 09-06-2007, 04:13 PM   #1
Member
 
Join Date: Mar 2007
Posts: 51
Rep Power: 15
goose is on a distinguished road
Default How do you remove the Browse Categories Box?

How do you remove the Browse Categories Box located on the homepage?

I was looking in the Home.tpl folder, but i'm not 100% sure of exactly what part to remove (or if this is the correct place to find it).

thanks
goose is offline   Reply With Quote
Old 09-06-2007, 04:26 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,467
Rep Power: 130
Eric Barnes is just really nice Eric Barnes is just really nice
Default

The whole browse categories table is this:
Code:
<table class="tableborder">
    <tr>
        <th>{$smarty.const.LANG_BROWSE_CATEGORY}</th>
    </tr>
    <tr>
        <td>
{html_table_adv loop=$data cols=$cols table_attr='width="100%"'}
    [[start_link]]<img src='[[image]]' border='0' alt='[[name]]' /></a> [[start_link]]<strong>[[name]]</strong></a>
    ([[total]])
    <br />
[[subcats]]
{/html_table_adv}
        </td>
    </tr>
</table>
So you can delete it if you do not want it showing.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 09-06-2007, 05:38 PM   #3
Member
 
Join Date: Mar 2007
Posts: 51
Rep Power: 15
goose is on a distinguished road
Default

Is that in the Home.tpl.php folder?

I found this, is this the correct part to delete, it looks a little different than the code you posted? I just want to make sure i'm not deleting anything else too. thanks

Code:
<table class="main" width="100%">
		<tr>
			<th>{$smarty.const.LANG_BROWSE_CATEGORY}</th>
		</tr>
		<tr>
			<td>		
		<table width="100%">
			{section name=tr loop=$data step=$cols}
				<tr>
					{section name=td start=$smarty.section.tr.index loop=$smarty.section.tr.index+$cols}
					<td valign="top">
					{if $data[td]<>""}
						{$data[td].start_link}<img src="{$data[td].image}" border="0" alt="{$data[td].name}" /></a> 
						{$data[td].start_link}<strong>{$data[td].name}</strong></a>
						{if $data[td].total <> ''}
						({$data[td].total})
						{/if}
						<br />
						<!--{$data[td].subcats}-->
						{$data[td].description}
					{/if}
					 
					</td>
					<td>
					{/section}
				</tr>
			{/section}
			</table>
		</td>
	</tr>
</table>
goose is offline   Reply With Quote
Old 09-06-2007, 05:56 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,467
Rep Power: 130
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Yep that should work. It is just different smarty coding.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 09-06-2007, 05:58 PM   #5
Member
 
Join Date: Mar 2007
Posts: 51
Rep Power: 15
goose is on a distinguished road
Default

I just wanted to make sure I wasn't deleting anything else too.

Thanks for your help again.
goose is offline   Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 02:15 PM.


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