|
|
#1 |
|
Member
Join Date: Jan 2009
Location: England
Posts: 42
Rep Power: 2 ![]() |
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 |
|
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,008
Rep Power: 116 ![]() |
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 |
|
|
|
|
|
#3 |
|
Coder
Join Date: Mar 2006
Posts: 4,411
Rep Power: 108 ![]() ![]() |
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} |
|
|
|
|
|
#4 |
|
Member
Join Date: Jan 2009
Location: England
Posts: 42
Rep Power: 2 ![]() |
Thanks for the quick replys Larry and Eric
__________________
v4.0.9 Hosted |
|
|
|
|
|
#5 |
|
Member
Join Date: Jan 2009
Location: England
Posts: 42
Rep Power: 2 ![]() |
Thanks a million guys, added an image and it works great and really makes my featured listings tand out
Jason
__________________
v4.0.9 Hosted |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |