Previous Thread
Next Thread
Print Thread
Rate Thread
#220476 07/04/2002 12:19 PM
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Ok, I don't understand, but just one of those odd things. Check out my test post on this forum:
https://ubbdev.com/threads/php/...ew=collapsed&sb=5&o=&fpart=1

Worked just fine. Now check out the same exact URL I tried posting over on my board, it didn't parse past the .com:
http://www.michiganjeepers.com/foru...ew=collapsed&sb=5&o=&fpart=1

I see we're both using 6.0.2, but for some reason mine is broken?

Sponsored Links
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Do you use any hacks on your board?

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
a few, mostly the same ones applied here.

Auto Quote
Customizable Markup
Search Addon
Who's Online
Maximum Online
and a few templates

I think that's it.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
OK, I'm guessing that I've screwed it up in the Customizeable Markup hack since it doesn't work at my development site either. I'll have a look at it anyways.

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Thanks, sorry to make more work for you

Sponsored Links
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
All bugs must be squashed! =]

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Here is a fix for this problem.

Change the markup part of the markup with ID 34 to this (they are both found under Perl Regexp #):
code:
([\n ])([a-z]+?)://([^, \n\r]*?)



And the markup part of the markup with ID 35 to this:
code:
([\n ])www\.([a-z0-9\-]*?)\.([a-z0-9\-.\~]*?)((?:/[^, \n\r]*?)*?)



This should fix the problem, at least it now looks exactly the same for all strange urls I've tried both here at td and at my own forum.

If you don't feel like changing the markups yourself it will be in the next release.

Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
In the spirit of squashing bugs

We've noticed that if we place 2 or more images in a post, using the [ image ] (no spaces) tags, and then we edit it, it changes the tags. For example:

code:

[img]http://www.yourpicturehere1.com[/img]
[img]http://www.yourpicturehere2.com[/img]
[img]http://www.yourpicturehere3.com[/img]



once you edit, it becomes:

code:

[img]http://www.yourpicturehere1.com">

<img src="http://www.yourpicturehere1.com">

<img src="http://www.yourpicturehere1.com[/img]



On the testboard I have set up with no hacks, I don't have this problem.


[:"red"]Lisa[/]
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
I've known that to be a problem for quite some time, but unable to determine what hack caused this But, since my users can't edit posts anyway it doesn't matter, lol

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Hmmm. This works on my site, and I just did a compare of the code for the image markup between my hack and 6.0.1 and they are exactly the same. Something strange is going on! Since it is possible to disallow the image markup from the config I've let it stay in the code and haven't put it in the database. So there really shouldn't be any problem.

If I get some more information I might be able to help, don't know what though. Is there any other code in the post? Have you added some other changes to the undo_markup() function?

Sponsored Links
Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
The problem with the image tags is the same whether there is other text or not.

I've attached a copy of what I have in ubbt.inc.php for the Remove Markup section. I didn't think I made any changes.
Attachments
52025-remove_markup.txt (0 Bytes, 0 downloads)


[:"red"]Lisa[/]
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
No, everything seems to be alright there....

I just found the problem, it is a bug in threads, which I have fixed, but somehow it got lost when I packaged the scripts.

Find these lines in ubbt.inc.php (in the undo_markup function):
code:

if ($config['allowimages']) {
$Body = eregi_replace("<img src="([^\[]*)">","[{$ubbt_lang['TEXT_IMAGE']}]\\1[/{$ubbt_lang['TEXT_IMAGE']}]",$Body);
}



To this:
code:

if ($config['allowimages']) {
$Body = eregi_replace("<img src="([^\>]*)">","[{$ubbt_lang['TEXT_IMAGE']}]\\1[/{$ubbt_lang['TEXT_IMAGE']}]",$Body);
}



Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)