Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (Dunny, Ruben), 48 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 709
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 24
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 2 of 2 < 1 2
Topic Options
#221945 - 02/03/09 11:19 AM Re: URL link detection [Re: gliderdad]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
I have this fixed for 7.5.
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."
#222278 - 02/12/09 06:41 AM Re: URL link detection [Re: Rick]
Kayjey Offline

journeyman
Registered: 12/24/03
Posts: 94
Loc: Belgium
Can someone give me the fix code?
_________________________
www.straydesign.com
Top
#222326 - 02/13/09 05:33 AM Re: URL link detection [Re: Kayjey]
Kayjey Offline

journeyman
Registered: 12/24/03
Posts: 94
Loc: Belgium
Okay... I actually didn't know anything about regex (they're REALLY Chinese for me), but after going through some documentation, I would presume the fix to be like this:

In "libs" / "bbcode.inc.php" change:

Code:


$body = preg_replace('#(\n|\r|\]|^|\s|\(|&lt;)([a-zA-Z0-9]+?)://(([a-zA-Z0-9\.\-\_\?=\#/&]|&amp;)+)(&gt;|&lt;|\n|\r|$|,(\s|$)|\?(\s|$)|\)|\s|\.(\s|$))#ie', '\'$1\'.$this->handle_url(\'$2://$3\').\'$5\'', $body);




into
Code:


$body = preg_replace('#(\n|\r|\]|^|\s|\(|&lt;)([a-zA-Z0-9]+?)://(([a-zA-Z0-9\.\-\_\?=\#/&]|&amp;|[\+\%])+)(&gt;|&lt;|\n|\r|$|,(\s|$)|\?(\s|$)|\)|\s|\.(\s|$))#ie', '\'$1\'.$this->handle_url(\'$2://$3\').\'$5\'', $body);




and

Code:


$body = preg_replace('#(\n|\r|\]|^|\s|&lt;|\()www\.(([a-zA-Z0-9\.\-\_\?&/\#=]|&amp;)+)($|&gt;|\)|,(\s|$)|\?(\s|$)|\)(\s|$)|\s|\.(\s|$))#ie', '\'$1\'.$this->handle_url(\'http://www.$2\',\'www.$2\').\'$4\'', $body);




into

Code:


$body = preg_replace('#(\n|\r|\]|^|\s|&lt;|\()www\.(([a-zA-Z0-9\.\-\_\?&/\#=]|&amp;|[\+\%])+)($|&gt;|\)|,(\s|$)|\?(\s|$)|\)(\s|$)|\s|\.(\s|$))#ie', '\'$1\'.$this->handle_url(\'http://www.$2\',\'www.$2\').\'$4\'', $body);



basically adding "|[\+\%]" after the "amp;" to include plus and percent signs.
_________________________
www.straydesign.com
Top
#222423 - 02/15/09 07:21 AM Re: URL link detection [Re: Kayjey]
Yarp™ Offline
Registered: 08/30/06
Posts: 1513
Loc: Breda, NL
Originally Posted By: Kayjey
Okay... I actually didn't know anything about regex (they're REALLY Chinese for me), but after going through some documentation, I would presume the fix to be like this:


If you ever want to learn chinese, RegexBuddy™ could be your new best friend!
_________________________
Top
#222428 - 02/15/09 12:44 PM Re: URL link detection [Re: Yarp™]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
RegexBuddy
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
Page 2 of 2 < 1 2



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

Today's Birthdays
No Birthdays
Recent Topics
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
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

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