Gossamer Forum
Home : Products : Links 2.0 : Customization :

"SEMI"-COOKIE "MyLinks" Mod

(Page 2 of 3)
> > > >
Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Hi Paul,
I have tested it and it works great. Also for my first question, does this store the users e-mail address into the newsletter so we can send them e-mail or no. Thanks for the great mod.
Paul

Hot Web Hosting
Low cost web hosting:
http://www.thehotweb.net/webhosting
Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Okay, fine. I understand now, however, still uses cookies, which is confusing by the title.

Regards,

Eliot Lee
Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Thanks Junko,

It seems then that it is similar to your version 2x.

My version stores the username and password in a cookie but stores the link ID's in a text file but also creates a file with the username and encrypted password for verification when they login and to compare the value of the cookie again when adding/deleting, so the cookie can't be manually created to hack the mod.

Does it work for you Junko?

It would be good if those who can get it to work would come forward as well as those who can't.

It is currently working for myself, Ed, hacker and Glennu as I mentioned but not it seems for Eliot.

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Hi Eliot,

Glad you understand now. I've changed the title. (while I think of a better one Smile)

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Hi Paul,

Yes I'm currently working on getting it to add the email address to email.db - it shouldn't take too long and will be optional. ie you can just turn it "on" or "off"

$email_add_db = 1; is on.
$email_add_db = 0; is off.

You can add that to links.cfg

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Hi,

OK it will now log emails to email.db

Would you want to be able to set this feature as administrator or have a check box on the sign up page saying "subscribe" ?

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
OK, its works for me now. Did you make any changes to it? I am now on my home computer, but I will try it on the school ones again tomorrow!

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Yup - I applied a suggestion by Glennu.

It was a cookie problem - seemed to work for some, not others...

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Great. How long will it be before it is ready for public release out of interest?

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Hehe, don't be ashamed to say you want to use it for your site...I don't mind Smile.

I need to neaten up the code and make a few changes here and there and it will be ready.

I wasn't sure that anyone wanted it really as it is only hacker that has shown an interest in getting a copy.

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Yeah well, it would go nicely with my hosting directory site Wink

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
I've added a nice little touch so it will show your name on the main page - eg "Andy's Saved Links:" - simple but effective.

http://www.cyberwhispers.com/search/track_reg.cgi

I removed all user files when I updated the script so you will have to register again if you want to view the new feature or it will give an error saying "User database doesn't exist"

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Nice little feature Cool

Another idea. How about a password retreval option? Maybe they have to provide an e-mail address, and then if they forget the password it is emailed to them?

Just an idea Wink

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Yeah I was in the middle of doing this this evening but ran into trouble.

The password is encrypted for storeage in the database file, however when they need to retrieve it they will want it in plaintext, but the encryption is irreversible so I got stuck.

The only way I can think of to get around it is to store a plaintext copy inth database too. It is less secure though.

But when you login, the cookie lasts for years (literally), so there should be no reason to have to login again or retrieve your password, unless you delete all your cookies.

I will work on a solution over the next few days (unless anyone can think of a way).

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Okay...it seems that with the latest fixes...it works with Netscape 4.6 and 4.73, don't have access to Netscape 6.0 at the office, so shall see when I get home. Also works with IE 4.0 and 5.5.

Nice job...although if you want to make this a truly robust feature, you might want to consider the following:

1) Logout feature..although not a hugh priority since most people ignore this anyway...
2) Spanning (didn't seem to span when I added 5 links...may be you have it working at some number)

Regards,

Regards,

Eliot Lee
Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Phew thats a relief...Im glad you got it working mainly for the safety of my hair again...lol

Fingers crossed for when you get home....

Yeah thanks for the pointer, I will try out some spanning.

I may try something like:

List All | 5 per page | 10 per page

....or something like that, so the user has an option.

Once I am sure it is running smoothly, I'll start adding features. The code is still a little messy too.

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Added logout feature. Working on spanning.

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Hi again Paul,
Thanks for adding the e-mail feature, this will help me out a bit with my mailing list. 1 problem is, though it might just be my computer, the demo does not remember my information that I used yesterday. It simply returns to the signup page. Well actually now it says an error has occured, just like the one eliot had.
Thank You,
Paul

Hot Web Hosting
Low cost web hosting:
http://www.thehotweb.net/webhosting
Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Hi, sorry about that, it isn't an error.

What happened was I updated the script last night so deleted all the user information to start fresh so that is why you are being asked to sign up again. If you re-sign up it will be fine.

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
A couple of new features

http://www.cyberwhispers.com/search/track.cgi

Show all links or newest 5.

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Hi Paul,
Here is the error I get, it does not for a user name, or to signup for an account. I did load the form once, didn't sign up, came to signup and here is the error I get:
User database doesn't exist. Please contact support@cyberwhispers.com.
You could try logging in again here
Do you think you are setting up the cookie too early (on the form and not once the people signup).
Thank You,
Paul

Hot Web Hosting
Low cost web hosting:
http://www.thehotweb.net/webhosting
Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Hi,

As I said you will need to re-sign up. You have not done that because I've just checked.

Go here and sign up again and the cookie will be reset...

http://www.cyberwhispers.com/search/track_reg.cgi

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
Hi Paul,
Sorry I was going to the wrong URL. I was going to track.cgi and thought that you could sign up there.
Thanks,
Paul

Hot Web Hosting
Low cost web hosting:
http://www.thehotweb.net/webhosting
Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
OK I've added some cool new features to the mod. The users now have the choice to show all links on one page, they can view the 5 newest saved links or they can span the links at 5 per page.

Try it out.....

http://www.cyberwhispers.com/search/track.cgi

Hope you like it!

I would like to give the administrator the option to set the spanning limit per page -ie 5 or 8 or 10 or whatever but I think 5 is a good global number and so I built it into the code.

I may add another feature that lets the user specify which links they want to view - kind of like a mini search.

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: NON-COOKIE "MyLinks" Mod In reply to
For those interested here is the spanning code - can anyone think of improvements?

Code:
foreach (@data) {
next if ($_ !~ /\d+/);
$i++;
chomp $_;
}

if (($i > 5) && ($i < 11)) {
$int = int($i / 5) + 1;
} else {
$int = int($i / 5);
}

$nm = 0;
while ($nm++ < $int) {
$next .= "<a href=\"$db_cgi_url/track.cgi?span=$nm\"><font size=2>[Page $nm]</font></a>";
}

$span = $IN->param('span');

if ($span == 1) {
$count = 0;
while ($count++ < 5) {
next if ($data[$count] !~ /\d+/);
my (%rec) = &get_record($data[$count]);
$saved .= &site_html_track_link(%rec);
}
} else {
$min = ($span * 2) + 1;
$max = ($span * 5) - 1;
for ($_[$min]..$_[$max]) {
next if ($data[$_] !~ /\d+/);
my (%rec) = &get_record($data[$_]);
$saved .= &site_html_track_link(%rec);
}
}
Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

> > > >