Gossamer Forum
Home : Products : Links 2.0 : Customization :

Links Mod

(Page 1 of 2)
> >
Quote Reply
Links Mod
Can anybody make a mod that allows you to click a button next to a link and it is added to a special page that will hold all the selected links. Probally needs cookies and javascript.

Here's a site that uses it; when you click on the add button it adds the links ID to something and when you go to the page that displays your links (mysweeps) it reads what ID's you have selected and generates the page.
http://www.online-sweepstakes.com/

If somebody wants to make this mod I'll reimburse you some how, I really need this thing for my site.

Thanks
Shane
Quote Reply
Re: Links Mod In reply to
this is quite simple..

all you would need is the script that would modify the cookie.. and then another script to read the cookie and display each one.. i could make it..

if you have icq.. 1*7*1*4*4*0*4*9

hehe.. i put those *s cause i gotta stop getting those annoying ICQ spams!

jerry
Quote Reply
Re: Links Mod In reply to
I emailed loopy but he didn't email me back, probally to busy modifying his site to offer it as a mod yet.
Quote Reply
Re: Links Mod In reply to
I think loopy made this mod. Have you contacted him about it yet?
Quote Reply
Re: Links Mod In reply to
If you do get it, I wouldn't mind getting a copy of it too :-)

Thanks!
Adam
Quote Reply
Re: Links Mod In reply to
Is anyone interested in creating this mod for money, or does anyone know anyone who will? I really need to have this for my site.

Thanks
Shane
Quote Reply
Re: Links Mod In reply to
i can do this maybe today or next week..

email me.. jsu7785@email.com

also.. give me more details of things you want

jerry
Quote Reply
Re: Links Mod In reply to
 http://www.pdamania.com/cookie.html

http://www.pdamania.com/cookie.cgi

just 2 little simple things i've been doing in the last hour..

you can view source and take my cookie code if you want..

but the cookie.cgi file is also just a simple thing.. using the ID numbers you can easily use get_record in links and get the links info.. so it's really easy..

i'll finish cookie.cgi tommorrow.. i have no time right now.. gotta sleep.. school til 3:00 tommorrow.. so cya!

jerry
Quote Reply
Re: Links Mod In reply to
Jerry,

Pretty decent program. However, the cookie.cgi did not run in IE4.0.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Links Mod In reply to
err.. well it's only a 3 line perl script Wink

i beleive it has something to do with the content-type..

can't ie read .txt pages??

jerry
Quote Reply
Re: Links Mod In reply to
There appears to be one problem with the cookie java script. When you either delete a single site or all, you cannot add more sites - you have to exit the current browser session and start over. Also, would it not be better to preserve the cookie so that surfers could maintain the list from browser session to browser session.

Other than that, great java scripting! I replaced my rather awkward java script with yours. I already wrote a script that also retrieves the Title and URL and then tablelizes the results when you call the script.


Dan Smile
Quote Reply
Re: Links Mod In reply to
yea.. when i do javascript it seems to work for netscape more than it does for IE Smile

hehe.. anyways.. it won't let you add an ID you already added (well that you haven't deleted).. and it won't let you delete a ID that isn't in the cookie..

jerry
Quote Reply
Re: Links Mod In reply to
i just realized i uploaded a bad copy of cookie.html.. the delete all made another cookie with no name or value Wink

try again now..

jerry
Quote Reply
Re: Links Mod In reply to
Hi Jerry:

The following is observed with MSIE 5:

1. When you delete a single link, you can no longer add links - the same one or any other. For example, add 1, delete 1 and then add 2 => 2 not added.
2. When you use 'Delete All', you get the following error when you then attempt to add a link:

Line: 13
Char: 3
Error: 'original' is not an object
Code: 0

The error does not occur when you initially use 'Delete All.'

Dan Smile

Quote Reply
Re: Links Mod In reply to
once again.. i uploaded a newer copy.. took me A LONG TIME... but oh well.. i am proud of the add routine.. as it is REALLY short and doesn't use a for loop this time..

but the delete routine isn't that good.. too many things to think about.. first there is.. the number being the first one in the list.. then a middle number.. then the last number..

i needed 3 lines to take care of that... i wonder if there is anything shorter... anyone?

jerry

[This message has been edited by widgetz (edited October 18, 1999).]
Quote Reply
Re: Links Mod In reply to
Hi Jerry:

Progress Report: All MSIE bug issues are resolved. I successfully tested it on MSIE - and I assume it fully works on Netscape as that is your browser of choice.

Good work!

Dan Smile
Quote Reply
Re: Links Mod In reply to
cool.. only if i were more efficient with javascript Wink

i am going to redo the script in perl.. cause i rather have some confirmation page that says "added to favorites" or "already in favorites" and same for delete.. and then have it auto reload back to the page using the referer variable..

jerry
Quote Reply
Re: Links Mod In reply to
Or you could keep it simple and confirm in a small new window or better yet, a java script alert box.

Dan Smile
Quote Reply
Re: Links Mod In reply to
I was even thinking of making a .wav sound play when they added a link.

By the way:
http://www.pdamania.com/cookie.cgi
doesn't work for IE 4.0 and 5.0 but works in Netscape 4.0 and 3.0. IE tries to download the file for some reason. Do you guys notice that to or is just me?

Can't wait to see the final product jerry, it's pretty cool! Do you think the cookie data can be held for a longer period?

Shane

[This message has been edited by shane1800 (edited October 19, 1999).]
Quote Reply
Re: Links Mod In reply to
cookie data expires when they close browser.. but that's cause i didn't set a expire date.. i didn't want to for the demo..

jerry
Quote Reply
Re: Links Mod In reply to
any news?
Quote Reply
Re: Links Mod In reply to
Could someone post the perl code for this? I'm interested... jerry, do you have the confirmation code done? It might be good if it popped up a messagebox that said "link: <%Title%> was added to your <%Site_Title%> hotlist"
Also, i think that if a popup window to show the links was used, the delete buttons should be there, not on the main window (could get a bit TOO busy, with reviews, ratings, descriptions, etc., etc., etc.)

--Tom
Quote Reply
Re: Links Mod In reply to
Very cool. Now all you would need to do is incorporate this into a search function to display the links selected at startup (er, I mean through a redirect if the cookie exists in index.htm).
Quote Reply
Re: Links Mod In reply to
Something else you might want to keep in mind... a server can only put up to 20 cookies on your computer... (unless this has changed) so you may want to further limit the user to 10 or 15 so you have extra room for more cookies...

--tom
Quote Reply
Re: Links Mod In reply to
this will be great
> >