Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Add_Date does not work on "new"?

Quote Reply
Add_Date does not work on "new"?
Hi,

I've a strange behaviour of add_date. It doesn't show the value on my pages with new links. Any ideas?

Kai
___________________________________________
http://www.westalgarve.de
http://www.portugalforum.org
http://www.portugal-links.de
Quote Reply
Re: [kailew] Add_Date does not work on "new"? In reply to
Give an example url. The <%Add_Date%> variable does not show anything? More information please...

- Jonathan
Quote Reply
Re: [jdgamble] Add_Date does not work on "new"? In reply to
not anything ... on pages like new, cool, search_results ... there is no add_date. I'm using the same link-template to display the links, and in the normalm categories it's the. But on the other pages add-date ist empty
Kai
___________________________________________
http://www.westalgarve.de
http://www.portugalforum.org
http://www.portugal-links.de
Quote Reply
Re: [kailew] Add_Date does not work on "new"? In reply to
In Reply To:
not anything ... on pages like new, cool, search_results ... there is no add_date. I'm using the same link-template to display the links, and in the normalm categories it's the.[/quote]


What do you mean "there is no add_date?" It is not going to display the add date unless you edit the templates and/or the template globals to show the date on the page.

In Reply To:

But on the other pages add-date ist empty[/quote]

What other pages? I have no idea what the problem is. Give me a url so that I can see the problem in action. If not, give me a specific error etc...

- Jonathan
Quote Reply
Re: [jdgamble] Add_Date does not work on "new"? In reply to
Hi Jonathan,

I mean: add-date is in the template link.html and it shows the date on the normal category pages but the same template (link.html) don't show the date on pages like cool, search results and probably also not on new ...

I write a PM with the URL, but it's in german ...

Kai
___________________________________________
http://www.westalgarve.de
http://www.portugalforum.org
http://www.portugal-links.de
Quote Reply
Re: [kailew] Add_Date does not work on "new"? In reply to
The only thing I can think of is that perhaps you have a global or plugin that is causing a clash.

Philip
------------------
Limecat is not pleased.
Quote Reply
Re: [fuzzy logic] Add_Date does not work on "new"? In reply to
Hi,

my installed plugins:
Bad_Link
Days_Old
Detailed_Page
DirectoryDepth
Duplicate_Check
PageBuilder
RSSFeed
Recommend_It
StaticURLtr
XMLResults
YahooSubcats

and I have some globals, ...

date:
Code:
sub {
# Displays the current date.
Links::init_date();
GT::Date::date_set_format($CFG->{'date_user_format'});
my $date = GT::Date::date_get();
GT::Date::date_set_format($CFG->{'date_db_format'});
return $date;
}

time:
Code:
sub {
# Displays the current time.
my ($sec,$min,$hr) = localtime( time + ($Links::CFG->{date_offset} *3600));
return sprintf ("%02d:%02d:%02d", $hr, $min, $sec);
}

and some others from which I don't think that they could have some influence on add_date ...

Kai
___________________________________________
http://www.westalgarve.de
http://www.portugalforum.org
http://www.portugal-links.de
Quote Reply
Re: [kailew] Add_Date does not work on "new"? In reply to
Try this:

Go to Setup, select Paths and URLS, you will see:

Update other paths and URL's to reflect base? If selected, paths like What's New, What's Cool, etc. will be automatically updated, otherwise Click Here to view them and set them manually. update_others
Quote Reply
Re: [rascal] Add_Date does not work on "new"? In reply to
Hi,

I don't understand your point ... what has building of the pages to do with the date? The pages are build correct, only the add_date variable is not working, whe it's on new, cool or search. It's worling on category but not on the other pages.

Kai
___________________________________________
http://www.westalgarve.de
http://www.portugalforum.org
http://www.portugal-links.de
Quote Reply
Re: [kailew] Add_Date does not work on "new"? In reply to
What I suggested you do makes sense, if you don't want any help don't ask for it.

You are having a problem that nobody has had, so it has to be something that you did.
Quote Reply
Re: [kailew] Add_Date does not work on "new"? In reply to
Add_Date is available on all the pages you have listed (any where link data is available, the Add_Date will be available). Have you tried using <%DUMP%> in the template and making sure Add_Date is available there?

Adrian
Quote Reply
Re: [fuzzy logic] Add_Date does not work on "new"? In reply to
Hi, I've tried "Dump" and found Add_Date and Add_Date1 Add_Date was an empty line but in Add_Date1 was the date ... To answer the question: YES Add_Date is available (but empty ...) and yes, the field is in the DB and with content in it. Then I've searched the forum and found that maybe the Days Old-Plugin is responsible for that. I've uninstalled it. Now add_date1 is away but add_date isn't working and "Dump" shows an empty line, either in dynamic new, search and cool and in the static-version of theses pages. In the category-pages it works fine. It should have something to do with the way how cool, search and new are build. Maybe there's an influence from one global which I use to display newest links:
Code:
sub {
# Displays the newest links on the home page.
my ($output,$sth,$link);
my $search_db = $DB->table('Links');
$search_db->select_options ('ORDER BY Add_Date DESC Limit 10');
$sth = $search_db->select ( { isValidated => 'Yes' });
while ($link = $sth->fetchrow_hashref) {
if (length $link->{Title} > 50) {
$link->{Title} = substr($link->{Title}, 0, 50) . '...';
}
$output .= Links::SiteHTML::display ('new_links', $link);
}
return $output;
}

I display it with this template:
Code:
<li class="linkliste">
<a class="noline" href="<%db_cgi_url%>/detail_page.cgi?ID=<%ID%>"><%Title%></a>
<br class="half">
<span class="greytext">->&nbsp;Seit:&nbsp;<%GT::Date::date_transform($Add_Date, '%yyyy%-%mm%-%dd%', '%dd%.%mm%.%yyyy%')%></span>
</li>

There the date is displayed correct.

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

Last edited by:

kailew: Aug 16, 2006, 3:25 AM
Quote Reply
Re: [kailew] Add_Date does not work on "new"? In reply to
There is no Add_Date1 tag by default. One of your installed plugins must be doing something to change the Add_Date tag.

Adrian
Quote Reply
Re: [brewt] Add_Date does not work on "new"? In reply to
Hi,

as I wrote, I've uninstalled the days_old plugin and the date1-tag is away. Now there's only the add_date tag which is empty.

Kai
___________________________________________
http://www.westalgarve.de
http://www.portugalforum.org
http://www.portugal-links.de
Quote Reply
Re: [kailew] Add_Date does not work on "new"? In reply to
The problem was the combination of older templates (<2.2.0 that didn't use loops) with the newer code that provided backwards compatibility. The fix will be included in the next release.

Adrian

Last edited by:

brewt: Aug 16, 2006, 3:49 PM
Quote Reply
Re: [brewt] Add_Date does not work on "new"? In reply to
and I like to say thx to the support. The problem was fixed in a few moments after they've got access to the admin ...

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

Last edited by:

kailew: Aug 16, 2006, 3:56 PM