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

Days_Old plugin Available

Quote Reply
Days_Old plugin Available
Hi everyone,

After modifying code provided by lparry, I now have this mod working as a plugin.

It allows you to use the Days_Old tag for links that are new.

If anyone needs it, just ask.


Robert Blackstone
Webmaster of Scato Search
http://www.scato.com
Quote Reply
Re: Days_Old plugin Available In reply to
Hi Robert,

that is exactly what I am looking for, since I used the 3-level-new mod in LSQL1.
Is there an URL for downloading your plugin? Otherwise it would be nice if you could send me the plugin via email.

Thanks!

Andreas

--------------------------------------------
http://www.archaeologie-online.de
Quote Reply
Re: Days_Old plugin Available In reply to
Could you pass this one to me too?
Thanks!

Quote Reply
Re: Days_Old plugin Available In reply to
I just sent it to Alex.
He should make it available in the Download section or Resource section.

If not, I'll send it to you guys.

Robert Blackstone
Webmaster of Scato Search
http://www.scato.com
Quote Reply
Re: Days_Old plugin Available In reply to
Your plugin gives me the following error when I build the directory.

GT::Date - can't handle date: 0 at /home/sites/site9/web/cgi-bin/admin/GT/Date.pm line 515.


Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: Days_Old plugin Available In reply to
Building the directory works fine for me.
Are you sure it deals with my plugin, and not another?

Robert Blackstone
Webmaster of Scato Search
http://www.scato.com
Quote Reply
Re: Days_Old plugin Available In reply to
That's a possibility as I have about 8 plugins being installed an uninstalled frequently to try and get the darn things working!

I am creating a plugin and want to be able to show the output by using <%lnk%> but no matter what I seem to do it says unknown tag.

Can you help coz it's driving me crazy...

I have

$link = shift;

#CODE HERE

$link->{lnk} = $output;
return $output;

????
What stupid thing am I doing wrong this time.....

Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: Days_Old plugin Available In reply to
Hey there
Just tried your plug in. the problem i reported earler was due to a blank line # 11 in Days_Old.pm and Install.pm.
before installing make sure to delete this line or place a # at the beginig.

Second:
For some reason the plug in is generating a new_20.gif, new_366.gif I checked both plus in files and could not figure it out.
My current Consider_New is setup to 14. any ideas?

Regards
Abd

http://www.idleb.com
Quote Reply
Re: Days_Old plugin Available In reply to
First,
I would think the plug in would need to do a :


Links::init_date();


In each subroutine, just to be safe.


Second,
>> GT::Date - can't handle date: 0 at /home/sites/site9/web/cgi-bin/admin/GT/Date.pm line 515.


This is something I pointed out to Alex back in the beta's, and he supposedly added code to fix it. This might be a new occurance of that same problem. What is happening, is the date routine does not like '0000-00-00' or '' as a date. If your table does not actully have a _REAL_ date in the date fields, then what is happening is the default 'null' or '0000-00-00' value is causing the error.




PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: Days_Old plugin Available In reply to
Hi,

Thanks for your reply.

I was using 2.0.0 when getting that error so he has probably fixed it like he said by now.


Paul Wilson.
http://www.wiredon.net
Quote Reply
Re: Days_Old plugin Available In reply to
I am using 2.0.2 and still have the error.
it does not look like he fixed it

Regards
Abd

http://www.idleb.com
Quote Reply
Re: Days_Old plugin Available In reply to
Hmm..

I'll look into this.
Alex, any input?

Robert Blackstone
Webmaster of Scato Search
http://www.scato.com
Quote Reply
Re: Days_Old plugin Available In reply to
Hi,

I'll have to modify GT::Date to take empty input. It will probably spit out Wed Dec 31 16:00:00 1969 as the date (localtime(0)).

This will get fixed up in the next release.

Cheers,

Alex

--
Gossamer Threads Inc.