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

Displaying the age of a link

(Page 2 of 2)
> >
Quote Reply
Re: [Andy] Displaying the age of a link In reply to
Adny, the GLinks version is not the problem, his templates use the old <%links_results%> tag to return the pre-formated html instead of using the new <%loop link_results_loop%> logic.

From my point of view this is relatively minor change to the templates.

Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins
Quote Reply
Re: [eupos] Displaying the age of a link In reply to
Ah ok - yeah it is - very simple!

..just replace:
Code:
<%links_results%>

..with:

Code:
<%loop link_results_loop%>
<%include link.html%>
<%endloop%>

Should be as simple as that

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: [kailew] Displaying the age of a link In reply to
Kai,

Change the first line of global to:

Code:
my $added = GT::Date::date_transform($_[0], $CFG->{date_user_format}, GT::Date::FORMAT_DATE);

and use in the templates as:

Code:
<%link_age($Add_Date)%>

Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins
Quote Reply
Re: [eupos] Displaying the age of a link In reply to
thx Andy and Boris, I will try this ...

Kai
___________________________________________
http://www.westalgarve.de
http://www.portugalforum.org
http://www.portugal-links.de
Quote Reply
Re: [kailew] Displaying the age of a link In reply to
looks good now, thx!

Kai
___________________________________________
http://www.westalgarve.de
http://www.portugalforum.org
http://www.portugal-links.de
> >