Support Forums


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

Notices

 
LinkBack Thread Tools Display Modes
Old 04-27-2009, 12:18 PM   #1
Member
 
 
Join Date: Jan 2009
Location: England
Posts: 42
Rep Power: 2
jason1971 is on a distinguished road
Default Promoting my featued listings with text or image

Hi,
As I want to promote my featured listings is it possible to add the word "Featured Advert" or to add a small image which will appear in all adverts which have taken out a featured placement..

So that when the search results in showlistings.tpl appear all featured adverts will have the word Featured Advert or image say next to the title of the item for sale.

If so any ideas on how to acheive this ?

Hope you are able to understand what I am rambling on about.

Thanks for any assistance you can offer.

Jason
__________________
v4.0.9 Hosted
jason1971 is offline   Reply With Quote
Old 04-27-2009, 12:52 PM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,008
Rep Power: 116
Eric Barnes is a jewel in the rough
Default

You can probably do something like this:
Code:
{if $entry.featured == 'Y'}
put your image or text
{/if}
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is online now   Reply With Quote
Old 04-27-2009, 12:53 PM   #3
Coder
 
Join Date: Mar 2006
Posts: 4,411
Rep Power: 108
Lhotch is just really niceLhotch is just really nice
Default

If you look at the showlistings.tpl you can see that each ad on the page is an element of an array. The array is looped over and each value in that array represents a field for the ad.

If you make use of the debug console as referenced in the docs...
Template FAQ - 68 Classifieds[]=debug

you can see the values for each ad which are in the smarty variable $results.

From the debug concolse you can see there is a value called "featured" and it will have a value of Y or N.

You can use that to determine if the ad is featured or not...ie

{if $entry.featured =="Y"}
image or text html here
{/if}
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 04-27-2009, 01:17 PM   #4
Member
 
 
Join Date: Jan 2009
Location: England
Posts: 42
Rep Power: 2
jason1971 is on a distinguished road
Default thank you

Thanks for the quick replys Larry and Eric
__________________
v4.0.9 Hosted
jason1971 is offline   Reply With Quote
Old 04-27-2009, 01:35 PM   #5
Member
 
 
Join Date: Jan 2009
Location: England
Posts: 42
Rep Power: 2
jason1971 is on a distinguished road
Default Thanks

Thanks a million guys, added an image and it works great and really makes my featured listings tand out

Jason
__________________
v4.0.9 Hosted
jason1971 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
Description text below image in RSS/external.php business Modules / Plugins / Modifications 1 07-02-2008 06:42 PM
Can't add listings: my text gets deleted as I type dojo v4 Questions & Support 2 04-01-2008 05:05 PM
Adding a Text Header in Featured Listings VanWertAds*com v3.1 Modules & Modifications 5 07-21-2007 04:05 AM
signup text image box error *URGENT* calvinbrownjr v3.1 Questions & Support 4 07-14-2006 02:27 PM


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


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