Support Forums

Category listing

This is a discussion on Category listing within the Technical Support forums, part of the Technical Support Forums category; hi, is there a way to make the Perent category of the listing bold, as when a user selects a ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 02-26-2008, 04:59 AM   #1
Junior Member
 
Join Date: Feb 2008
Posts: 22
Rep Power: 17
gboy is on a distinguished road
Default Category listing

hi,

is there a way to make the Perent category of the listing bold, as when a user selects a cattegory it is difficult to distiguish between them
gboy is offline  
Old 02-26-2008, 09:07 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by gboy
hi,

is there a way to make the Perent category of the listing bold, as when a user selects a cattegory it is difficult to distiguish between them
Where exactly are you looking to do this?
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 02-26-2008, 09:58 AM   #3
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,342
Rep Power: 53
Maffo is just really nice Maffo is just really nice
Default

Try having a look at this code that is used for version 3. I think it will suit your needs.

Main Categories in Bold
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline  
Old 02-26-2008, 10:04 AM   #4
Junior Member
 
Join Date: Feb 2008
Posts: 22
Rep Power: 17
gboy is on a distinguished road
Default

yes thanks for the replies,

I have the designer version, and a bit of a new at this,

Basicly I need the drop-down lists, in where you select category's for adds, to be bold, the parent category's of each one, and while i am on it. is there not a better way of doing this other than a drop doen menu, as i have a lot of cattegorys and sub subcategory.

Is it possible for me to create different listing forms for each add type, for example, real estate need bed, bath ect, but a normal add just needs a normal box.
gboy is offline  
Old 02-26-2008, 10:52 AM   #5
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,342
Rep Power: 53
Maffo is just really nice Maffo is just really nice
Default

The example I have given needs the developer version. Also if you are wanting to make changes to the way the program works, then you will also need the developers version.

I am currently writing an advanced dropdown in AJAX
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline  
Old 02-26-2008, 11:00 AM   #6
Senior Member
 
Join Date: Sep 2006
Posts: 236
Rep Power: 27
Tim_A is on a distinguished road
Default

Can't remember if the designer version has acess tot he .tpl files, but for instance if you go to search.tpl and overwrite the category section with this:

PHP Code:
<td>
                       <
select name="type" id="type" onChange="displaySec(this);">
                           <
option value=''>{$smarty.const.LANG_SEARCH_ALLCAT}</option>
                        {foreach 
from=$getcats item=cat}
                            <
option {if $cat.parent_id == 0style="color:#000; font-weight:bold; font-size: 12px; background-color: #a6d29f; border-bottom:1px solid #5487bf; border-top:1px solid #5487bf; margin-top:5px; text-transform: uppercase;" class="parent" {/if}{if $cat.parent_id == 2style="color:#000; background-color: #CCC;" class="parent" {/if}{if $cat.id == 12style="color:#FFF; background-color: #000000;" class="parent" {/if}value="{$cat.id}"{if $type==$cat.idSELECTED{/if}>{$cat.name}</option>
                        {/foreach}
                    </
select>
                </
td
It'll work (remember Internet Explorer allows a lot less tags than Firefox for instance).
__________________
V4.0.9 Developer
Tim_A is offline  
Old 02-26-2008, 11:17 AM   #7
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
Default

In V4 we have added a class to the parent elements in the select list. If you view source you should see:
Code:
class="parent"
So in your style sheet just add:
Code:
option .parent { font-weight: bold; }
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 02-26-2008, 12:17 PM   #8
Junior Member
 
Join Date: Feb 2008
Posts: 22
Rep Power: 17
gboy is on a distinguished road
Default

wow, thanks, you would not have .child or something for the next level
gboy is offline  
Old 02-26-2008, 12:39 PM   #9
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
Default

No because all the rest would be child's. You should be able to do something like:
Code:
#category option { color: red; }
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Category Listing Tim_A Technical Support 2 09-23-2007 10:38 PM


All times are GMT -4. The time now is 08:12 AM.


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