Gossamer Forum
Home : Products : Gossamer Links : Discussions :

MyLinks SQL Available

(Page 1 of 3)
> >
Quote Reply
MyLinks SQL Available
Hi,

I've just finished a mylinks style mod for Links SQL. (I've called it "Favorites")

It is built around the Links SQL system and uses the same template system and functions. Everything is template based including a second link.html that you can customize to show different options on the "Favorites" homepage, for example instead of having "Rate It" you can have "Delete It" so users can delete the favorite from their list. The reason for the second link.html is that you wouldn't want "Delete It" to show next to every link in your directory.

You can add, delete, delete all etc...

Admin can set the maximum number of favorites allowed per user as well as number of favorites per page - spanning is supported using the LSQL toolbar routine...eg....

[<<] 1 2 [>>]

Generic error messages are set in language.txt meaning you can have different error message for different template sets if you want.

It did require a change to Build.pm but instead of asking people to modify it causing problems with upgrades I shifted the code into the main "Favorites" module so no need to worry about upgrades screwing up the script.

Anyway here is a demo:

http://213.106.6.135/...anagement/index.html

If you browse the directory you can click "Save It" next to the links and just play about.

There is quite a bit of error checking to stop people saving/deleting non-existant links etc...and there is a warning when deleting all. All in all I'm really pleased with it. Angelic

If you only want to allow members to save links you can use the following in link.html........

<%if USER%>
...save it link
<%endif%>

I will release the code for free however it did take me a while to make so if anyone would be kind enough to "donate" $20 for my efforts then I'd be very appreciative.

https://www.paypal.com/...00&no_shipping=1

Let me know what you think!

I'll have the zipped code ready soon.

Last edited by:

PaulW: Dec 1, 2001, 1:57 PM
Quote Reply
Re: [PaulW] MyLinks SQL Available In reply to
is it possible for it to be member base, instead of cookies, i'm sure a lot of my members would like to be able to access their favorites from toher computers!
Quote Reply
Re: [PaulW] MyLinks SQL Available In reply to
Hi Paul,

Very cool! If you want any help putting it into a plugin, just send me what you have and I can make the changes for you.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [PaulW] MyLinks SQL Available In reply to
Is this backwards compatible with links 1.13?

</not a clue>
Quote Reply
Re: [Kilroy] MyLinks SQL Available In reply to
Hi,

Unfortunately no. However the main core of the script is as it is only using cookies and so you'd just have to change the way the templates are loaded and a few other things and it should work.
Quote Reply
Re: [kennethx] MyLinks SQL Available In reply to
Hi Kenneth,

Yes this is something I intend to do over the next couple of days. I started off with cookies to see how things would go and I will have a go at a database version which will hopefully be ready by monday.

Last edited by:

PaulW: Dec 2, 2001, 4:23 AM
Quote Reply
Re: [Alex] MyLinks SQL Available In reply to
Hi,

That was the major concern. It seemed a bit silly not making it into a plugin with such a great plugin system. I just wasn't sure how to go about it. I can get the plugin to extract the files and set everything up but the mod requires changes to language.txt and so I couldn't just overwrite the existing file as it would overwrite people's custom files. How should I go about it?...oh also I added changes to ConfigData.pm

I guess the config changes could be applied as plugin user options rather than changing ConfigData.pm?

I'd like to try this myself but if you have time I'd love some advice, maybe via email.

If I fail I'll send you the code :)

Hmmm I also noticed a strange bug. The second link.html doesn't seem to recognise isNew, isCool, isPop and so if you notice, they all show next to links on the favorites page.

Last edited by:

PaulW: Dec 2, 2001, 4:37 AM
Quote Reply
Re: [PaulW] MyLinks SQL Available In reply to
Paul, excellent work!

I'm going to wait a little time until you have the plugin fixed up then you have a sale. This feature has been on my wish-list for a long time.

Well done :-)

~ ERASER


Free JavaScripts @ Insight Eye
Quote Reply
Re: [Eraser] MyLinks SQL Available In reply to
Thanks :)

I'm experimenting with the plugin as we speak :)
Quote Reply
Re: [Alex] MyLinks SQL Available In reply to
Hi Alex, ignore my last post. I'm adding the options and error messages as user options for the plugin rather than editing language.txt and ConfigData.pm

I should have the plugin ready soon.
Quote Reply
Re: [Eraser] MyLinks SQL Available In reply to
Ok, the plugin is made and works nicely.

Just have a few things to finish up and then I'll post it.

Last edited by:

PaulW: Dec 2, 2001, 8:26 AM
Post deleted by PaulW In reply to

Last edited by:

PaulW: Dec 2, 2001, 10:58 AM
Quote Reply
Re: [PaulW] MyLinks SQL Available In reply to
Great Plugin Compliments, but I've installed.....
with some problem :
www.mysite/cgi-bin/fave.cgi/?ID=716

do
Internal Server Error

I've checked all templates and I've CHMOD fave.cgi (666 or 755), but it's the same !!!

I've lanced fave.cgi trought telnet and work fine!

Why???




Thanks in Advance
Bye From Italy

Last edited by:

fabio: Dec 2, 2001, 11:03 AM
Quote Reply
Re: [fabio] MyLinks SQL Available In reply to
Hi,

Sorry I added some comments into Favorites.pm but forgot a #

I've removed the plugin whilst I double check everything.

Last edited by:

PaulW: Dec 2, 2001, 11:00 AM
Quote Reply
Re: [fabio] MyLinks SQL Available In reply to
Ok, sorry again about my foolishness.

I've tested this copy and it definitely works.

Last edited by:

PaulW: Dec 2, 2001, 11:27 AM
Quote Reply
Re: [PaulW] MyLinks SQL Available In reply to
Sorry PaulW It's the same !!!!
Check at :http://www.cercaziende.it/cgi-bin/fave.cgi?ID=5513


Thanks in Advance
Bye From Italy
Quote Reply
Re: [fabio] MyLinks SQL Available In reply to
The link works for me. It says you have 0 links.

Also that URL is incorrect (my fault)

Should be:

fave.cgi?do=add&id=<%ID%>

Last edited by:

PaulW: Dec 2, 2001, 11:22 AM
Quote Reply
Re: [PaulW] MyLinks SQL Available In reply to
Ok I've corrected:
CHMOD 755 to fave.cgi (the installer set to 666)

but it don't add any links to Favorites
why?




Thanks in Advance
Bye From Italy
Quote Reply
Re: [fabio] MyLinks SQL Available In reply to
See above.

I've updated the attachment but you can just edit link.html
Quote Reply
Re: [PaulW] MyLinks SQL Available In reply to
Check Now
I've downloaded the attachment but it's the same...
You have 0 saved links!
Don't add nothing to Favorites
Chek at: http://www.cercaziende.it/Abbigliamento/index.php
click on Memo



Thanks in Advance
Bye From Italy

Last edited by:

fabio: Dec 2, 2001, 11:28 AM
Quote Reply
Re: [fabio] MyLinks SQL Available In reply to
Please read what I said above. You need to change link.html

Ok nevermind...

Just to clear things up. Here is the latest copy.

It fixes the typo on the How To page and the chmodding problem.


Last edited by:

PaulW: Dec 2, 2001, 11:33 AM
Quote Reply
Re: [PaulW] MyLinks SQL Available In reply to
Ok ......
I Try......


Thanks in Advance
Bye From Italy
Quote Reply
Re: [fabio] MyLinks SQL Available In reply to
Nothing !!!! It's the same:
You have 0 saved links!


Thanks in Advance
Bye From Italy
Quote Reply
Re: [fabio] MyLinks SQL Available In reply to
What url are you trying to use to add links?
Quote Reply
Re: [PaulW] MyLinks SQL Available In reply to
Read private message.......


Thanks in Advance
Bye From Italy
> >