|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
I'd like to do this, so that "spam comments" don't give them any juice. Is it possible to adjust things so this happens to posts made by users? (But perhaps NOT to those posted by admin or perhaps not to links that are posted with our own URL?)
Thanks
>>>>>
Q: How does a link change? A: Any link that a user can create on your site automatically gets a new "nofollow" attribute. So if a blog spammer previously added a comment like
Visit my <a href="http://www.example.com/">discount pharmaceuticals</a> site.
That comment would be transformed to
Visit my <a href="http://www.example.com/" rel="nofollow">discount pharmaceuticals</a> site.
Q: What types of links should get this attribute? A: We encourage you to use the rel="nofollow" attribute anywhere that users can add links by themselves, including within comments, trackbacks, and referrer lists. Comment areas receive the most attention, but securing every location where someone can add a link is the way to keep spammers at bay.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
I was thinking this already happened on links... test
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Holy dern, it isn't! <a href="http://www.undergroundnews.com/" target="_blank">test</a>
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Seems 7.3 does this: Processed URL in 7.3a2 <div id="body0"><a href="http://www.blah.com/" rel="nofollow" target="_blank">haha hehe hoho?</a></div>
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
we (can) allow anon posting
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
So can we do that?
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
sure, set a forum to allow guests to post ... as for the norel, it's built into 7.3; or you ccould hack it in on prior versions by editing the bbcode.
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
When can we expect 7.3 by the way?
Thanks
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
After beta... When will you see public beta (if there is one?) after private beta... When will you see private beta? Well, the private beta will likely be rolled out here... Want to play with an alpha? Check the beta testers sites... Mine for sake of alpha is the one I use for raw testing, which is here
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
OK.
Is it possible to adjust this on the current latest version (7.2.2)?
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Yes, you'd edit the url bbcode (the <a href line) in the libs/ubbthreads.inc.php file
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
Gizmo OK thanks... can you be a bit more specific so I can go in and do that.... Thank you!
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
It's straight forward... simple as can be... find the lines, add the rel comment, in the url tag... You see: // Link regexes here
$body = preg_replace( "#\[url\](https|http|ftp)://([^\"\[\]<>]+?)\[/url]#i", '<a href="\1://\2" target="_blank">\1://\2</a>',$body );
$body = preg_replace( "#\[url\]([^\"\[\]<>]+?)\[/url\]#i", '<a href="http://\1" target="_blank">\1</a>',$body );
$body = preg_replace( "#\[url=(https|http|ftp)://([^\"\[\]<> ]+?)\](.+?)\[/url]#i", '<a href="\1://\2" target="_blank">\3</a>',$body);
$body = preg_replace("#(<br />|^|\s)(http|https|ftp)://([^<\"\[\s]+)(\.|\,|\?|\)|\s)?#i", '\1<a href="\2://\3" target="_blank">\2://\3</a>\4',$body);
$body = preg_replace( "#(<br />|^|\s)(www\.[^<\"\[\s]+)(\.|\,|\?|\)|\s)?#i", '\1<a href="http://\2" target="_blank">http://\2</a>\3',$body ); You do: // Link regexes here
$body = preg_replace( "#\[url\](https|http|ftp)://([^\"\[\]<>]+?)\[/url]#i", '<a href="\1://\2" target="_blank">\1://\2</a>',$body );
$body = preg_replace( "#\[url\]([^\"\[\]<>]+?)\[/url\]#i", '<a href="http://\1" rel="nofollow" target="_blank">\1</a>',$body );
$body = preg_replace( "#\[url=(https|http|ftp)://([^\"\[\]<> ]+?)\](.+?)\[/url]#i", '<a href="\1://\2" rel="nofollow" target="_blank">\3</a>',$body);
$body = preg_replace("#(<br />|^|\s)(http|https|ftp)://([^<\"\[\s]+)(\.|\,|\?|\)|\s)?#i", '\1<a href="\2://\3" rel="nofollow" target="_blank">\2://\3</a>\4',$body);
$body = preg_replace( "#(<br />|^|\s)(www\.[^<\"\[\s]+)(\.|\,|\?|\)|\s)?#i", '\1<a href="http://\2" rel="nofollow" target="_blank">http://\2</a>\3',$body );
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
Great thank you.
I suppose this will be for ALL links posted within any thread, right
Is it too much to think we could make it not do that for admins/moderators?
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
It's for all links, as you're editing the bbcode. as for allowing admin's to have a norel, it's not possible as the current code doesn't check for permissions...
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
Does it include links in islands and html we add to the page outside of the actual threads?
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
If you use the [url] BBCode to create the links, they will come out with rel no follow; if you hand code the html links, you could add this yourself manually.
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
Thanks sorry I missed that. Not sure I understand the last part of the above though - could you explain that bit again? Thank you
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
ok, when you create a link: [url=http://www.gizmo-is-the-bestest.us/]Gizmo Rules[/url] It is automatically created (by the BBCode parser) with the norel attribute. If you allow HTML, and users insert the link: <a href="http://www.gizmo-is-the-bestest.us/">Gizmo Rules</a> the norel attribute will not be attached as it puts the content in as specified.
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
0 members (),
797
guests, and
200
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|