Skip to main content
Topic: [ADDON] Nofollow attribute for external links (Read 10295 times) previous topic - next topic - Topic derived from Request - Nofollow attribute ...
0 Members and 1 Guest are viewing this topic.

[ADDON] Nofollow attribute for external links

Okay, I re-read the topic because honestly I had forgot almost everything.
So, at the moment the situation is:
1) there is an addon that allows to post "follow" URLs based on permissions,
2) the need is an addon that has a white-listing feature based on the domain.
Correct?
Bugs creator.
Features destroyer.
Template killer.

 

Re: [ADDON] Nofollow attribute for external links

Reply #1

Thank you emanuele, is correct what you are saying. Will this addon use custom bbcode or it will be invisible?
sorry for my bad english

Re: [ADDON] Nofollow attribute for external links

Reply #2

Have a look at the attached.

Maintains the permission things (sorry, too lazy to remove it) and adds on top of it a white-listing and the exclusion from the "nofollow rule" of internal links.
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] Nofollow attribute for external links

Reply #3

Thank you Emanuele, I will try it  8)
sorry for my bad english

Re: [ADDON] Nofollow attribute for external links

Reply #4

I did not forget about this, I've been out in the last 2 weeks ;) Now I see 7 pages of unread topics  ;D

I will test it this weekend, thanks again Emanuele
sorry for my bad english

Re: [ADDON] Nofollow attribute for external links

Reply #5

ROFL!
Take your time on catching up! :P
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] Nofollow attribute for external links

Reply #6

It does the job, no bbcode added to links and whitelisted domains are without nofollow, thank you Emanuele  ;)
sorry for my bad english

Re: [ADDON] Nofollow attribute for external links

Reply #7

YAY! :D

Spoiler (click to show/hide)
Last Edit: March 22, 2017, 03:29:34 pm by emanuele
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] Nofollow attribute for external links

Reply #8

there is a little problem with the addon: if I insert a link using the button into sceditor, the bbcode became:

Code: [Select]
[url url=http://www.google.it nofollow=dofollow]prova link[/url]

and if I click on the link it opens a new tab with the same topic: http://www.domain.com/index.php?topic=xx.new

the nofollow bbcode is really necessary? I think not, because all old links non whitelisted are getting correctly the nofollow atribute. Correct me if I am wrong
sorry for my bad english

Re: [ADDON] Nofollow attribute for external links

Reply #9

The reason there is the nofollow attribute is to actually white-list the links: by default anything is nofollow, then I need a way to tell the parser "ok, this is not a nofollow", and there is it the param.

Just to be sure I understand:
1) start a new message,
2) turn on WYSIWYG
3) insert a (named) link
4) post
expected: the link points to the address
observed: the link points to the original topic

Did I got it right?
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] Nofollow attribute for external links

Reply #10

Sorry for the delay, I unistalled the addon from my forum, too many broken links so I installed it in a test board:
sharkracingclub.it/sharkelk104/index.php?topic=2655
sorry for my bad english

Re: [ADDON] Nofollow attribute for external links

Reply #11

Stupid me...
I'll update the package, in the meantime, in NoFollow.integrate.php, just find:
Code: [Select]
						{
$param = \'http://\' . $param;
}
and add just after:
Code: [Select]
						return $param;

sorry for the n00b error... :-[
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] Nofollow attribute for external links

Reply #12

that solved the problem with links pointing to current topic, thank you. I still test it and try to find other bugs ;)
sorry for my bad english

Re: [ADDON] Nofollow attribute for external links

Reply #13

No, you don't have to find bugs. :P
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] Nofollow attribute for external links

Reply #14

Thanks guys for this plugin, exactly what I was looking for.  

I was going to give a poster in my forum the gift of "dofollow" to her blog, until I see she was advertising products on Amazon using keywords.   Now, if she wants to give me a percentage.....that's a different story!

Keep finding those bugs for Emanuele folks....
maybe we can start a collection to pay for more coffee for him,  while he's up late correcting them!   ;D
Last Edit: September 13, 2016, 05:36:49 pm by elk_is_cool