Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
6 registered (Bjab, Stan, Dunny, driv, SteveS, id242), 25 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 12/25/03
Posts: 125
Top Posters (30 Days)
Ruben 51
Gizmo 24
DennyP 24
Dunny 15
SteveS 14
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 3 1 2 3 >
Topic Options
#201394 - 11/14/07 11:29 PM "nofollow" added to links users post? Is this possible?
willing Offline
old hand
Registered: 02/12/07
Posts: 701
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.
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#201402 - 11/15/07 02:35 AM Re: "nofollow" added to links users post? Is this possible? [Re: willing]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
I was thinking this already happened on links...

test
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#201403 - 11/15/07 02:35 AM Re: "nofollow" added to links users post? Is this possible? [Re: Gizmo]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Holy dern, it isn't!
 Code:
<a href="http://www.undergroundnews.com/" target="_blank">test</a>
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#201404 - 11/15/07 02:42 AM Re: "nofollow" added to links users post? Is this possible? [Re: Gizmo]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Seems 7.3 does this:

Processed URL in 7.3a2
 Code:
<div id="body0"><a href="http://www.blah.com/"  rel="nofollow" target="_blank">haha hehe hoho?</a></div>
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#201405 - 11/15/07 03:22 AM Re: "nofollow" added to links users post? Is this possible? [Re: Gizmo]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
Well not new, has been around for about 3 years at least.
Suppose we don't have it because often not as big an issue as blogs that often allow posting anonymously.

http://googleblog.blogspot.com/2005/01/preventing-comment-spam.html
Top
#201407 - 11/15/07 03:32 AM Re: "nofollow" added to links users post? Is this possible? [Re: ntdoc]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
we (can) allow anon posting ;\)
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#201412 - 11/15/07 03:57 AM Re: "nofollow" added to links users post? Is this possible? [Re: Gizmo]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
So can we do that?

\:\)
Top
#201413 - 11/15/07 04:42 AM Re: "nofollow" added to links users post? Is this possible? [Re: willing]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
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.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#201419 - 11/15/07 07:12 AM Re: "nofollow" added to links users post? Is this possible? [Re: Gizmo]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
When can we expect 7.3 by the way?

Thanks
Top
#201420 - 11/15/07 07:23 AM Re: "nofollow" added to links users post? Is this possible? [Re: willing]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
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
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#201645 - 11/18/07 07:42 PM Re: "nofollow" added to links users post? Is this possible? [Re: Gizmo]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
OK.

Is it possible to adjust this on the current latest version (7.2.2)?
Top
#201646 - 11/18/07 08:20 PM Re: "nofollow" added to links users post? Is this possible? [Re: willing]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Yes, you'd edit the url bbcode (the <a href line) in the libs/ubbthreads.inc.php file
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#201649 - 11/18/07 08:42 PM Re: "nofollow" added to links users post? Is this possible? [Re: Gizmo]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
Gizmo
OK thanks... can you be a bit more specific so I can go in and do that.... Thank you! \:\)
Top
#201650 - 11/18/07 11:01 PM Re: "nofollow" added to links users post? Is this possible? [Re: willing]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
It's straight forward... simple as can be... find the lines, add the rel comment, in the url tag...

You see:
 Code:
                // 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:

 Code:
                // 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 );
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#201657 - 11/19/07 03:44 AM Re: "nofollow" added to links users post? Is this possible? [Re: Gizmo]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
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?
Top
#201660 - 11/19/07 06:06 AM Re: "nofollow" added to links users post? Is this possible? [Re: willing]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
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...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#201661 - 11/19/07 07:12 AM Re: "nofollow" added to links users post? Is this possible? [Re: Gizmo]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
OK thank you!
Top
#201662 - 11/19/07 07:12 AM Re: "nofollow" added to links users post? Is this possible? [Re: willing]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
Does it include links in islands and html we add to the page outside of the actual threads?
Top
#201670 - 11/19/07 09:59 AM Re: "nofollow" added to links users post? Is this possible? [Re: willing]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
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.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#204676 - 01/12/08 07:41 PM Re: "nofollow" added to links users post? Is this possible? [Re: Gizmo]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
Thanks sorry I missed that. Not sure I understand the last part of the above though - could you explain that bit again? Thank you
Top
#204681 - 01/12/08 09:24 PM Re: "nofollow" added to links users post? Is this possible? [Re: willing]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
ok, when you create a link:
Code:
[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:
Code:
<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.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#204706 - 01/13/08 05:54 AM Re: "nofollow" added to links users post? Is this possible? [Re: Gizmo]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
OK got it. Thank you!!
Top
Page 1 of 3 1 2 3 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Due Date Calculator-Calculate When Your Baby is Due
by StewartMyduedate
12:54 AM
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
Forum Stats
10491 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image