Print Page | Close Window

bug: image/url broken links

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=7548
Printed Date: 09 April 2026 at 1:00am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: bug: image/url broken links
Posted By: Badaboem
Subject: bug: image/url broken links
Date 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



Replies:
Posted By: WebWiz-Bruce
Date Posted: 24 November 2003 at 8:20am
When typing out the URL code you need to make sure there are no carrige returns.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Badaboem
Date 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.


Posted By: thekiwi
Date 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 ...



Posted By: WebWiz-Bruce
Date 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.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Badaboem
Date 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.


Posted By: WebWiz-Bruce
Date 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



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: WebWiz-Bruce
Date 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



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Badaboem
Date Posted: 09 December 2003 at 6:06am
First fix works so far. I'll let u know if users stumbe upon issues again.


Posted By: Badaboem
Date Posted: 12 August 2004 at 6:51am
Well, here's some news for you mac lovers.

The fix that has been implemented half a year ago, is now causing issues because the safari mac browser has been fixed.

Please search functions_filters.asp for the line that contains the word ''mac'' and delete it if you don't want frustrated mac users on your site.

Borg, you can remove this fix in future versions of wwf. It causes issues now


Posted By: WebWiz-Bruce
Date Posted: 12 August 2004 at 7:40am
I wish they would sortout the Safari Browser 

Thanks for letting me know

I always suggest to Mac users to use Mozilla anyway as it is a far better browser and also is RTE enabled so the WYSIWYG Editor can be used for creating posts.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Badaboem
Date Posted: 12 August 2004 at 4:19pm
ok...not entirely sorted out yet..sigh.. It bothers me as much as you Borg .

The old fix in place or removed doesn't make a difference in some cases.

here's what happens.

database field text from a post that failed and shows that one return after text doesn't work, and two returns allows for a normal image tag:



Some more screenshots of what happens in the wysiwyg editor before and after posting with one return after text:





I would be eternally greatfull for a hopefully final sollution to this mac problem.

ps. files are uploaded and displayed correctly, so I'm guessing it has something to do with the image tag filters.


Posted By: WebWiz-Bruce
Date Posted: 13 August 2004 at 4:01am
There is nothing in the filters that would hack off the first part of an image tag.

The only thing I can guess is that for some reason Safari is not sending the entire post to the server for some reason.

I still think safari is a naff browser and would suggest to your Mac users to use Mozilla instead.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Badaboem
Date Posted: 13 August 2004 at 10:57am

Ok...I've been stubbern and kept on testing until I found the issue. 9 test pages in total lead to this simple conclusion.

I've been testing like a mad man on my site along with some helpful mac users, and couldn't figure out what caused image and file uploads to be inserted wrongly into the post (safari browser), until now.

I've change the upload path for files and images from
/c4dportal/uploads
to
c4dportal

Mind you the first path was working perfectly for pc users posting images and files, but for some reason mac posted items are totally screwed up. Images and files are uploaded, but when posted half of the tag is missing.  

Something interesting to look into.



Posted By: webwiser
Date Posted: 13 August 2004 at 7:04pm

Originally posted by Badaboem Badaboem wrote:



 

cool skin ! nice work !




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net