vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=328222

Converting rel="nofollow" to rel="ugc"
by multiuser
10 Sep 2020 09:36

Hello,

since March 2020, google have applied the rel=ugc, whith is the appropriate rel for user generated content, like it;s in forums, blog comments etc.

In vb4, in admin panel, there is only the option for rel="nofollow".
How can we convert it to rel="ugc" ?
Probably the modification should take part directly in file, since there is no option in admin panel.
Can someone guide through this?

Thanks in advance for any help!

Hostboard 11 Sep 2020 17:51

Normally to add ( rel="nofollow" ) to all external links you would open
Admin CP -> vBulletin Options -> BB Code Settings
and change Add nofollow attribute to URL BB Code to yes

I would assume that where ever this variable is being set, is where it would need to be changed.

z3r0 12 Sep 2020 06:36

It looks like line 2673 in includes\class_bbcode.php

Change

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Hostboard 12 Sep 2020 11:37

I have modified mine as:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And update the ACP wording accordingly.

z3r0 12 Sep 2020 18:26

Quote:

Originally Posted by Hostboard (Post 2603946)
I have modified mine as:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And update the ACP wording accordingly.

I used "noopener ugc" in mine.

Hostboard 13 Sep 2020 21:38

to expand for others following this therad:

rel=”noopener” is an HTML attribute that’s added to all links that are selected to open in a new browser tab

Now my next question is there a pluggin that will put up a warning page that the link they clicked on is an external link and verifying they want to follow?

multiuser 14 Sep 2020 10:20

Hello,

thank you for your answers.

I did the above modification, but then, after testing it with an inspect on chrome in an external link, it still shows : rel=nofolow.

I m wondering what could be wrong.

--------------- Added 14 Sep 2020 at 10:26 ---------------

Update: I just noticed that newly created links, get the above -correct- rel.
Older ones, dont get it.
Anyone know how can this be fixed?

z3r0 14 Sep 2020 11:36

All mine updated for old links, I'm not sure why yours didn't.

Hostboard 14 Sep 2020 11:50

Quote:

Originally Posted by multiuser (Post 2603959)
Hello,

thank you for your answers.

I did the above modification, but then, after testing it with an inspect on chrome in an external link, it still shows : rel=nofolow.

I m wondering what could be wrong.

--------------- Added 14 Sep 2020 at 10:26 ---------------

Update: I just noticed that newly created links, get the above -correct- rel.
Older ones, dont get it.
Anyone know how can this be fixed?

Do you use a caching service such as CloudFlare?

multiuser 14 Sep 2020 14:59

Quote:

Originally Posted by Hostboard (Post 2603962)
Do you use a caching service such as CloudFlare?

Nope! But in server we use litespeed which provides a really strong caching system. I ll check it.
Also. could it be some kind of vbulletin caching?

z3r0 14 Sep 2020 15:56

Yeah, maybe check if nocache headers are on or off in your vbulletin settings.


All times are GMT. The time now is 23:49.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.