Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 12
Newbie
Newbie
Offline
Joined: Aug 2000
Posts: 12
ubbthreads v6.3
MySQL v4.0.12
RedHat 8.0

Problem. I have a custom script that takes the top 5 posts to a selected forum and 'scrolls' them on the screen. This normally works fine however, I just upgraded to ubbthreads6.3 and noticed the script 'broke' after I edited a post. After an hour and a half I finally figured out that somehow the edit is producing newline characters in the value fields.

I figured this would be a quick php fix with something like:
Code
$Body = ereg_replace("\n", " ", $Body);  


However, that doesn't seem to work (for some bizzare reason that I can't figure out.)

Questions:
<li> Has anyone noticed the newline characters in the mysql value fields after a post is edited? (body)
<li> Is there a fix?
<li> Is this MySQL version specific?

Many thanks to anyone that can help ...oh, also, when a post is edited, the HTML in the post remains except the bold tags turn into UBB Code bold tags. Is there a fix for this?

Thanks,

- Simon

Sponsored Links
Joined: Aug 2000
Posts: 12
Newbie
Newbie
Offline
Joined: Aug 2000
Posts: 12
UPDATE: It's not the /n it's the /r that's being created and since I figured that out, the php ereg works now.

Still have the problem with the UBB Code bolds though.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
This sounds more like script troubles. I'd make sure you're using all stock scripts and test with posts made under stock scripts.

Also, one question. Do this query for a post you're having trouble with


SELECT B_Markup
FROM w3t_Posts
WHERE B_Number = xxxxxx


Put the post number where I have xxxxx


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:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 700
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 19
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)