Gossamer Forum
Home : Products : Links 2.0 : Customization :

when building the date added is same as build date

Quote Reply
when building the date added is same as build date
help!!

When i rebuild the the site.. the date added changes to the date that i rebuild the pages nightly. how can i fix this??

thanks

james
Quote Reply
Re: when building the date added is same as build date In reply to
You would have to edit the sub get_date routine in the db_utils.pl file.

Do you want to list the current date?

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: when building the date added is same as build date In reply to
no.. i wanted the date the link was added to remain as such...when i rebuild i do NOT want the date when the rebuild occurs to attach to all links..

i repeat.. i am just looking for when the link was added (e.g. added 9-10-99 ) to remain as such...

thanks

james

Quote Reply
Re: when building the date added is same as build date In reply to
I don't understand your request.

Good luck.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: when building the date added is same as build date In reply to
Go to this site www.etexonline.com

go inside one of the catagories and pull up a links page.. what you will find is the date added will be the same date as when i rebuild the database.. but these links have been in there since August...

I would like to leave the dates alone when they are originally added versus when the site rebuilds nightly.

thanks

james

Quote Reply
Re: when building the date added is same as build date In reply to
Okay...So, you want to maintain the Date when the link was added next to the link.

It is simple...you use <%Date%> for templates and $Date for site_html.pl file.

Make sure that the Date field in your links.def file is using the &get_date routine to build this field.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: when building the date added is same as build date In reply to
  
Im going through this same exact problem right now....

My link.html file reads:
<small class="date">(Added: <%Date%> )

Im pretty certain thats correct....



My links.def reads:
Date => [3, 'date', 15, 15, 1, \&get_date, ''],

...again, im pretty sure this is right..


Yet, its not working.. Instead of displaying the date the link was added, its displaying the CURRENT DATE..

Anything else i need to check?
Quote Reply
Re: when building the date added is same as build date In reply to
I was having the same problem with the dates and using one of the custom templates. The site_html_templates.pl file has a mistake in the global hash. It had:

Code:
%globals = (date => &get_date,
Date => &get_date,
etc,);

The two "date" keys were causing Links to generate the current date for the <%Date%> tag, which should be pulled from the links database instead. Just delete
Code:
Date => &get_date,
and everything should be fine.


------------------
Sincerely,

Jason C. Levine
http://members.aol.com/jason1178/