Gossamer Forum
Home : Products : Links 2.0 : Customization :

Links Sucks!!!

(Page 2 of 3)
> > > >
Quote Reply
Re: Links Sucks!!! In reply to
ok.. i added that plus more.. Smile

go to the site
Quote Reply
Re: Links Sucks!!! In reply to
Hi Widgetz,

I must say, I a very impressed with your scripting skills.

I think I will wait until all the goodies you alluded to are complete Smile

Mic
Quote Reply
Re: Links Sucks!!! In reply to
Jerry,

Did you remove any modifications from your last version? I modified search.cgi according to your new instructions. When I search the whole site, everything's fine. But if I search in the current category only, I always get:

Quote:
Search Failed

Error: no matching records
Quote Reply
Re: Links Sucks!!! In reply to
HMMMMMMM!!

I changed my mind and was just about to install the mod. Perhaps, I should wait a bit.

Mic
Quote Reply
Re: Links Sucks!!! In reply to
i changed it so that if the link isn't in that category it will decrease the total by one.. the new mod replace a whole bunch that the old mod replaced..

post your search.cgi in plan text so i can look at it..

jerry
Quote Reply
Re: Links Sucks!!! In reply to
This is my modified search.cgi:

Code:
Code removed; problem solved. Smile

Thanks for your help, Jerry.

[This message has been edited by t_dog (edited July 14, 1999).]
Quote Reply
Re: Links Sucks!!! In reply to
Hmm... This is very strange.

You remember that your previous version of search.cgi was working perfectly for me except for displaying other categories in the results? Now even that version doesn't work. Whenever I search within the same category, it gives me category results, but 0 links?!

I did not change anything since yesterday. I only added two links and re-built.

Did I do something really stupid? Or could it possibly be your mod?
Quote Reply
Re: Links Sucks!!! In reply to
Sorry, Jerry.

It was my mistake. I screwed up in the search form part. I had a hidden field with the name of "category" and value of "All" and a checkbox with the name of "category" and a value of "<%category_name_escaped%>". I thought that when you check the checkbox, the value "All" of category would be replaced with "<%category_name_escaped%>". I changed it back to a dropdown menu and it works. But it still displays other categories int the results, though.

[This message has been edited by t_dog (edited July 14, 1999).]
Quote Reply
Re: Links Sucks!!! In reply to
to fix that you can just forget about the hidden field ..

just put a checkbox for the category..

the value has to be $category_name_escaped

it checks to see if the field category exists.. if the checkbox is checked.. it does.. and the category equals the value of the checkbox.. otherwise.. it equals All.. Smile

hope that helps
Quote Reply
Re: Links Sucks!!! In reply to
the new version i made yesterday.. (well i made the script yesterday.. didn't i?) hehe.. well the version i made after the first version still displays categories..

let's say.. you go into the category hardware.. it won't display "hardware" in the results.. but it will display "hardware/pc" something like that..
Quote Reply
Re: Links Sucks!!! In reply to
Hmm...

On my site, if you are in the category "hardware" and you search for "pc", both "hardware/pc" and "software/pc" will show up.

"Hardware" and "Software" are parallel categories.
Quote Reply
Re: Links Sucks!!! In reply to
did you make any changes? cause the value of $catsearch will equal Harware/PC and it searches for links that the categories START in Hardware/PC and obviously Software/PC does not begin with Hardware/PC.. Smile

Jerry
Quote Reply
Re: Links Sucks!!! In reply to
No. I even took the original search.cgi from link2.zip and applied your mod again. Same results.

Try and search for "free" in http://freesources.com/...s/Access_Statistics/ . You'll see what I mean.
Quote Reply
Re: Links Sucks!!! In reply to
oh no! i'm so stupid! Smile

i had thought you meant the category build_clean that displays on top of each set of links Smile

brb with a new release.. hehe

jerry
Quote Reply
Re: Links Sucks!!! In reply to
hmm.. it's really strange.. but no matter what my categories just never show up.. lol

even if i type in the category name in the search.. hehe.. must be a mod that i did a long time ago and forgot.. cause i don't want any categories to end up in my searches..

anyways... find this:

Code:
foreach $category (@category_results) {
if ($nh == 1) {
$cat_clean = &build_clean($category);
$linked_title = &build_linked_title ($category);
$category_results .= qq|<li>$linked_title\n|;
}
$cat_hits++;
}

change to this:

Code:
foreach $category (@category_results) {
if ($nh == 1) {
if ($catsearch eq "All" &#0124; &#0124; $category =~ /^$catsearch/) {
$cat_clean = &build_clean($category);
$linked_title = &build_linked_title ($category);
$category_results .= qq|<li>$linked_title\n|;
$cat_hits++;
}
}
}

btw.. change the "&#0124; &#0124;" so it doesn't have a space in the middle....

tell me if it works.. i have no clue if it does.. just seems right to me..
Quote Reply
Re: Links Sucks!!! In reply to
i just figured out another bug.. i'm not going to fix it in awhile cause i want to figure out why my categories don't display Smile

anyways.. if there is no links found in the category and there is a category found.. it will say no matching records..

Quote Reply
Re: Links Sucks!!! In reply to
Yep! Smile

That sure works. You can check it out for yourself.

<edit>
Didn't see your last post. You posted as I was typing this.

I went back and checked; you are right, that bug does exist.
</edit>

[This message has been edited by t_dog (edited July 14, 1999).]
Quote Reply
Re: Links Sucks!!! In reply to
QUESTION!

does the categories only show up if there is a link inside of it or something?

Smile

jerry
Quote Reply
Re: Links Sucks!!! In reply to
Not sure what you mean.

I tried to search for the title of an empty category, and it didn't show up in the results.

You can try it at my site. There are a few empty categories.

http://freesources.com/Webmaster_Resources/
Quote Reply
Re: Links Sucks!!! In reply to
Ok ok,

you guys are loosing me big time.

Is the mod ready or need more work Smile

Wondering??

Mic
Quote Reply
Re: Links Sucks!!! In reply to
Jerry's mod is working fine. The only problem is when you search in the current category for the title of an empty category, that empty category does not show up. Not that important.

[This message has been edited by t_dog (edited July 15, 1999).]
Quote Reply
Re: Links Sucks!!! In reply to
Thanks t_dog,

Will try to install it today.

mic
Quote Reply
Re: Links Sucks!!! In reply to
hey t_dog.. i finished the bug fix yesterday..

go to the web page Smile

http://www.widgetz.com/links_mods/

i finished it really fast.. but i went offline and went to sleep right after.. hehe

jerry
Quote Reply
Re: Links Sucks!!! In reply to
of course it's not "complete" yet..

it does what everyone wants it to do.. but i am going to explore like yahoo or download.com and see what they do with it.. and input it into mine.. hehe

jerry
Quote Reply
Re: Links Sucks!!! In reply to
Hey Widjetz,

Ever think about writing a banner tracking script for links. You know, like Yahoo and Download.com Smile

One where advertisers could view their individual online stats for their banner in a password protected area.

I have a really good starter banner script that I incorporated with links, but it is not password protected for individual advertiser stats.

t_dog, you stay out of this Smile

mic
> > > >