![]() |
Converting rel="nofollow" to rel="ugc"
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! |
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. |
It looks like line 2673 in includes\class_bbcode.php
Change Code:
return "<a href=\"$rightlink\" target=\"_blank\"" . ($is_external ? ' rel="nofollow"' : '') . ">$text</a>"; Code:
return "<a href=\"$rightlink\" target=\"_blank\"" . ($is_external ? ' rel="ugc"' : '') . ">$text</a>"; |
I have modified mine as:
Code:
return "<a href=\"$rightlink\" target=\"_blank\"" . ($is_external ? ' rel="nofollow UGC"' : '') . ">$text</a>"; |
Quote:
|
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? |
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 [DATE]1600079175[/DATE] at [TIME]1600079175[/TIME] --------------- 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? |
All mine updated for old links, I'm not sure why yours didn't.
|
Quote:
|
Quote:
Also. could it be some kind of vbulletin caching? |
All times are GMT. The time now is 05:24 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|