Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Image hosting website

Image hosting website

Scheduled Pinned Locked Moved Web Development
comhostingtutorialquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mohammad A Gdeisat
    wrote on last edited by
    #1

    Hi I am creating something like a website that hosts images, those images will be used particularly in forums, I want to find a way to make the images clickable so when a user posts a topic in some forum and uses a hosted image, for example [img]http://www.imagehosting.com/someimage.jpg\[/img\]. I want that image to be displayed in the topic like any normal image but I want it to be clickable like a hyperlink that links to some website. Anyway to do this? I hope so as I need this very badly.

    And ever has it been that love knows not its own depth until the hour of separation Mohammad Gdeisat

    P Y 2 Replies Last reply
    0
    • M Mohammad A Gdeisat

      Hi I am creating something like a website that hosts images, those images will be used particularly in forums, I want to find a way to make the images clickable so when a user posts a topic in some forum and uses a hosted image, for example [img]http://www.imagehosting.com/someimage.jpg\[/img\]. I want that image to be displayed in the topic like any normal image but I want it to be clickable like a hyperlink that links to some website. Anyway to do this? I hope so as I need this very badly.

      And ever has it been that love knows not its own depth until the hour of separation Mohammad Gdeisat

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      :~

      "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

      1 Reply Last reply
      0
      • M Mohammad A Gdeisat

        Hi I am creating something like a website that hosts images, those images will be used particularly in forums, I want to find a way to make the images clickable so when a user posts a topic in some forum and uses a hosted image, for example [img]http://www.imagehosting.com/someimage.jpg\[/img\]. I want that image to be displayed in the topic like any normal image but I want it to be clickable like a hyperlink that links to some website. Anyway to do this? I hope so as I need this very badly.

        And ever has it been that love knows not its own depth until the hour of separation Mohammad Gdeisat

        Y Offline
        Y Offline
        Yusuf
        wrote on last edited by
        #3

        clue: <a>Insert HTML fundamentals here</a>

        Yusuf

        M 1 Reply Last reply
        0
        • Y Yusuf

          clue: <a>Insert HTML fundamentals here</a>

          Yusuf

          M Offline
          M Offline
          Mohammad A Gdeisat
          wrote on last edited by
          #4

          Well, Yusuf, I don't think it is that simple. in a forum topic, the final tag for an image is so at the moment I am only limited to transfer JPEG data. I was wondering if there was a trick to change the MIME response type of the server AND to make the browser accept html response inside an tag.

          And ever has it been that love knows not its own depth until the hour of separation Mohammad Gdeisat

          Y 1 Reply Last reply
          0
          • M Mohammad A Gdeisat

            Well, Yusuf, I don't think it is that simple. in a forum topic, the final tag for an image is so at the moment I am only limited to transfer JPEG data. I was wondering if there was a trick to change the MIME response type of the server AND to make the browser accept html response inside an tag.

            And ever has it been that love knows not its own depth until the hour of separation Mohammad Gdeisat

            Y Offline
            Y Offline
            Yusuf
            wrote on last edited by
            #5

            Mohammad A Gdeisat wrote:

            in a forum topic, the final tag for an image is so at the moment I am only limited to transfer JPEG data

            why is that? Can't you change that to be HTML and send what ever you want including the <img>

            Mohammad A Gdeisat wrote:

            I was wondering if there was a trick to change the MIME response type of the server AND to make the browser accept html response inside an tag.

            of course you can cange the MIME type to what ever you want.

            Response.ContentType

            For list of MIME types see here

            But I don't understand the need to spoof the MIME type instead of changing the forum header to regular HTML?

            Yusuf

            M 1 Reply Last reply
            0
            • Y Yusuf

              Mohammad A Gdeisat wrote:

              in a forum topic, the final tag for an image is so at the moment I am only limited to transfer JPEG data

              why is that? Can't you change that to be HTML and send what ever you want including the <img>

              Mohammad A Gdeisat wrote:

              I was wondering if there was a trick to change the MIME response type of the server AND to make the browser accept html response inside an tag.

              of course you can cange the MIME type to what ever you want.

              Response.ContentType

              For list of MIME types see here

              But I don't understand the need to spoof the MIME type instead of changing the forum header to regular HTML?

              Yusuf

              M Offline
              M Offline
              Mohammad A Gdeisat
              wrote on last edited by
              #6

              Thats exactly what I did, I changed the MIME type to text/html in the custom http handler but when I created a test page with tag I could only see a bad image. no html data was displayed on the page.

              And ever has it been that love knows not its own depth until the hour of separation Mohammad Gdeisat

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups