Gossamer Forum
Home : Products : Links 2.0 : Customization :

Real name Category and Directory name

Quote Reply
Real name Category and Directory name
hi,
Anyone have make MOD link20 ?, to have
one field for realname Category and one field for directory name.

i see this on Megalink and how to do on link20


thanks


------------------
Quote Reply
Re: Real name Category and Directory name In reply to
 www.ford-network.at/LLinks

take a look, cu

------------------
www.ford-network.at



Quote Reply
Re: Real name Category and Directory name In reply to
Thanks Bogus,

But I'll to Modify on link20

how to change in Link20

can you help me ?

------------------
Quote Reply
Re: Real name Category and Directory name In reply to
Sorry, i haven't the time to tell you.
The best would be if you take look to the code of my LLinks.

cu

------------------
www.ford-network.at



Quote Reply
Re: Real name Category and Directory name In reply to
Thatīs what the noenglish mod does...
Quote Reply
Re: Real name Category and Directory name In reply to
To have Category Path & Category Real Name

I am modify this line :

in category.def I change
------------------------
# Database Definition: CATEGORIES
# --------------------------------------------------------
# Definition of your database file.
%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Path => [1, 'alpha', 40, 75, 1, '', '^[\w\d/_-]+$'],
Description => [2, 'alpha', '40x3', 500, 0, '', ''],
Related => [3, 'alpha', 0, 255, 0, '', ''],
'Meta Description' => [4, 'alpha', 40, 75, 0, '', ''],
'Meta Keywords' => [5, 'alpha', 40, 75, 0, '', ''],
Header => [6, 'alpha', 40, 75, 0, '', ''],
Footer => [7, 'alpha', 40, 75, 0, '', ''],
Name => [8, 'alpha', 40, 75, 1, '', '']

);
---------------
Now in site_html.pl change
---------------

##########################################################
## Category Listings ##
##########################################################

sub site_html_print_cat {
# --------------------------------------------------------
# This routine determines how the list of categories will look.
# We now use a table to split the category name up into two columns.
# For each category you can use the following variables:
#
# $url : The URL to go to that category
# $category_name : The category name with _ and / removed.
# $category_descriptions{$subcat}: The category description (if any).
# $numlinks : The number of links inside that category (and subcategories).
# $mod : The newest link inside of that category.
#

my (@subcat) = @_;
my ($url, $numlinks, $mod, $subcat, $category_name, $description, $output, $i, $cat_desc);
my ($half) = int (($#subcat+2) / 2);
# Print Header.
$output = qq~<table width="425" border="0" cellspacing="0" cellpadding="0"><tr><td class="catlist" valign="top">\n~;

foreach $subcat (sort @subcat) {
($description) = @{$category{$subcat}}[2];
($cat_desc) = @{$category{$subcat}}[8];



# First let's get the name, number of links, and last modified date...
$url = "$build_root_url/" . &urlencode($subcat) . "/";
if ($cat_desc eq "") {
if ($subcat =~ m,.*/([^/]+)$,) {
$category_name = &build_clean($1);
}
else {
$category_name = &build_clean($subcat);
}
}
else {
$category_name = &build_last_title_mb($cat_desc);
}
$numlinks = $stats{"$subcat"}[0];
$mod = $stats{"$subcat"}[1];

# We check to see if we are half way through, if so we stop this table cell
# and begin a new one (this lets us have category names in two columns).
if ($i == $half) {
$output .= qq~</td><td class="catlist" valign="top">\n~;
}
$i++;

# Then we print out the name linked, new if it's new, and popular if its popular.
if ($subcat =~ m,.*/([^/]+)$,) {
$output .= qq~<dt><strong><a class="subcat" href="$url"><li>$category_name</a></strong> <small class="numlinks"><i>($numlinks)</i></small> ~;
$output .= qq~<img src="/images/new.gif">~ if (&days_old($mod) < $db_new_cutoff);
$output .= qq~</dt>~;
$output .= qq~<dt><span class="descript">$description </span></dt>~ if (!($description =~ /^[\s\n]*$/));
$output .= qq~<br>~;
}
else
{
$output .= qq~<dl><dt><strong><a class="link" href="$url">$category_name</a></strong> ~;
$output .= qq~<small><img src="/images/new.gif">~ if (&days_old($mod) < $db_new_cutoff);
$output .= qq~</dt>~;
$output .= qq~<dt><span class="subcat">$description </span></dt>~ if (!($description =~ /^[\s\n]*$/));
$output .= qq~</dl>~;
}

}


# Don't forget to end the unordered list..
$output .= "</td></tr></table>\n";
return $output;
}


My Question why if I build with "build all" I get true name for subcategory
but If I build with Staggered the subcategory name I get it's the name path not real name. WHAT WRONG ????


could you help me ?