Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - bug: image/url broken links
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

bug: image/url broken links

 Post Reply Post Reply Page  12>
Author
Badaboem View Drop Down
Senior Member
Senior Member


Joined: 12 April 2002
Location: Netherlands
Status: Offline
Points: 600
Post Options Post Options   Thanks (0) Thanks(0)   Quote Badaboem Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 24 November 2003 at 8:20am
When typing out the URL code you need to make sure there are no carrige returns.
Back to Top
Badaboem View Drop Down
Senior Member
Senior Member


Joined: 12 April 2002
Location: Netherlands
Status: Offline
Points: 600
Post Options Post Options   Thanks (0) Thanks(0)   Quote Badaboem Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
thekiwi View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 23 November 2003
Location: New Zealand
Status: Offline
Points: 392
Post Options Post Options   Thanks (0) Thanks(0)   Quote thekiwi Quote  Post ReplyReply Direct Link To This Post 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 ...

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Badaboem View Drop Down
Senior Member
Senior Member


Joined: 12 April 2002
Location: Netherlands
Status: Offline
Points: 600
Post Options Post Options   Thanks (0) Thanks(0)   Quote Badaboem Quote  Post ReplyReply Direct Link To This Post Posted: 04 December 2003 at 6:53pm
Originally posted by thekiwi 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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.