On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

In preparation for the release of Simple:Press Version 4.0, the Support Forum has moved to a new site dedicated to the plugin. This will also be the future home for Simple:Press Forum.


Version 3.1.4 will still be available for download here in the short term.


For the support forum - and to visit our new site and to get details of version 4.0, click on the logo to take you to simplepressforum.com

This forum is currently locked - access is read only
Current User: Guest
Please consider registering

 
Search Forums:


 




Images in Posts

UserPost

10:19 pm
23 Jul 2008


Tal

Guest

1

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?

10:26 pm
23 Jul 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

2

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

3

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.

11:07 pm
23 Jul 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

4

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

5

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 :)

11:36 pm
23 Jul 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

6

Tickets have been raised.

7:21 pm
29 Jul 2008


Grant Barrett

Member

posts 62

7

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.

7:55 pm
29 Jul 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

8

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.

8:22 pm
29 Jul 2008


Grant Barrett

Member

posts 62

9

Removing the message from the code simply makes the message disappear on the post. It doesn’t make the images appear.

8:47 pm
29 Jul 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

10

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.

3:38 pm
2 Aug 2008


Grant Barrett

Member

posts 62

11

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.

4:23 pm
2 Aug 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

12

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

13

I was about to ticket this issue, but the fix that Yellow Swordfish posted in reply #12 worked for me.

Tnx

10:08 am
8 Oct 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

14

Good to hear…



Reply to Topic: Images in Posts

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 6 + 9        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

10 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 16

Topics: 2068

Posts: 14091

Members:

There are 1003 members

There are 837 guests


Yellow Swordfish has made 5252 posts

Top Posters:

Mr Papa - 1602

-Radio- - 558

ovizii - 114

jfv - 82

angelic007 - 72

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.4 (Build 357)