2
Quote:
spacejoee wrote:
Hi !
1- i would like to know if it is possible to add a rel="nofollow" to the url source code when a membre add and url using the bb code ? if yes wich file shoud i edit ?
class\module.textsanitizer.php
changing the replacements like this.
$patterns[] = "/[siteurl=(['"]?)([^"'<>]*)\1](.*)[/siteurl]/sU";
$replacements[] = '.XOOPS_URL.'/\2" target="_blank" rel="nofollow">\3';
$patterns[] = "/[url=(['"]?)(http[s]?://[^"'<>]*)\1](.*)[/url]/sU";
$replacements[] = '\3';
$patterns[] = "/[url=(['"]?)(ftp?://[^"'<>]*)\1](.*)[/url]/sU";
$replacements[] = '\3';
$patterns[] = "/[url=(['"]?)([^"'<>]*)\1](.*)[/url]/sU";
$replacements[] = '\3';
Quote:
2- Same thing for the url in the profil, how to add target="blank" and rel="nofollow" ? .
Thank you, and excuse my english.
userinfo.php look for "user_websiteurl"
looks like
assign('user_websiteurl', '
'.$thisUser->getVar('url').'');
CBB / LatestNews / Publisher / XM-Spotlight
(ノ◕ヮ◕)ノ*:・゚✧