Can anybody guide on How to show Featured and Regular link difference on "New Listings" page ? Similar to http://www.mingleon.com/new-links.html ( I would have contacted him but dont know his DP username ) Any body knows that ?
well i dunno the html of the layout, but a simple if statement to check if featured, and if so, show different background color.
If some one can post the code which needs to be changed/added on the latest links php page - much appreciated.
The simplest way to do is: Edit your link.tpl file after {strip} add : <div {if $link.FEATURED eq 1} style="background:#aaaaaa;" {/if}> before {/strip} add : </div> This is just an example. It can be customized as you wish.
Yes and No, the aforementioned code would apply the change to EVERY featured listing on the site. So it would affect the latest listings page but would also affect all your category pages too. I don't have the solution off the top of my head and have to rush out now, but if no one has provided the solution when I get back I will take a look at it.
I want featured links style on "new listings" page similar to what it shows on category pages. So i think YIAM code will work. But needs more description
It will affect every listing also, but adding conditions might fix it, will post soon if silky has not posted already possible solution. @meethere check http://www.h-log.com/index.php?list=top and http://www.h-log.com/Hosting/Hosting/ this is what his modification does. Anyways here is the fix, works good. open link.tpl Located {strip} Code (markup): Replace with {strip} <div {if $link.FEATURED eq 1 and !empty($links)} id = "specialfeatured" {/if}> Code (markup): Locate {/strip} Code (markup): Replace with : </div> {/strip} Code (markup): open your style.css file and paste this code at top bottom or anywhere: #specialfeatured { background:#99FF33; font-weight:bold; } You can play with above according to your tastes. Enjoy
umm here is another way {foreach from=$links item=link name=links} {if $link.FEATURED eq 1}<div style="border: 1px dashed #555555; background: #ffffff;">{include file="link.tpl" link=$link}</div><br />{else}{include file="link.tpl" link=$link}{/if} {/foreach} HTML: place this in your main.tpl after the sorting option area where you see the link.tpl codes this will do it for both pages ... Top Hits and New listings... demo is here http://www.idk.in/index.php?list=top http://www.idk.in/index.php?list=latest i dont see it doing this on category pages .... so this must be it