Gossamer Forum
Home : Products : Links 2.0 : Customization :

MyLinks error

Quote Reply
MyLinks error
I have a problem with MyLinks...there is the one "dead" link at the top of the page. I can add and delete links fine, but that one is still there...the template is as follows:

<%ifnot links%>
No Hosts in MyHosts!
<%endif%>

<%if links%>
<%links%>
<%endif%>

This is my cookie info:
# Cookie information.
my %cookie = (
name => 'MyLinks',
expires => '+3y',
path => '/',
domain => '.hostchecker.hypermart.net'
);

The URL is http://hostchecker.hypermart.net, can anyone help me out?

I appreciate it!
Quote Reply
Re: MyLinks error In reply to
Have you re-built your directory after deleting this "dead" link from your directory?

Regards.

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: MyLinks error In reply to
Yes, I did.

I don't know if you checked it out on my site, but it says "Unknown Tag: Title" "Unknown Tag: ID", etc.

I cannot figure out how this would be there and the rest still work.

I have not made any modifications to mylinks.cgi, any other ideas?
Quote Reply
Re: MyLinks error In reply to
I DID check it out...and I was able to add, delete, and add other links to MyHost page.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: MyLinks error In reply to
I just cleared the cookie and it seems to be working alright now.

But it doesn't work in Netscape (newest version). I know there has been some talk about compatibliity and cookies, but I didn't find it(I have been getting an Internal Server Error when trying to search the forum in the last 10 mintues).
Quote Reply
Re: MyLinks error In reply to
Nope...it doesn't work in Netscape 4.05.

The problem could be with the sub-domain that you have in the hypermart.net server. May be other Hypermart users will be able to shed some light on this subject.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: MyLinks error In reply to
If there is anyone that would be willing to post their templates for My Links, It would be greatly appreciated. I have spent 4 evenings and nearly 15 hours trying to get this together (I'm ashamed to say this, but it's true) and cannot seem to get them all together. The threads are just too spread out and confusing for me to put it all together.

------------------
Jimmy Crow
www.homewithgod.com
Quote Reply
Re: MyLinks error In reply to
If it's of interest to you: I wasn't able to add, see or whatever do with a MyLink. It's not been working at all (28/3 , 9:05 CET, NS4.7).

Denis

Just tested it also with IE 5.0. It works.
What do you have in your mylinks.cgi as domain? Under # Cookie information. it must be 3 instances (for example www.yahoo.de to work with NS).

[This message has been edited by Denis (edited March 27, 2000).]
Quote Reply
Re: MyLinks error In reply to
I think I'm almost there. I have my templates made the way I think they should be and installed mylinks.cgi It builds with no error messages, but two things are happening.
1.) During the build, it also builds and prints the actual page on the build results page in the admin
2.) The cookie seems to be setting, but it is not printing any output on the pages so I am not sure if it is actually setting or not. I am thinking that it is setting the cookie because when I go back and click on the same link I get the error message that it is already stored.

I have uploaded the codes that I have added if someone would like to see what I have done wrong

http://www.homewithgod.com/test/nph_build.txt
http://www.homewithgod.com/test/links.txt
http://www.homewithgod.com/...e_html_templates.txt
http://www.homewithgod.com/test/mylinks.txt
http://www.homewithgod.com/test/templates.html

I have some test links at
http://www.homewithgod.com/...es/Arts_and_Culture/

Thank You

------------------
Jimmy Crow
www.homewithgod.com
Quote Reply
Re: MyLinks error In reply to
You should not edit the nph-build.cgi for MY Links.

If I get a chance...I will check out your other files.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: MyLinks error In reply to
Thanks a million Eliot. I'll take those codes out

------------------
Jimmy Crow
www.homewithgod.com
Quote Reply
Re: MyLinks error In reply to
Denis,

He posted that information in his first Post...

Quote:
This is my cookie info:
# Cookie information.
my %cookie = (
name => 'MyLinks',
expires => '+3y',
path => '/',
domain => '.hostchecker.hypermart.net'
);

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: MyLinks error In reply to
jcrow,

The problem I see is with your sub site_html_myhome routine...You should also have the following codes:

Code:
my $tags = shift;

And also:

Code:
%$tags,

So, the complete sub should look like the following:

Code:
sub site_html_my_home {
# --------------------------------------------------------
# This routine shows the layout of the MY Link Home Page

my $tags = shift;
print &load_template ('myhome.html', {
%$tags,
%globals
});
}

Also, your domain variable is not set correctly in your mylinks.cgi script...

It should be the following:

Code:
domain => '.homewithgod.com'

Also, the <%prev%> and <%next%> tags do NOT work in the myhome.html template file. You should only use the following codes:

Code:
<%if span%>
<%span%>
<%endif%>

Same thing in myadd.html file. There are no spanning results in this file. It shows one link at a time.

In the my_add.html file, you have to put the field tags for records, like the following:

Code:
<a href="<%URL%>"><%Title%></a>

The <%links%> tag is not defined for the myadd.html file.

Same thing in the mydelete.html file...You have to put individual field tags...again...the <%links%> tag is NOT defined for this template file.

Again...the spanning result tags <%span%> are only used in the myhome.html file...not in any of the other template files.

Hope this helps.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: MyLinks error In reply to
istudios,

Have you figured out the problem?

Regards,


------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: MyLinks error In reply to
Eliot, I can't thank you enough.
I think everything is working. I have checked with IE5 and Netscape 4.7 and they seem to be working. I'm going to check with some older browsers later today.

BTW I had to put the www back in the domain for it to set the cookies, must have something to do with my server.

Thanks Again!

------------------
Jimmy Crow
www.homewithgod.com
Quote Reply
Re: MyLinks error In reply to
Well, you will find that it will not work on all browsers if you have the www in the domain variable...but I will let you figure that out.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: MyLinks error In reply to
My domain is as follows:

domain => '.hostchecker.hypermart.net'

Still not working on Netscape.
Quote Reply
Re: MyLinks error In reply to
Eliot,
You certainly know more about this than I do. I went back and took out the www and it would not set the cookie in IE, but it would in Netscape. I had selectively deleted the cookies, so I wouldn't have to type in new passwords everywhere, I probaby have my cookies screwed up or missed one for IE so I'm going to go back and delete all of them and see if that works.

Thank you for your help.

------------------
Jimmy Crow
www.homewithgod.com
Quote Reply
Re: MyLinks error In reply to
Yep, that was where my problem was. It was was working all the time for everyone else, just wouldn't set it on mine. I deleted all of my cookies and IE5 now sets the cookie without the www. Thanks for the information and all your help on this Eliot.

------------------
Jimmy Crow
www.homewithgod.com

[This message has been edited by jcrow (edited March 29, 2000).]
Quote Reply
Re: MyLinks error In reply to
istudios,

As I stated before, I believe that the sub-domain address is causing the problem. You may not be able to use this script on hypermart or any other hosting company that creates sub-domain accounts.

jcrow,

Glad you figured it out and you're welcome.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums


[This message has been edited by AnthroRules (edited March 29, 2000).]
Quote Reply
Re: MyLinks error In reply to
istudios..

you could try using

.hypermart.net

but that would mean all the other hypermart sites using mylinks.cgi would get your links..

hypermart doesn't allow for www.subdomain.hypermart.net that is why you can't use it that way..

so you should try .hypermart.net and change the cookie name to your subdomain or something

------------------
Jerry Su
Links SQL User
------------------
Quote Reply
Re: MyLinks error In reply to
Tried out just the ".hypermart.net" and it doesn't work(at least with IE). No links show up. I changed it back to subdomain and it works. So guess that idea is no good.

I really appreciate the help though.

THANKS!
Quote Reply
Re: MyLinks error In reply to
istudios,

It seems to work fine now.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums