CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    attached images usage

    When an image is attached to a post, it is automatically displayed at the end of the post (however, this happens if there are not more than 2 images attached). I was wondering if there can be created a way to have it displayed anywhere in the post, for instance using the img tag. Say I attached a PNG file called foo.png, if I use
    [img=foo.png]
    it is displayed in that place, just like images are displayed in the articles.

    Can this be done? I'm sure many would like to have it implemented.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  2. #2
    Join Date
    Aug 2002
    Location
    Madrid
    Posts
    4,588

    Re: attached images usage

    Yeah, that would be nice indeed. It currently doesn't work because of a security feature in vBulletin which essentially means that you can't include images that are generated from a non-fixed URL. I'm not sure how hard it would be to implement though, but I'm guessing that it's not trivial.
    Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
    Supports C++ and VB out of the box, but can be configured for other languages.

  3. #3
    Join Date
    Sep 2000
    Location
    Indianapolis
    Posts
    6,758

    Re: attached images usage

    As Yves illuded, images uploaded to the forum are stored in a database. As such, the URLs to them are not fixed. There is a simple setting in vBulletin that would let us allow non-fixed URLs in IMG tags; however, allowing this is a huge security risk. It was therefore turned off. This was done after someone abused it.

    Brad!
    -----------------------------------------------
    Brad! Jones,
    Yowza Publishing
    LotsOfSoftware, LLC

    -----------------------------------------------

  4. #4
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: attached images usage

    So, are there any chances to have it reactivated?
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured