Gossamer Forum
Home : Products : Links 2.0 : Customization :

MY LINKS

(Page 2 of 4)
> > > >
Quote Reply
Re: MY LINKS In reply to
i went to your site and saw that rotate thingy.. one of the things was

"Nude Beaches in France"..

geez.. 8^P

i think most of those won't return links... cause most are in forms of questions.. like

"how many licks does it take to get to the center of a tootsie roll pop"

hehe

you're templates are pretty much mine Smile

just with your background and stuff.. i think i'll go and pick out all the rate templates from links 2.0 and just change the text..

thanks!

jerry

[This message has been edited by widgetz (edited November 26, 1999).]
Quote Reply
Re: MY LINKS In reply to
Yeah, i was really into looking at how it worked, so i just took the source of your pages, and copied put some things into my templates. I'll probably change them around a bit. It probably is good to start with something somwhat less extravagant then my site. Easier for others to edit.
Quote Reply
Re: MY LINKS In reply to
Bmxer Hi,
is that your site at http://lookhard.hypermart.net ? if it is, tell my how you don't have numlinks on your home page but you have in categories, eg Computes (5) . i beed working hard to get this done but no luck, tell my how to do it ?
thanks
Rimvis
Quote Reply
Re: MY LINKS In reply to
Um, ok, find this in nph-build.cgi
# Store all the category html info in $category.
if ($#{$subcategories{$cat}} >= 0) {
$category = &site_html_print_cat (@{$subcategories{$cat}});
}

Change &site_html_print_cat to &site_html_print_sub_cat

then in site_html_templates.pl, copy and paste your &site_html_print_cat again, so you have two. Rename the second
sub site_html_print_sub_cat {
then on the first one, if you know how to remove numlinks, do so, and on the second one, leave it on. So now you can control the way homepage categories look and subcategories look.
Quote Reply
Re: MY LINKS In reply to
the easiest way is just

Code:
$output .= qq| ($numlinks)| if ($cat m,/,);

hehe.. but that's dumb perl.. Smile

jerry
Quote Reply
Re: MY LINKS In reply to
I did it that way for other reasons, also, Smile I change the url of subcats to and, but on the homepage they are displayed with &
Quote Reply
Re: MY LINKS In reply to
well.. then you can add more dumb perl Smile

Code:
($cat =~ m,^[^/]+$,) and $category_name =~ s,and,&,g;

hehe Smile

saves you a whole subroutine that looks almost the same..

also..

Quote:
Yeah, i was really into looking at how it worked, so i just took the sou

so you wanted to learn cookies, eh? Smile for some reason i got this sense in the back of my head your gonna come out with a mod to do "Personalized Search Results".. Smile or something like that.. well anyways.. i'm gonna do it with Links SQL.. just not using cookies ;P

jerry
Quote Reply
Re: MY LINKS In reply to
No luck Frown
Bmxer's version I could not do it, it looks different on my site_html_templayes.cgi , i’m using non –English links,
And jerry could you tell my where those two lines goes?
Thanks

Quote Reply
Re: MY LINKS In reply to
site_html_templates.pl

this line:

Code:
$output .= qq|<dl><dt><strong><a class="link" href="$url">$category_name</a></strong> <small class="numlinks">($numlinks)</small> |;

change to

Code:
$output .= qq|<dl><dt><strong><a class="link" href="$url">$category_name</a></strong> |;
$output .= qq|<small class="numlinks">($numlinks)</small> | if ($cat =~ m,/,);

you only want it to display on subcategories right?

jerry
Quote Reply
Re: MY LINKS In reply to
Oh, that would be good code for my add from certain categories or get an error mod Smile the cat =~ m,/, part, yeah, I'm looking into cookies. I modded a mediocre guestbook to be a modbook similiar to UGB - Ultimate Guestbook and i am now putting in cookie stuff. Good learning.

[This message has been edited by Bmxer (edited November 26, 1999).]
Quote Reply
Re: MY LINKS In reply to
There seems to be a small bug with the MY Links script. The cookies are pulled and displayed. However, when I delete the links from the or delete all, the URLs are deleted, but the extra stuff, like the description and other tags are still listed.

Check it out for yourself at the following page:

www.anthrotech.com/resources/Applied_Anthro

Click on Bookmark It!. See what happens.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: MY LINKS In reply to
I don't know if you meant this too, but i added two links to mine, and i all of a sudden had 9, unless of course your cookie name is MyLinks, but i only had 2 in from my MyLinks setup too.
Quote Reply
Re: MY LINKS In reply to
I also noticed that duplicate sites are added. I also noticed that sites that I never clicked on are being stored in the cookie file. There seems to be some bugs with this script.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: MY LINKS In reply to
Not on my part. I didn't even know this mod was being developed until the last couple of days. And the installation was smooth. Did you change the file, and if so, can you show an url to some source code?
Quote Reply
Re: MY LINKS In reply to
I did not change the mylinks.cgi script AT ALL.

I also kept the same codes in the site_html_templates.pl file.

If you want to take a look at my templates, here they are:

www.anthrotech.com/cgibin/wwwvl/templates/my_add.html

www.anthrotech.com/cgibin/wwwvl/templates/my_add_error.html

www.anthrotech.com/cgibin/wwwvl/templates/my_home.html

www.anthrotech.com/cgibin/wwwvl/templates/my_link.html

www.anthrotech.com/cgibin/wwwvl/templates/my_delete.html

www.anthrotech.com/cgibin/wwwvl/templates/my_delete_all.html

www.anthrotech.com/cgibin/wwwvl/templates/my_delete_error.html

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: MY LINKS In reply to
eliot..

your site didn't even save the cookie..

which is weird..

try changing some things in the %cookie hash.. make sure you set the domain as

.anthrotech.com

bmxer.. what's up with your mylinks.cgi?

jerry
Quote Reply
Re: MY LINKS In reply to
ok.. eliot.. i figured out one thing you need to change..

the link to mylinks.cgi must have the www. part in it.. yes it is a weird thing.. but i have no clue why cookies require 2 periods..

now that it sets, i can see what it's doing..

what is your deliminater? please print out the WHOLE line.. it's messing the WHOLE thing up.. the reason you are getting a bunch of stars and blank links is cause a bunch of non IDs are in your cookie.. they are all symbols..

jerry
Quote Reply
Re: MY LINKS In reply to
bmxer..

i am having no problems with yours..

if you give me an example of what it's doing and step by step on how to get it to do what it's doing i'll test it out.. Smile

jerry

i think my keyboard is dyng.. cause when i typ it dosn't pint a lot of the ltters that i type and i DO press on thm...

see i lost four "E"s an "I", a "R", and a few spaces that i had to punch hader.. ANOTHER R! and two moe space.. ANOTHER R!! geez..
Quote Reply
Re: MY LINKS In reply to
ok.. eliot.. your deliminator is '|'

right?

change it to a letter [a-zA-Z]

i think it has to do with splitting and joining with symbols.. i might have to add a line like

$delim = quotemeta "|";

or something..

but like i said before.. if you change the delim to a symbol you can't save as many links to the cookie cause a symbol takes 3 bytes
Quote Reply
Re: MY LINKS In reply to
widgetz,

Hi there. I am using | as my delimiter character. Do you mean that in the link.html file, I have to add

Code:
www.anthrotech.com/cgibin/wwwvl/mylinks.cgi

and also add this same URL to all other places in the other template files where I am linking it???

BTW: I did set .anthrotech.com for the domain.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------




[This message has been edited by Eliot (edited November 26, 1999).]
Quote Reply
Re: MY LINKS In reply to
widgetz,

It now seems to work.

I changed three things:

1) I set the delimiter to A.
2) I renamed the name to simply MyLinks.
3) I changed all the URL references to include www.anthrotech.com.

It works now.

Thanks.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: MY LINKS In reply to
i don't think the name should have affected it.. but oh well..

according the CGI.pm documentation it says that netscape requires at least two periods in the domain name.. no clue why.. but i'd say just do it Wink

ok.. i still don't get why your delim "|" did that.. i used "," before and it's practically the same.. | is %7C and , is %2C.. so it shouldn't have had a problem.. it might have been cause of that quote meta thing i mentioned above.. but oh well.. i'm gonna steal your my_link.html template Wink

jerry
Quote Reply
Re: MY LINKS In reply to
No, Widgetz, I was talking about Eliots when i said that. I went to his site, and saw that it did the adding of sites that didn't exist thing. Mines is running nicely.

Oh, can i see the code u used for the random id, I can't get anything to parse out when i do it

[This message has been edited by Bmxer (edited November 26, 1999).]
Quote Reply
Re: MY LINKS In reply to
This code doesn't bring back anything. I don't know why.
Quote Reply
Re: MY LINKS In reply to
Thanks, widgetz.

Feel free to use any of my template files.

Yes...It would be nice to get the random link to work as well.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


> > > >