SMF Support > SMF 2.0.x Support
How to no-follow the Website URL links in member's profiles?
PatrickForum:
If a new user creates a new registration on the forum, they often put their URL
in the profile. Since Google doesn't like websites who link to spammers, I want to nofollow
those Website URL links in members profiles. How do I do that? Is there a mod.
Currently I installed the "anti spam links" mod, but with this mod you can't nofollow links in profiles.
Krash.:
Just remove the website profile fields from profile.
Admin -> Features and Options -> Profile Fields
You must have Advanced Profile Fields enabled in Core Features.
PatrickForum:
Yes, I know, thanks. But it would be nice for members if they can link to their websites, so I decided to keep this option enabled for members IF I can nofollow the links. I think about disabling this option, but I'd rather keep this option on for members so they have the benefit of it.
Krash.:
Didn't try this, but give it a shot -
In Profile.template.php find this:
--- Code: ---
// Don't show an icon if they haven't specified a website.
if ($context['member']['website']['url'] !== '' && !isset($context['disabled_fields']['website']))
echo '
<li><a href="', $context['member']['website']['url'], '" title="' . $context['member']['website']['title'] . '" target="_blank" class="new_win">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $context['member']['website']['title'] . '" />' : $txt['www']), '</a></li>';
--- End code ---
Change it to this:
--- Code: ---
// Don't show an icon if they haven't specified a website.
if ($context['member']['website']['url'] !== '' && !isset($context['disabled_fields']['website']))
echo '
<li><a rel="nofollow" href="', $context['member']['website']['url'], '" title="' . $context['member']['website']['title'] . '" target="_blank" class="new_win">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $context['member']['website']['title'] . '" />' : $txt['www']), '</a></li>';
--- End code ---
PatrickForum:
No. I didn't work:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/*****/public_html/geldverdienenopinternetforum.nl/Themes/default/Profile.template.php on line 75
Maybe it's a good idea to do a mod request. I think this is a very useful mod for every SMF forum owner. Don't you think?
Navigation
[0] Message Index
[#] Next page
Go to full version