Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

isPick Mod for LinksSQL

Quote Reply
isPick Mod for LinksSQL
A very popular mod for Links 2.0 was isPick - where, by using a 'Yes/No' field you could highlight your 'best' programs. It was a 'webmaster's only' tool and I found it invaluable for making recommendations about programgs (I also used it as a TOP TEN List.

Has anyone ported this over to LinksSQL?

Regards,



------------------
Clint
----------------------------------
www.AffiliatesDirectory.com
Proud Supporter of Links SQL
----------------------------------




Quote Reply
Re: isPick Mod for LinksSQL In reply to
I don't know the specifics of that routine, but it shouldn't be too hard.

Just add a yes/no or better yet, a 1/0 Integer field to the Links table that is called isPick.

Then, in nph-build.cgi clone the build_cool routine (to build_pick), and change the appropriate parts to use the isPick variable. Create a new template, and clone the site_html_cool routine (to site_html_pick) in the HTML_Templates.pm file to handle the call from nph-build to the &load_template.

That should be all you need to do.
Quote Reply
Re: isPick Mod for LinksSQL In reply to
Thanks Pugdog,

I'll give it a try!

Regards,



------------------
Clint
----------------------------------
www.AffiliatesDirectory.com
Proud Supporter of Links SQL
----------------------------------




Quote Reply
Re: isPick Mod for LinksSQL In reply to
Pugdog,

Well, I've got it 'humming' - been able to add a Recommended Page as well as a Top Ten Programs Page.

Thanks for the help

Regards,



------------------
Clint
----------------------------------
www.AffiliatesDirectory.com
Proud Supporter of Links SQL
----------------------------------




Quote Reply
Re: isPick Mod for LinksSQL In reply to
<G> it _really_ is easy, isn't it??

The key is look at the existing routines, decide which is closest to what you want to do, then just clone it.