Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

3 level of new category images?

Quote Reply
3 level of new category images?
Hi,

How I can display 3 level of new category images in Links SQL 2? I mean just like hotscripts.com, when there is a new link in the category, its folder icon will change its colour change?



Leona Mcdonalds
Quote Reply
Re: [leona] 3 level of new category images? In reply to
Did you look at admin.cgi > Plugins > Plugin Download > View > (goto last page) > Days_Old

This plugin should do exactly what you want Wink

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] 3 level of new category images? In reply to
I have that plugin, but what I want is that, it change the category folder icon, if there is a new link in the category (not display "new" image with the category)!

I know, that this can be done by making some modifications in daysold plugin!

Leona Macdonalds
Quote Reply
Re: [leona] 3 level of new category images? In reply to
Its simple. Just do something like this in subcategory.html;

<%if Days_Old%>
<img src="<%build_root_url%>/images/new_<%Days_Old%>.gif">
<%else%>
<img src="<%build_root_url%>/images/folder.gif">
<%endif%>

Then make sure you have the following in your 'images' folder;

folder_0.gif
folder_1.gif
folder_2.gif
folder_3.gif
folder_4.gif
folder_5.gif
folder_6.gif
folder_7.gif
folder_8.gif
folder_9.gif
folder_10.gif
folder_11.gif
folder_12.gif
folder_13.gif
folder_14.gif

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] 3 level of new category images? In reply to
Thanks a lot Andy!!!! Smile

Leona Macdonalds
Quote Reply
Re: [Andy] 3 level of new category images? In reply to
How does this work? Where do you specify the number of days to be considered old for each image?

If a category has a link just added use image 1

If it's less than 3 days use image 2

If it's less than a week then use image 3

I'm just not sure where I need to specify this!
Quote Reply
Re: [craven32] 3 level of new category images? In reply to
Its defined in the script. Each image represents 1 days for each of the 2 weeks. for example, you could have a different image for each day the links is new.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!