Previous Thread
Next Thread
Print Thread
Rate Thread
Sally #215261 04/21/2002 1:52 PM
Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
Scream,

I think I found it!!!!

AND THE WINNER IS...........


In Addpost.php,

replace


// ---------------
// Add break tags
$PrintBody = str_replace("\n","<br>",$PrintBody);

by


// ---------------
// Add break tags
$PrintBody = str_replace("\n","<br>",$PrintBody);
$PrintBody = str_replace("\r","<br>",$PrintBody); //HACK MAC


and


// ---------------
// Add break tags
$Body = str_replace("\r","<br>",$Body);

by


// ---------------
// Add break tags
$Body = str_replace("\n","<br>",$Body);
$Body = str_replace("\r","<br>",$Body); //HACK MAC


Mac uses different line breaks than Unix and PC.
A browser should be able to convert that right, but IE5 obviously doesn't. I tried different special symbols in REgular expressions, and \r dit it...

If you put it in this beta to all occurences of a break-replace, i could try it out here..
I am sure that my code at least will not harm []/forum/images/icons/wink.gif[/]

Last edited by caymuc; 04/21/2002 1:52 PM.
Sponsored Links
Entire Thread
Subject Posted By Posted
(v.6beta) MAC/IE - Line breaks caymuc 04/21/2002 10:24 AM
Re: (v.6beta) MAC/IE - Line breaks Rick 04/21/2002 6:27 PM
FOUND IT !!!!! caymuc 04/21/2002 8:52 PM
Re: FOUND IT !!!!! JustDave 04/21/2002 8:57 PM
Re: FOUND IT !!!!! caymuc 04/21/2002 9:05 PM
Re: FOUND IT !!!!! caymuc 04/21/2002 11:49 PM
Re: FOUND IT !!!!! JustDave 04/21/2002 11:53 PM
Re: FOUND IT !!!!! Rick 04/22/2002 12:12 AM
Re: FOUND IT !!!!! Rick 04/22/2002 12:14 AM
Re: FOUND IT !!!!! caymuc 04/22/2002 12:48 AM
Re: FOUND IT !!!!! JustDave 04/22/2002 1:05 AM
Re: FOUND IT !!!!! Rick 04/22/2002 1:05 AM
Re: FOUND IT !!!!! Rick 04/22/2002 1:06 AM
Re: FOUND IT !!!!! JustDave 04/22/2002 1:07 AM
Re: FOUND IT !!!!! Rick 04/22/2002 1:09 AM
Re: FOUND IT !!!!! caymuc 04/22/2002 1:12 AM
Re: FOUND IT !!!!! JustDave 04/22/2002 1:15 AM
Re: FOUND IT !!!!! caymuc 04/22/2002 1:37 AM
Re: FOUND IT !!!!! caymuc 04/22/2002 1:50 AM
Re: FOUND IT !!!!! powerlord 04/29/2002 8:29 PM
Re: FOUND IT !!!!! caymuc 04/29/2002 9:59 PM
Re: FOUND IT !!!!! JoshPet 04/30/2002 3:17 AM
Re: FOUND IT !!!!! caymuc 04/30/2002 9:15 AM
Re: FOUND IT !!!!! Tyriel 05/01/2002 7:34 PM
Re: FOUND IT !!!!! caymuc 05/01/2002 8:20 PM

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
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
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,835
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)