Page Index Toggle Pages: 1
Topic Tools
Normal Topic Adding a nofollow tag to a link (Read 758 times)
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,130
Location: Earth

YaBB 2.6.0
Re: Adding a nofollow tag to a link
Reply #5 - Nov 7th, 2013 at 12:47am
Post Tools
I was in a hurry while I still had internet access.  Embarrassed
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,557
Location: Los Angeles

YaBB 2.4
Re: Adding a nofollow tag to a link
Reply #4 - Oct 30th, 2013 at 7:52pm
Post Tools
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
		#$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!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Finn13
YaBB Newcomer
*
Offline



Posts: 3

YaBB 2.5
Re: Adding a nofollow tag to a link
Reply #3 - Oct 30th, 2013 at 10:14am
Post Tools
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.
  
Back to top
 
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,557
Location: Los Angeles

YaBB 2.4
Re: Adding a nofollow tag to a link
Reply #2 - Oct 29th, 2013 at 6:07pm
Post Tools
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
		#$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!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,584
Location: UK:Scotland/livingston

None
Re: Adding a nofollow tag to a link
Reply #1 - Oct 29th, 2013 at 6:05pm
Post Tools
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)
Back to top
IP Logged
 
Finn13
YaBB Newcomer
*
Offline



Posts: 3

YaBB 2.5
Adding a nofollow tag to a link
Oct 29th, 2013 at 4:30pm
Post Tools
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.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top