Gossamer Forum
Home : Products : Links 2.0 : Customization :

categories

Quote Reply
categories
what is the file that control the category build in my index.
(not the templte)


Quote Reply
Re: categories In reply to
See the nph-build.cgi file, but be carefull making changes inside this file.

Regards,

Nuno Duque
--------------------
Macau Search Engine
searchmacau.com
Quote Reply
Re: categories In reply to
can u please locate the line that do that,
My categoris are in double table and i whant to show them as single table
10x

Quote Reply
Re: categories In reply to
Actually...for the category layout...you need to edit the sub site_html_print_cat that controls how categories are laid out in both the Home Page and Category pages.

Regards,

Eliot Lee

Quote Reply
Re: categories In reply to
To kipacoil,

If you want to change the category display at the top of the page like this:
from Top : Business & Economy
to Top > Business & Economy

make changes in nph-build.cgi.
from: $output = qq| <A HREF="$build_root_url/">Top</A> : |;
to: $output = qq| <A HREF="$build_root_url/">Top</A> > |;

But if you want to change the category layout see AnthroRules thread.

Regards,

Nuno Duque
--------------------
Macau Search Engine
searchmacau.com
Quote Reply
Thanks, In reply to
Thanks,

Quote Reply
more info please... In reply to
i need to delte all the 'li' tags .. now i don't find the ones that in the search_result page..
I you can please help me..

Quote Reply
Re: more info please... In reply to
link.html

Regards,

Eliot Lee

Quote Reply
Re: more info please... In reply to
sorry but no 'li' tags are there ...
maybe another place?

Quote Reply
Re: more info please... In reply to
i found them in the search.cgi
BUT
how can i show only 10 links in the search rusult?

Quote Reply
Re: more info please... In reply to
In search.cgi found the following lines and change as follow:

Change:
# Set maximum hits -- default to 25.
local $maxhits = 25;
if ($in{'mh'} && (($in{'mh'} == 10) || ($in{'mh'} == 25) || ($in{'mh'} == 50) || ($in{'mh'} = 100))) {
$maxhits = $in{'mh'};
}

To:
# Set maximum hits -- default to 10.
local $maxhits = 10;
if ($in{'mh'} && (($in{'mh'} == 10) || ($in{'mh'} == 25) || ($in{'mh'} == 50) || ($in{'mh'} = 100))) {
$maxhits = $in{'mh'};
}

Regards,

Nuno Duque
--------------------
Macau Search Engine
searchmacau.com
Quote Reply
Re: categories In reply to
Try this to change the number of collums in the category display as follow:

Open site_html.pl (non-templates) or site_html_templates.pl (templates), and go to sub site_html_print_cat.

Change:

my ($half) = int (($#subcat+2) / 2);

To:

$columns = '1'; #number of columns
my ($half) = int (($#subcat+2) / $columns);

Change:

if ($i == $half) {
$output .= qq~</td><td class="catlist" valign="top">\n~;
}

To:

if ($i == $half) {
$output .= qq~</td><td class="catlist" valign="top">\n~;
$i = 0;
}

Regards,

Nuno Duque
--------------------
Macau Search Engine
searchmacau.com
Quote Reply
how 2 delte In reply to
how can i delte the 1 2 3 4 links in the next option that in the result page i only what a 'next page' 'last page'
link

10x alot

Quote Reply
Re: how 2 delte In reply to
Have you installed the Altavista Style Span Pages Mod?
If you installed it just uninstall it, but I think most people like this kind of span pages.

Regards,

Nuno Duque
--------------------
Macau Search Engine
searchmacau.com
Quote Reply
Re: how 2 delte In reply to
no i didn't install it (this problem is only in the seacrh )
can u help me with this line?

Quote Reply
Re: how 2 delte In reply to
Make the modifications you want in search.cgi.

# Then let's go through the pages and build the HTML.
($nh > 1) and ($next .= qq~<a href="$build_search_url?$next_url&nh=$prev_hit">[<<]</a> ~);
for ($i = 1; $i <= int($link_hits/$maxhits) + 1; $i++) {
if ($i < $lower) { $next .= " ... "; $i = ($lower-1); next; }
if ($i > $upper) { $next .= " ... "; last; }
($i == $nh) ?
($next .= qq~$i ~) :
($next .= qq~<a href="$build_search_url?$next_url&nh=$i">$i</a> ~);
(($i * $maxhits) >= $link_hits) and last; # Special case if we hit exact.
}
$next .= qq~<a href="$build_search_url?$next_url&nh=$next_hit">[>>]</a> ~ unless ($nh == $i);
}

Regards,

Nuno Duque
--------------------
Macau Search Engine
searchmacau.com
Quote Reply
Re: how 2 delte In reply to
thanks..
but what do i need to delte to remove the numbers and to still have the << and >>

Quote Reply
Re: how 2 delte In reply to
Just overwrite this in the same place with what you see in your current search.cgi.

# Then let's go through the pages and build the HTML.
($nh > 1) and ($next .= qq~<a href="$build_search_url?$next_url&nh=$prev_hit">[<<]</a> ~);
for ($i = 1; $i <= int($link_hits/$maxhits) + 1; $i++) {
if ($i < $lower) { $next .= " ... "; $i = ($lower-1); next; }
if ($i > $upper) { $next .= " ... "; last; }
(($i * $maxhits) >= $link_hits) and last; # Special case if we hit exact.
}
$next .= qq~<a href="$build_search_url?$next_url&nh=$next_hit">[>>]</a> ~ unless ($nh == $i);
}
# Print out the HTML results.
&site_html_search_results;
}

And if you want to diplay "Next" instead of "[>>]" just change the following:

For Next:
$next .= qq~<a href="$build_search_url?$next_url&nh=$next_hit">Next</a> ~ unless ($nh == $i);

For Previous:
($next .= qq~<a href="$build_search_url?$next_url&nh=$prev_hit">Previous</a> ~);

Regards,

Nuno Duque
--------------------
Macau Search Engine
searchmacau.com