ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

[img] BBCode not usable in forums?

September 05, 2010 5:47am

Subscribe [5]
  • #1 / Sep 05, 2010 5:47am

    Hello,

    I have a client asking me why the following code (as copied from the user guide) is not allowing them to hotlink to images stored on other servers in messages posted to their EE forum, even though the Allow Image Hot linking? setting is set to Yes in the default preferences for the forum. Instead of the image appearing in cases like this, the URL for the image appears as a link.

    [img]http://www.example.com/pic.jpg[/img]

    This client is currently running:

    ExpressionEngine 1.6.9 Build:  20100430
    ExpressionEngine Discussion Forum - Version 2.1.2 (20090723)

    Does anyone have any idea why this is not working as expected?

  • #2 / Sep 05, 2010 6:19pm

    Greg Salt

    3988 posts

    Hi Garden-variety Fool,

    Is it possible to update to the latest version (2.2.0)? I can’t recreate the issue on a 2.2.0 forum.

    Cheers

    Greg

  • #3 / Sep 05, 2010 6:45pm

    Thank you for the response, Greg.

    I tried this on the forum for another site (one for a different client, hosted on a different server, etc.) that is version 2.2.0 (20100625), but I got exactly the same results there as well, so although updating the forums is not a problem, I’m not sure that will solve the problem.

    Is this perhaps due to a configuration setting or something?

  • #4 / Sep 06, 2010 3:55am

    John Henry Donovan

    12339 posts

    Garden-variety Fool,

    The hot linking of the image is intended behaviour I believe even with pMcode the predecessor to BBCode. It is not meant to embed the image within your post.

    Does that make sense?

  • #5 / Sep 06, 2010 9:21am

    Thank you for the response, John.

    Garden-variety Fool,

    The hot linking of the image is intended behaviour I believe even with pMcode the predecessor to BBCode. It is not meant to embed the image within your post.

    Does that make sense?

    No, I’m afraid it does not, at least not to me. The documentation for that entry says, “You can easily display an image,” which suggests that the purpose of that tag is, in fact, to show an image within the post. Furthermore, conventional use of BBCode, as shown in the example at Wikipedia, is clearly for this tag to display the image located at the URL enclosed within.

    The whole reason this became an issue in the first place is because the client is expressing frustration at not being able to get images to show up this way, as they are accustomed to being able to do in other forum software. At the moment, the client is contemplating switching to another forum application, one that is “easier” to work with than the EE forums (they are currently thinking of switching to SMF, where you can see that the documentation shows the ability to post images using this tag). Doing this will, of course, break the integration between the rest of the EE site and the forums (which is the most frequently visited part of this particular client’s site), at which point I’m pretty sure someone will suggest moving away from EE for the content management side of things as well.  It might sound pretty ridiculous, but the client is seriously that unhappy about the inability to display images in forum posts this way. Unhappy enough to throw out an entire EE-driven site and start over again with something else.

    Incidentally, here is the example from the Wikipedia page, pasted exactly as is below. In true BBCode, this should show an image of a house, but what do you see instead? A link.

    http://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/Go-home.svg/100px-Go-home.svg.png

    How, then, are users supposed to add images to forum posts? Is the only option to allow all HTML (a practice that is clearly not recommended) and have the users post something like the following?

    ...

    I hope that’s not the case.

  • #6 / Sep 07, 2010 3:30am

    John Henry Donovan

    12339 posts

    Garden-variety Fool,

    I have put your case to the devs and await a reply as I do remember this working like you describe a number of yeas ago.

    It has been a holiday weekend in the US so they will need a little catchup time after getting back to work today.

    Thanks for you patience.

  • #7 / Sep 07, 2010 5:55am

    Thank you, John!

    I look forward to their response!

  • #8 / Sep 07, 2010 2:56pm

    Brandon Jones

    5500 posts

    Thanks for your patience; we’ll let you know when we have more info.

  • #9 / Sep 09, 2010 7:00pm

    Brandon Jones

    5500 posts

    Hi Garden-variety Fool,

    You mentioned you have Allow Image Hot linking? set to Yes in your default preferences, but if you click Edit next to the actual forum, is image hotlinking enabled under Text and HTML Formatting there?

  • #10 / Sep 10, 2010 11:03am

    Thank you, Brandon, that seems to be what the problem was. After updating the forums that had been created when the default preferences were still set not to allow hotlinking, it seems to now work as expected.

    The client is much happier now, so thank you very much for pointing that out!

  • #11 / Sep 10, 2010 11:04am

    Ingmar

    29245 posts

    Glad to see Brandon was able to help. Please post again in case there’s anything else.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases