| Author |
Topic Search Topic Options
|
Badaboem
Senior Member
Joined: 12 April 2002
Location: Netherlands
Status: Offline
Points: 600
|
Post Options
Thanks(0)
Quote Reply
Topic: bug: image/url broken links Posted: 24 November 2003 at 6:48am |
I've had a strange issue with osx and OS 9.2.2 users on my site.
Images are broken. They come out like this:
1:
24.jpg">
2:
 jpg">
(It shows that jpg[/img] is broken off and placed on a new line causing a broken image to appear.)
Borg..if you edit this post you will see that.
3:
Broken links. Same issue as 2. (.html[/url] is placed on the next line).
This happens both in 7.5 and 7.6.
Can this be resolved?
I think i should be an alpha/beta tester...i always come up with os related issues
Edited by Badaboem
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 24 November 2003 at 8:20am |
|
When typing out the URL code you need to make sure there are no carrige returns.
|
|
|
 |
Badaboem
Senior Member
Joined: 12 April 2002
Location: Netherlands
Status: Offline
Points: 600
|
Post Options
Thanks(0)
Quote Reply
Posted: 24 November 2003 at 10:00am |
|
That's not it. Users use the wysiwyg editor to fill in their links and upload their images.
So the url is filled in correctly by the users, but the editor screws it up by putting part of the code on a new line, and the editor fills in the img tags + image url after upload and again puts part of the code on the next line.
It's not the users' mistake it seems, but RTE issue.
RTE is enabled for certain browsers and it seems that osx or 9 users even have the issue when using internet explorer.
Please look into this..it's not as simple as someone actually putting in a carrige return.
Edited by Badaboem
|
 |
thekiwi
Mod Builder Group
Joined: 23 November 2003
Location: New Zealand
Status: Offline
Points: 392
|
Post Options
Thanks(0)
Quote Reply
Posted: 24 November 2003 at 1:39pm |
I've had a strange issue with osx and OS 9.2.2 users on my site.
Images are broken. They come out like this:
Quite a few years ago we had a simlar problem with Macintosh users and a forum install we had (O'Reillys Webboard I think it was).. and if I recall correctly it was their browser which was forcing a carraige return in the editing interface we used... I'll try and find out what we found ...
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 25 November 2003 at 9:03am |
|
The RTE editor won't work with IE on the Mac so not an RTE issue there.
RTE features work with Mozilla on the Mac, in which case they should be
able to use the URL button to add URL's and not use forum codes.
|
|
|
 |
Badaboem
Senior Member
Joined: 12 April 2002
Location: Netherlands
Status: Offline
Points: 600
|
Post Options
Thanks(0)
Quote Reply
Posted: 04 December 2003 at 6:53pm |
thekiwi wrote:
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
I've had a strange issue with osx and OS 9.2.2 users on my site. Images are broken. They come out like this:
<P dir=ltr>Quite a few years ago we had a simlar problem with Macintosh users and a forum install we had (O'Reillys Webboard I think it was).. and if I recall correctly it was their browser which was forcing a carraige return in the editing interface we used... I'll try and find out what we found ... |
That would be great.
I've been testing with a mac user for about two hours now.
Used os systems: panther and jaguar
Used browsers : Internet explorer, safari
Issue,
On all mac os systens and browsers long images names uploaded with the upload button will not place the image tags correctly after hitting the submit button.
Checked for carriage returns,
Large image files are displayed like this in the post reply box (without ")
["img"]/c4dportal/uploads/GruvDone/ZAE_Track_-
_Version_2.jpg["/img"]
This is no issue when posting large image names on a windows os, but mac os and browser thinks there is a carriage return after submitting while there is none.
Before posting the message we have checked for a carriage return by deleting spaces until it deletes one character of the first line of the image tag..then that character is entered again. In the end no empty spaces, or gaps could be deleted. This is to make sure it's not an issue of the post reply box itself after the image is uploaded and the image tags are placed.
In short...when an image name is long, it's broken off in both windows and mac because of the size of the message textfield box. Windows handles the brakeoff correctly, while mac thinks it's a carriage return after posting the message. The result is a broken image.
Hopefully this can be fixed somehow. I've made the textfield wider so long url names will still fit on one line, but obviously this is not an ideal sollution.
Edited by Badaboem
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 05 December 2003 at 5:20am |
Try changing the loop in the file functions_filters.asp at line 715 to the following:-
'Loop through each of the changed links
For lngLoopCounter = 1 To Ubound(saryHTMLlinks,2)
'Strip line carridge returns for MAC users
saryHTMLlinks(2,lngLoopCounter) =
Replace(saryHTMLlinks(2,lngLoopCounter), vbCrLf, "", 1, -1, 0)
'Replace the code with the link
strTempOutputMessage = Replace(strTempOutputMessage,
saryHTMLlinks(1,lngLoopCounte r), saryHTMLlinks(2,lngLoopCounter), 1,
-1, 0)
Next |
|
|
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 05 December 2003 at 5:23am |
If that doesn't owrk try:-
'Loop through each of the changed links
For lngLoopCounter = 1 To Ubound(saryHTMLlinks,2)
'Strip line carridge returns for MAC users
saryHTMLlinks(2,lngLoopCounter) =
Replace(saryHTMLlinks(2,lngLoopCounter), Chr(10), "", 1, -1, 0)
'Replace the code with the link
strTempOutputMessage = Replace(strTempOutputMessage,
saryHTMLlinks(1,lngLoopCounte r), saryHTMLlinks(2,lngLoopCounter), 1,
-1, 0)
Next |
|
|
|
 |