Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Category underscore

Quote Reply
Category underscore
Is there a way to get rid of the underscore that appears in the drop-down menus?

Quote Reply
Re: Category underscore In reply to
In sub build_select_filed in db_utils.pl try replacing:

Code:
foreach $field (@fields) {
$values{$field} ?
($output .= "<OPTION SELECTED>$field\n") :
($output .= "<OPTION>$field");
}
with:

Code:
foreach $field (@fields) {
$field2 = $field;
$field2 =~ s/_/ /g;
$values{$field} ?
($output .= "<OPTION SELECTED>$field\n") :
$output .= qq|<OPTION NAME="$field">$field2|;
}
Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: Category underscore In reply to
Okay, I did this and now when I build the pages the links don't show up (that I added through the admin.cgi). If I go to Check Cat and try to associate the links with a Category, I get a cgi error but the link shows up..