Gossamer Forum
Quote Reply
Days old
Hi,

When a link is update, the plugin don't place the image "modified.gif", but replace it by "new_352.gif", this only for the category, for the links this good.

Can't yu tell me what's the problem.
thnak's
Quote Reply
Re: [michelb] Days old In reply to
I was thinking about this sort of problem, (and I think I released some fixes for this awhile back).

But, you can also do a template "checK" by doing something like:

<%if DaysOld < 15%>
<%DaysOld%>.gif
<%endif%>

that way, if the days old routine returns a value greater than your maximum days old, it will not display the graphic.

Best bet is to see if you can find the updated days old routines, which I posted as a function call, and which (hopefully) check for these situations and only return a Days_Old value below the range of the cut off.

This "bug" is due to the way links doesn't update most flags unless you build, and if you ruhn a dynamic site, you don't "build" very often if at all -- "repair tables" does about the same thing.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Days old In reply to
Hi pugdog,

thank's for your response.
I have trying to do your option, but he doe'snt works.
I have replace de code:

<%if Has_New_Links eq 'Yes'%>
<img src="<%build_root_url%>/new_<%Days_Old%>.gif">
<%endif%>

by

<%if Has_New_Links eq 'Yes' < 15%>
<img src="<%build_root_url%>/images/new_<%Days_Old%>.gif">
<%endif%>

But he doe'snt work

Where is the problem?
thank's.

Quote Reply
Re: [michelb] Days old In reply to
Isn't the tag:

<%isNew%> not "Has_New_Links" ??

But, you really want to check the "Days_Old" tag itself, which is the one that has the numerical value stored in it.




PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Days old In reply to
Thank's

But the problem is in subcategory.html
I have placed the command line

--------
Place this code in your subcategory.html template:

<%if Has_New_Links eq 'Yes'%>
<img src="<%build_root_url%>/images/new_<%Days_Old%>.gif">
<%endif%>

-------

and the original tag, for a link is changed

<%if Has_Changed_Links eq 'Yes'%><font color="red"><small><sup>Modified</sup></small></font><%endif%>

When a link is changed, he replaced Modified by images352.gif, and he placed not: Modified

but, the tag isNew, don't working

Thank's for you help

Quote Reply
Re: [michelb] Days old In reply to
Hi,

I had a routine that replaced the subcatory parse routine as well. I had left it as an exercise for the user, then posted it anyway. You need two routines -- one to parse the links and one to parse the subcategories, as (as you pointed out) the flags are different.

The code is here in the forum.... search for pugdog and days_old to find it (it should come up).




PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Days old In reply to
Thank you for you help Pugdog

I have found the code:

<%if Has_New_Links eq 'Yes'%>
<%if Days_Old < 15%>
<img src=<%build_root_url%>/img/new_<%Days_Old%>.gif>
<%endif%>
<%if Days_Old > 15%>
<font color="red"><small><sup>Update</sup></small></font>
<%endif%>
<%endif%>

Whit, this code that work great

Thank you,
Michelb