okay this makes sense logically to a human (at least it makes sense to this human) but somehow its not makeing sense to the program LOL
basically i have three catigories which are supposed to be on the same level as the whole list in the title_linked navigation - dont ask why i dont make them all subcategories cuz i have to do it this way cuz its too late to redo everything subcategory wise :/
what i need is for the nav to look normal for all categories (ie home : regular category : link) except for these three which i need to look one level higher (ie special category : link )
sub build_linked_title {
# --------------------------------------------------------
# Returns a string of the current category broken up
# by section, with each part linked to the respective section.
my $input = shift;
my (@dirs, $dir, $output, $path, $last, @fields);
@dirs = split (/\//, $input);
$last = &build_clean(pop @dirs);
foreach $dir (@dirs) {
$path .= "/$dir";
$dir = &build_clean ($dir);
if (@fields[$db_main_category] = "Dollar_Trials") {
$output = qq| <A HREF="$build_root_url/Dollar_Trials">$1 Trials</A> :|;
}
elsif (@fields[$db_main_category] = "Cheap_Memberships") {
$output = qq| <A HREF="$build_root_url/Cheap_Memberships">Cheap Memberships</A> :|;
}
elsif (@fields[$db_main_category] = "High_Quality") {
$output = qq| <A HREF="$build_root_url/High_Quality">High Quality</A> :|;
}
else {
$output = qq| <A HREF="$build_root_url">Home</A> :|;
$output .= qq| <A HREF="$build_root_url$path/">$dir</A> :|;
}
}
$output .= " $last";
return $output;
}
anyone have any thoughts on what i am doing wrong here? im sure its something really stupid but i am not a programmer and i dont think anyone has asked for or posted a mod like this before... prolly cuz its a dumb way of doing it but im stuck
Vote Stinky
basically i have three catigories which are supposed to be on the same level as the whole list in the title_linked navigation - dont ask why i dont make them all subcategories cuz i have to do it this way cuz its too late to redo everything subcategory wise :/
what i need is for the nav to look normal for all categories (ie home : regular category : link) except for these three which i need to look one level higher (ie special category : link )
sub build_linked_title {
# --------------------------------------------------------
# Returns a string of the current category broken up
# by section, with each part linked to the respective section.
my $input = shift;
my (@dirs, $dir, $output, $path, $last, @fields);
@dirs = split (/\//, $input);
$last = &build_clean(pop @dirs);
foreach $dir (@dirs) {
$path .= "/$dir";
$dir = &build_clean ($dir);
if (@fields[$db_main_category] = "Dollar_Trials") {
$output = qq| <A HREF="$build_root_url/Dollar_Trials">$1 Trials</A> :|;
}
elsif (@fields[$db_main_category] = "Cheap_Memberships") {
$output = qq| <A HREF="$build_root_url/Cheap_Memberships">Cheap Memberships</A> :|;
}
elsif (@fields[$db_main_category] = "High_Quality") {
$output = qq| <A HREF="$build_root_url/High_Quality">High Quality</A> :|;
}
else {
$output = qq| <A HREF="$build_root_url">Home</A> :|;
$output .= qq| <A HREF="$build_root_url$path/">$dir</A> :|;
}
}
$output .= " $last";
return $output;
}
anyone have any thoughts on what i am doing wrong here? im sure its something really stupid but i am not a programmer and i dont think anyone has asked for or posted a mod like this before... prolly cuz its a dumb way of doing it but im stuck
Vote Stinky