Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMF 2.1 Nofollow external links (only external domains)

Started by gevv, February 26, 2022, 07:48:19 AM

Previous topic - Next topic



Simple method to Topics and signature add nofollow to other site links. 

1: Install Smarter Internal Links mod. Thanks @Sesquipedalian

2: Edit Sources/Subs.php

Change all rel="noopener"  to rel="nofollow ugc noopener"

Line: 1955, 1993, 2011, 2409, 2427, 2450

What is ugc? :

You cannot view this attachment.

Not: To add nofollow to profile website link Themes / default /  edit Display.template.php  line: 606 rel="noopener"  to rel="nofollow ugc noopener"

 edit Profile.template.php  line: 234 rel="noopener"  to rel="nofollow ugc noopener"
ElkArte is a modern, powerful community building forum software.


@gevv Awesome work mate, very nice tip. Great for SEO on 2.1, defo recommend OP's suggestion. @Sesquipedalian my guy, any chance if it's ok with @gevv this can be incorporated with your Smarter Internal Links mod?  :laugh:

I didn't even know about ugc link tags. Thanks @gevv & @Sesquipedalian


Thank you, it worked. Don't know about SEO as the links are user generated content, but for sure spammers won't be that likely to post now.