Gossamer Forum
Home : Products : Gossamer Links : Discussions :

simple questions?

Quote Reply
simple questions?
how can i change the way the categories look on the main page? which script does that?

i noticed when you add a link from the admin. it does not have an id#===> it's not necessary anymore?
also you can add more than one category but which one consider the main one and which one the alt one?

anyone done search this category only mode for linksql 2.03?

Quote Reply
Re: simple questions? In reply to
>> how can i change the way the categories look on the main page?
>> which script does that?

Edit the subcategory.html


>> i noticed when you add a link from the admin.
>> it does not have an id#===> it's not necessary anymore?

ID's are generated automatically. No reason to edit them.


>> also you can add more than one category but which one consider
>> the main one and which one the alt one?

As of 2.0.3 all categories are created equal. The first one found
is the one listed in the searches, some discussion has been undertaken
to allow picking one as "main".

>> anyone done search this category only mode for linksql 2.03?

This is built in. Check the default template set, but:

Code:
<form action="<%db_cgi_url%>/search.cgi" method="GET">
<h2>Search</h2>
<div class="margin">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td><strong class="search">Looking for something in particular?</strong></td></tr>
<tr><td><input type="text" size=15 name="query">
<input type=submit value="Search!">
<%if category_id%>
<input type="radio" name="catid" value="" checked> the entire directory
<input type="radio" name="catid" value="<%category_id%>"> only this category
<%endif%>
</td></tr>
<tr><td><small class="more"><a
href="<%db_cgi_url%>/search.cgi">More search options</a></small></td></tr>
</table>
</div>
</form>
PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: simple questions? In reply to
In Reply To:
ID's are generated automatically. No reason to edit them
in links2 if i'm adding a link in the admin and someone submit a site at the same time both get the same id# which is a problem. did they fix it in linksql? there is noway this can happen in linksql?

Quote Reply
Re: simple questions? In reply to
This happens to you a lot?

The chances of that are pretty slim I would say.....

Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Quote Reply
Re: simple questions? In reply to
it's very slim but once it happen it's a problem. does it happen in linksql? how can i know it happened?
how can i fix it?

i like to change add.cgi offen to stop auto submitter from adding my site to their list so i do not end up wasting time deleting junk links. is it necessary to do so since they added the login feature?
if it's necessary how can go about doing it in linksql?
thanks

Quote Reply
Re: simple questions? In reply to
It's not possible in LinkSQL to get the same ID on two links. The reason is in MySQL itself, it's not possible for a "unique" field to have the same value.



PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: simple questions? In reply to
one more little question. i rememeber you "pugdog" added a mode where if search fails it can be redirected to altavista.cgi or any other open directory script.
how can i do the same thing in linksql?
you hacked search.cgi. of course i could do a meta refresh but yours is much better

Quote Reply
Re: simple questions? In reply to
No.... I didn't do that. I had a search box at the end, where on the SearchError template it would offer you the ability to click on the other engines, with the term pre-loaded.

There was a Maxcom script that did a search of ODP and linked to Amazon, but it was a poor hack. The commercial version I never tested, and I wouldn't touch the Anaconda scripts for anything.

The new spider will allow you to check the spidered sites if no hits show up on your Links directory, but that is still under development by GT.



PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: simple questions? In reply to
i keep remembering modes i added to links2. i think this is the last one:
links are ordered by alphapitical order. did anyone make a random order of linksql everytime you build
or any other order. people who notice it start changing their site's title to "a" or to a number

Quote Reply
Re: simple questions? In reply to
here is the code to redirect to altavista in link2 (search.cgi). since you are familiar with linksql maybe you can come up with the solution:

# Word is too common, don't try and sort it, can cause problems.
if ($numhits == 0) {
$redir = $in{'query'};
$redir =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("%%x",ord($1))/eg;
print "Location: http://www.yourDomain.com/search/altavista.cgi?query=$redir\n\n";
}

i think you need to modify it to work for linksql and replace it here:
# Return if no results.
unless ($link_count or $cat_count) {
return { error => Links::language('SEARCH_NOLINKS'), term => $term };
}

please note the code provided is not mine. i do not rememeber the person name though