Support Forums

Icon for Featured Listings

This is a discussion on Icon for Featured Listings within the Templates, HTML, CSS, and Design Help forums, part of the General category; Hello gang! In the category listings, I'm trying to get an image to show up in front of the title ...


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

Reply
 
Thread Tools Display Modes
Old 06-15-2010, 08:27 PM   #1
Customer
 
arivederchi's Avatar
 
Join Date: Aug 2008
Posts: 36
Rep Power: 13
arivederchi is on a distinguished road
Default Icon for Featured Listings

Hello gang!

In the category listings, I'm trying to get an image to show up in front of the title when it's a Featured Ad. Maybe like a little star or something. I feel this will be easier for users to understand the difference between Featured and Non Featured. The highlighting alone can be a little confusing. I scoured the forum for information on doing this and basically found one thread with outdated information. Any clues to make this happen will be greatly appreciated.

Thanks!
__________________
Currently Using:
Developer 4.1.10
Sigma Templates
arivederchi is offline   Reply With Quote
Old 06-16-2010, 04:08 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

Test if the advert is featured in the showlistings file and then place you image. Modify this line to include a test

<td{if $entry.class<>""} class="{$entry.class}"{/if}><a href="{$entry.link}" title="{$entry.title}">{$entry.title}</a></td>

Use debug to find the variable to test.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 06-16-2010, 05:48 PM   #3
Customer
 
arivederchi's Avatar
 
Join Date: Aug 2008
Posts: 36
Rep Power: 13
arivederchi is on a distinguished road
Default

Thanks for the reply David!

I found this which I believe is the variable I need:

{if $entry.featured =="Y"}Put image here!{/if}

But I haven't been able to figure out where to put it.

Here's what I thought would work but it shows up on all the listings not just the featured ones.

<td{if $entry.class<>""} class="{$entry.class}"{/if}>{if $entry.featured =="Y"}Put image here!{/if}<a href="{$entry.link}" title="{$entry.title}">{$entry.title}</a></td>

Could you tell me what I'm doing wrong.

Thanks
__________________
Currently Using:
Developer 4.1.10
Sigma Templates
arivederchi is offline   Reply With Quote
Old 06-16-2010, 05:54 PM   #4
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Where did you get that variable from? Don't see any variable anywhere for that?

I think what you're after is $results.featured=="Y"
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 06-16-2010, 06:14 PM   #5
Customer
 
arivederchi's Avatar
 
Join Date: Aug 2008
Posts: 36
Rep Power: 13
arivederchi is on a distinguished road
Default

Thanks Mike for helping me out!

I tried your suggestion but nothing shows up on the Featured listings. Am I putting the variable in the right place? Below is what I did.

Thanks


<td{if $entry.class<>""} class="{$entry.class}"{/if}>{if $results.featured=="Y"}Image Here{/if}<a href="{$entry.link}" title="{$entry.title}">{$entry.title}</a></td>
__________________
Currently Using:
Developer 4.1.10
Sigma Templates
arivederchi is offline   Reply With Quote
Old 06-16-2010, 07:34 PM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

If you just use this

{$entry.featured}

you will see it displays a Y or N.

It is certainly this. You have put quotes round the "Y" and they are not needed.

{if $entry.featured == Y}Image Here{/if}
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 06-17-2010, 02:47 AM   #7
Customer
 
arivederchi's Avatar
 
Join Date: Aug 2008
Posts: 36
Rep Power: 13
arivederchi is on a distinguished road
Default

That worked David! Once again, thank you so much for your help!
__________________
Currently Using:
Developer 4.1.10
Sigma Templates
arivederchi is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
RSS of Featured Listings akilar Technical Support 1 10-26-2009 09:02 AM
Featured Listings skekum Technical Support 4 05-29-2009 09:08 AM
V4.0.3 featured listings bug!! Tim_A Technical Support 4 05-30-2008 08:49 AM
Featured Listings kama Templates, HTML, CSS, and Design Help 1 05-22-2008 03:36 AM
v4 icon set louad Technical Support 9 02-13-2007 09:53 AM


All times are GMT -4. The time now is 06:50 AM.


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