| User | Post |
|
10:19 pm 23 Jul 2008
| Tal
Guest
| | | |
|
| |
|
|
Seemingly at random, some of my users are getting this in place of a linked image when the post [Image Removed by User]
Any idea why or how to fix it?
|
|
|
|
|
In the previous version there was a problem if an image was linked to which was subsequently removed. So 3.2 now checks that the image file exists prior to displaying the post. if the 'file_exists' check returns a negative then this message is substituted.
If you are able to categorically confirm that you have an instance where you are getting the message for an image that most certainly does exist at the URL specified in the post then please send me the URL and i can test it out.
|
|
|
10:31 pm 23 Jul 2008
| Tal
Guest
| | | |
|
| |
|
|
Here's one example -
http://doctorhorrible.net/sf-forum/costumes/dr-horribles-coat/page-2/post-1218/
I thought it might be the space in the URL but the second image in the same post doesn't have a space
On an additional note: In the same thread you'll see a “bug” where the quoted post containing images displays the image not found thinginstead of the icon used to view the pic full size.
|
|
|
|
|
Looks to me that images inserted correctly (as in post 22) with an 'img' tag are oK but those imserted as a link are getting the message. That gives me soemthing to test with anyway.
You can, of course, remove the message with an edit (file 'simple-forum/forum/sf-filters.php line 296 reads:
return '['.__('Image Removed by User', 'sforum').']';
you can chamge that to be:
return;
I can look into the 'quote' thing as well.
|
|
|
11:15 pm 23 Jul 2008
| Tal
Guest
| | | |
|
| |
|
|
THanks, I'll try and remind my visitors to use the image button to insert images, though with the quite sudden influx in visitors this week (almost all of them LOL) anything i post probably wont' be seen by most people.
Thanks for looking into it - I love the forums
|
|
|
|
|
Tickets have been raised.
|
|
|
|
|
FYI, I am having the same problem. Images that are linked using perfectly valid code are resulting in the “Image Removed by User” message. I don’t understand why that should be happening. Valid HTML is valid HTML: any check that’s happening is not working correctly.
Every image on this page is valid:
http://www.waywordradio.org/discussion/open-house-open-mouth-open-call/crossword-tournament-photos/
The code is normal:
<a href=”http://www.waywordradio.org/ACPT-photos/images/barrett-shortz-barnette.jpg” target=”_blank”><img src=”http://www.waywordradio.org/ACPT-photos/thumbnails/barrett-shortz-barnette.jpg”></a>
I do not want my users using the TinyMCE editor; therefore, having them use the image upload button is not going to work. What they need to be able to do–what I need to be able to do–is link to images no matter where they are. I don’t seem to be able to link to the images no matter where I put them on my site!
PS: the code tags don’t work here. They are allowing what is placed inside of them to be rendered.
|
|
|
|
|
I'd suggest you comment out the message. File sf-filters.php (in the /forum folder) in the function sf_check_width($match) (line 275). Just remove the current line and leave return; (don't miss the semi-colon.)
This is sadly a problem that has just spawned a different problem. The truth is that many people link to a picture either at their own site or on a public site and later DO remove them. Secondly, if you do not use the proper HTML image tag - and a correct image tag will include image dimensions - the forum was having problems displaying correctly. So the probem to be solved was the image size and as that also, theoretically, informed us if the image file actually existed it seemed obvious to hook onto thre back of that to explain the image was missing.
Sadly, the php function being used does not seem to be that accurate about reporting back the existece of the image file. Hence the spurious message.
|
|
|
|
|
Removing the message from the code simply makes the message disappear on the post. It doesn’t make the images appear.
|
|
|
|
|
I obviously misunderstood. I thought you preferred not to have the spurious message and obviously that has nothing to do with whether images actually appear or not.
So you said at the beginning that 'Every image on this page is valid:' I followed the link to your site and clicked on the link on your forum page and it took me to flicker and images. So what is wrong with that? Seems to me it has done exactly what you set it up to do.
You also included some html. This is a little confusing to me as you are wrapping the image tag inside a link so I assume your intention is to have a link on the page which the user clicks and then goes to an external site to view. At least that is how this will work.
So I do not understand what you mean by the images are not appearing? if you want them to appear inline in your forum use a proper 'img' tag.
|
|
|
|
|
So you said at the beginning that ‘Every image on this page is valid:’ I followed the link to your site and clicked on the link on your forum page and it took me to flicker and images. So what is wrong with that? Seems to me it has done exactly what you set it up to do.
No, you misunderstand. I did have all the images in proper HTML before. As you can see from my example above, they were coded so that thumbnails appeared in the forum and clicking on the thumbnail made a larger version appear. But after realizing there was a problem, and after posting here, I removed all the image links since the forum doesn’t display them properly and I didn’t want to leave a crappy page visible to all users, even if that’s how the forum software renders it. I had to post the images on Flickr to stop the stupid “Images Removed by User” message from appearing on the page. Who’s going to click on a link that says that if they can’t see the thumbnail?
As I posted in a comment above, normal img tags–just like the ones I posted above DO NOT WORK. They do not work for me, they do not work for anyone else, they do not work for guests, they do not work on old posts, they do not work for new ones, they do not work if you do not wrap them in A tags. No images at all appear in the forums. The function to post images to the forums using normal HTML code is broken. This is an ex-image-posting forum.
|
|
|
|
|
Remove that whole 'if' block I referenced in post 4 above.
Starts with:
if (!$width[0])
|
|
|
7:10 am 8 Oct 2008
| LoGraYThS
Member
| | Mexico City | |
|
| posts 15 |
|
|
I was about to ticket this issue, but the fix that Yellow Swordfish posted in reply #12 worked for me.
Tnx
|
|
|
|
|