Making Website Field NoFollow

Started by bukharifaran, May 03, 2018, 04:58:46 PM

Previous topic - Next topic

bukharifaran

Hi,

I am working on an educational forum and responsible to maintain that forum. The school administration asked me to make the website's URLs as no follow. Though the moderation is good on the forum, guests can't see user profile and new user's posts need to be moderated before it appears publicly in the forum.

But they want to give an option to mention the website's URL to new users on the registration page. Now, when a new registered user creates an account and mentions his/her website's URL and make a post, that website URL is linked in every post with a website image under the username.

They want to make that image which shows the user's website as NoFollow link. Kindly guide me how can I make that as NoFollow.

Also, if it is possible to restrict to show the website address with image on post's page and restrict the website Appear only to member's profile page?
My Forum: Mobile Fun | My Blog: Mobile Fun Blog

vbgamer45

The change would need to be made in many places.
Mainly
Profile.template.php
Display.template.php
Memberlist.template.php

Find code such as ['website']['url']  and then look for the a tags to update and add the nofollow
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

bukharifaran

I am talking about the post page as shown in the image below.

The profile page of member don't require this as that page will not be indexed because it is visible only to registered members and guests can't view other member's profile page. Also, the member list page is not available for guest users only registered members can see the member list so I guess no need to change that page as that page will not be indexed in Google.

So, I guess Display.template.php is the file which needs to be modified... Am I right?
My Forum: Mobile Fun | My Blog: Mobile Fun Blog

vbgamer45

Yes display.template.php
This exact line

<li><a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank" class="new_win">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $message['member']['website']['title'] . '" />' : $txt['www']), '</a></li>';
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

bukharifaran

Done... It was super easy... Thanks for your help.

Now, a member who used the website URL and published a post, the source code of Website image is showing this:

<a href="http://www.dunyaurdu.com" title="Dunya Urdu News" target="_blank" rel="nofollow" class="new_win"><img src="http://www.amps.edu.pk/forum/Themes/default/images/www_sm.gif" alt="Dunya Urdu News"></a>

Now the link is NoFollow... Right?
My Forum: Mobile Fun | My Blog: Mobile Fun Blog

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

bukharifaran

My Forum: Mobile Fun | My Blog: Mobile Fun Blog

Advertisement: