Guys, I found final decision for both directory modules - weblinks and mylinks
The big boss still thinks that the pages (singlelink - for both modules) are doubling. I think its normal, because every single link have same meta description, with custom tag or empty tag - they are always same.
I took meta code from catads, testing and sets for both singlelink.php and viewcat.php. Its working perfect now :)
For module weblinksIn the file singlelink.php set
$keyword_tags = 'bla, blaa, blaaa' ;
$desctextclean = strip_tags($annonce['description']);
$xoTheme->addMeta('meta', 'description', substr($title_s, 0, 140));
for ( $i=0; $i< $max ; $i++ ) {
$keyword_tags .= $mots_tags[$i].", " ;
}
$xoTheme->addMeta('meta', 'keywords', $keyword_tags);
Must be just under this line:
$xoopsTpl->assign('keywords', $keywords_urlencoded);
Now meta description will be the same like link title, in any case we havent meta desc doubling any more. Keyword tags we know are not important yet...set as you wish.
In the file viewcat.php set
$keyword_tags = 'bla, blaa, blaaa' ;
$desctextclean = strip_tags($annonce['description']);
$xoTheme->addMeta('meta', 'description', substr($category['title_s'] , 0, 140));
for ( $i=0; $i< $max ; $i++ ) {
$keyword_tags .= $mots_tags[$i].", " ;
}
$xoTheme->addMeta('meta', 'keywords', $keyword_tags);
just under this line:
$keywords_urlencoded = $weblinks_template->get_keywords_urlencode();
Now the category title will be meta description too
For module mylinksIn the file singlelink.php set:
$keyword_tags = 'bla, blaa, blaaa' ;
$desctextclean = strip_tags($annonce['description']);
$xoTheme->addMeta('meta', 'description', substr($description, 0, 140));
for ( $i=0; $i< $max ; $i++ ) {
$keyword_tags .= $mots_tags[$i].", " ;
}
$xoTheme->addMeta('meta', 'keywords', $keyword_tags);
just under:
$xoopsTpl->assign('mylinksjumpbox', $catjumpbox);
Now the meta description will be our first 140 characters from link description - no doubling meta desc anymore :)
In the file viewcat.php set:
$keyword_tags = 'bla, blaa, blaaa' ;
$desctextclean = strip_tags($annonce['description']);
$xoTheme->addMeta('meta', 'description', substr($itemPath, 0, 140));
for ( $i=0; $i< $max ; $i++ ) {
$keyword_tags .= $mots_tags[$i]."" ;
}
$xoTheme->addMeta('meta', 'keywords', $keyword_tags);
just under:
$xoopsTpl->assign('mylinksthemeoption', $mylinkstheme_select);
Now we have category title as meta description too
That all, for me working perfect, there are no doubling links anymore. But be careful with yours