YaBB Community and Support Forum
YaBB Home About YaBB Download YaBB YaBB Support Customize Your Forum Development Contribute to the Project
  Welcome, Guest. Please Login or Register


 
Page Index Toggle Pages: 1
Topic Tools
 
Adding a nofollow tag to a link (Read 522 times)
 Oct 29th, 2013 at 4:30pm
There are no actions to perform.  

Finn13 
YaBB Newbie
*
Offline
Posts: 3


YaBB 2.2
Adding a nofollow tag to a link
Hello everybody,

I'm not sure if this the right thread for my question, but here goes. I hope admins transfer this to another thread if they think this is not the right one.

I'm trying to add a nofollow tag to a single link that a user on my forum has inserted in their post, and I have to admit I don't know that much about these things. I did find some information on meta tags and I now understand what a nofollow tag is. The question is, however, what to actually do with the link. Do I just edit the post that the user has written? Could somebody provide me with an example with an actual url? For instance, if somebody had inserted a Wikipedia link and I wanted to add a nofollow tag to this.

Thanks in advance.
 
 
IP Logged  
 Reply #1 - Oct 29th, 2013 at 6:05pm
There are no actions to perform.  

xnoddyx 
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline
Posts: 1,552
UK:Scotland/livingston


YaBB 2.5
Re: Adding a nofollow tag to a link
Hi Finn13
unfortunately at this time YaBB doesn't have nofollowed links
for more info on it see https://support.google.com/webmasters/answer/96569?hl=en I will pass this on to the Development Team for you and they may come up with a code edit for you to make nofollowed links in yabb.
 
YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
WWW xnoddyx xnoddyx1  
IP Logged  
 Reply #2 - Oct 29th, 2013 at 6:07pm
There are no actions to perform.  

Bill Myers 
God Member
Beta Testers
*****
Offline
Posts: 1,482
Los Angeles


YaBB 2.4
Re: Adding a nofollow tag to a link
Finn13 wrote on Oct 29th, 2013 at 4:30pm:
I'm trying to add a nofollow tag to a single link that a user on my forum has inserted in their post, and ...

Edited:
xnoddyx wrote on Oct 29th, 2013 at 6:05pm:
unfortunately at this time YaBB doesn't have nofollowed links
Yep! What he said. Wink

One example of an actual url for a NoFollow attribute is as follows for this post:

Code Select All
<a href=http://www.yabbforum.com/community/YaBB.pl?num=1383064205/0#0>This is a link to this post</a>!

The above would be replaced with the following:

<a href=http://www.yabbforum.com/community/YaBB.pl?num=1383064205/0#0 rel="nofollow">This is a link to this post</a>!
 


Unfortunately, this doesn't seem to work with YaBBC (or any other BBC). The question for you is, why do you want search engines not to follow this particular link?

Edited:

Note
:
Regarding Dandello's quote below, I think she meant the following:

"BUT if you want to add  rel="nofollow" in 2.5.2"

Instead of:

"BUT if you want to add  frell="nofollow" in 2.5.2"

In any case, I stand corrected about the nofollow attribute, so please be sure to read the following (best from this original source):

Quote:
None of the Proxies today will let me into YaBBForum to post.

BUT if you want to add frell="nofollow" in 2.5.2

in YaBBC.pl find
Code (Perl)Select All
		#$message =~ s~\[url\]\s*www\.(\S+?)\s*\[/url\]~<a href="http://www.$1" target="_blank">www.$1</a>~isg;
		$message =~ s~\[url=\s*(\S\w+\://\S+?)\s*\](.+?)\[/url\]~<a href="$1" target="_blank">$2</a>~isg;
		$message =~ s~\[url=\s*(\S+?)\](.+?)\s*\[/url\]~<a href="http://$1" target="_blank">$2</a>~isg;
		#$message =~ s~\[url\]\s*(http://)?(\S+?)\s*\[/url\]~<a href="http://$2" target="_blank">$1$2</a>~isg;

		$message =~ s~\[link\]\s*www\.(\S+?)\s*\[/link\]~<a href="http://www.$1">www.$1</a>~isg;
		$message =~ s~\[link=\s*(\S\w+\://\S+?)\s*\](.+?)\[/link\]~<a href="$1">$2</a>~isg;
		$message =~ s~\[link=\s*(\S+?)\](.+?)\s*\[/link\]~<a href="http://$1">$2</a>~isg;
		$message =~ s~\[link\]\s*(\S+?)\s*\[/link\]~<a href="$1">$1</a>~isg;

		$message =~ s~\[ftp\]\s*(ftp://)?(.+?)\s*\[/ftp\]~<a href="ftp://$2">$1$2</a>~isg; 


and replace with
Code Select All
		#$message =~ s~\[url\]\s*www\.(\S+?)\s*\[/url\]~<a href="http://www.$1" target="_blank">www.$1</a>~isg;
		$message =~ s~\[url=\s*(\S\w+\://\S+?)\s*\](.+?)\[/url\]~<a href="$1" target="_blank" rel="nofollow">$2</a>~isg;
		$message =~ s~\[url=\s*(\S+?)\](.+?)\s*\[/url\]~<a href="http://$1" target="_blank" rel="nofollow">$2</a>~isg;
		#$message =~ s~\[url\]\s*(http://)?(\S+?)\s*\[/url\]~<a href="http://$2" target="_blank">$1$2</a>~isg;

		$message =~ s~\[link\]\s*www\.(\S+?)\s*\[/link\]~<a href="http://www.$1" rel="nofollow">www.$1</a>~isg;
		$message =~ s~\[link=\s*(\S\w+\://\S+?)\s*\](.+?)\[/link\]~<a href="$1" rel="nofollow">$2</a>~isg;
		$message =~ s~\[link=\s*(\S+?)\](.+?)\s*\[/link\]~<a href="http://$1" rel="nofollow">$2</a>~isg;
		$message =~ s~\[link\]\s*(\S+?)\s*\[/link\]~<a href="$1" rel="nofollow">$1</a>~isg;

		$message =~ s~\[ftp\]\s*(ftp://)?(.+?)\s*\[/ftp\]~<a href="ftp://$2" rel="nofollow">$1$2</a>~isg; 






« Last Edit: Oct 30th, 2013 at 8:19pm by Bill Myers »  
Morning, noon, or night, have a great one! ...
WWW BillHMyers  
IP Logged  
 Reply #3 - Oct 30th, 2013 at 10:14am
There are no actions to perform.  

Finn13 
YaBB Newbie
*
Offline
Posts: 3


YaBB 2.2
Re: Adding a nofollow tag to a link
Hi, and thanks for your swift replies! The reason I'm trying to do this is that a user (a real person) has mentioned a website on their post and now I got an email from the company whose website it is asking me to add a nofollow attribute to that link. He explains that it is "in no way a reflection of the quality of your site" but that they want to "minimise any risk". As I was unsure if I could do this, I just edited the post and broke the url so that the link does not work. So it's not really an issue for me but to this particular company.
 
 
IP Logged  
 Reply #4 - Oct 30th, 2013 at 7:52pm
There are no actions to perform.  

Bill Myers 
God Member
Beta Testers
*****
Offline
Posts: 1,482
Los Angeles


YaBB 2.4
Re: Adding a nofollow tag to a link
Thanks for the explanation. Smiley

What an odd request from that company. It's as if they don't want to be linked, which kind of defies one of the reasons to be on the Internet.

Oh well. To each their own. Huh

Edited:

Note
:
Regarding Dandello's quote below, I think she meant the following:

"BUT if you want to add  rel="nofollow" in 2.5.2"

Instead of:

"BUT if you want to add  frell="nofollow" in 2.5.2"

In any case, I stand corrected about the nofollow attribute, so please be sure to read the following (best from this original source):

Quote:
None of the Proxies today will let me into YaBBForum to post.

BUT if you want to add  frell="nofollow" in 2.5.2

in YaBBC.pl find
Code (Perl)Select All
		#$message =~ s~\[url\]\s*www\.(\S+?)\s*\[/url\]~<a href="http://www.$1" target="_blank">www.$1</a>~isg;
		$message =~ s~\[url=\s*(\S\w+\://\S+?)\s*\](.+?)\[/url\]~<a href="$1" target="_blank">$2</a>~isg;
		$message =~ s~\[url=\s*(\S+?)\](.+?)\s*\[/url\]~<a href="http://$1" target="_blank">$2</a>~isg;
		#$message =~ s~\[url\]\s*(http://)?(\S+?)\s*\[/url\]~<a href="http://$2" target="_blank">$1$2</a>~isg;

		$message =~ s~\[link\]\s*www\.(\S+?)\s*\[/link\]~<a href="http://www.$1">www.$1</a>~isg;
		$message =~ s~\[link=\s*(\S\w+\://\S+?)\s*\](.+?)\[/link\]~<a href="$1">$2</a>~isg;
		$message =~ s~\[link=\s*(\S+?)\](.+?)\s*\[/link\]~<a href="http://$1">$2</a>~isg;
		$message =~ s~\[link\]\s*(\S+?)\s*\[/link\]~<a href="$1">$1</a>~isg;

		$message =~ s~\[ftp\]\s*(ftp://)?(.+?)\s*\[/ftp\]~<a href="ftp://$2">$1$2</a>~isg; 


and replace with
Code Select All
		#$message =~ s~\[url\]\s*www\.(\S+?)\s*\[/url\]~<a href="http://www.$1" target="_blank">www.$1</a>~isg;
		$message =~ s~\[url=\s*(\S\w+\://\S+?)\s*\](.+?)\[/url\]~<a href="$1" target="_blank" rel="nofollow">$2</a>~isg;
		$message =~ s~\[url=\s*(\S+?)\](.+?)\s*\[/url\]~<a href="http://$1" target="_blank" rel="nofollow">$2</a>~isg;
		#$message =~ s~\[url\]\s*(http://)?(\S+?)\s*\[/url\]~<a href="http://$2" target="_blank">$1$2</a>~isg;

		$message =~ s~\[link\]\s*www\.(\S+?)\s*\[/link\]~<a href="http://www.$1" rel="nofollow">www.$1</a>~isg;
		$message =~ s~\[link=\s*(\S\w+\://\S+?)\s*\](.+?)\[/link\]~<a href="$1" rel="nofollow">$2</a>~isg;
		$message =~ s~\[link=\s*(\S+?)\](.+?)\s*\[/link\]~<a href="http://$1" rel="nofollow">$2</a>~isg;
		$message =~ s~\[link\]\s*(\S+?)\s*\[/link\]~<a href="$1" rel="nofollow">$1</a>~isg;

		$message =~ s~\[ftp\]\s*(ftp://)?(.+?)\s*\[/ftp\]~<a href="ftp://$2" rel="nofollow">$1$2</a>~isg; 





« Last Edit: Oct 30th, 2013 at 8:20pm by Bill Myers »  
Morning, noon, or night, have a great one! ...
WWW BillHMyers  
IP Logged  
 Reply #5 - Nov 7th, 2013 at 12:47am
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 1,862
Earth


YaBB 2.5
Re: Adding a nofollow tag to a link
I was in a hurry while I still had internet access.  Embarrassed
 
WWW  
IP Logged  
Page Index Toggle Pages: 1
Topic Tools
 

Get Yet another Bulletin Board at SourceForge.net. Fast, secure and Free Open Source software downloads Support This Project BoardMod - YaBB features and templates YaBB Codex - support on installation and usage YaBB Toolbar for your browser

YaBB Facebook Group Page

Vulnerability Scanner

Valid RSS Valid XHTML Valid CSS Powered by Perl
YaBB Chat and Support Community » Powered by YaBB 3.0 Beta!
YaBB Forum Software © 2000-2011. All Rights Reserved.