I am trying to setup a custom image hosting solution for a phpbb forum. I know there are ways to host images on the forum but for my purpose I must use an external website to host the images.

I already have a custom image hosting script written and functioning but I am stuck on what is likely the simplest part. I want the bbcode link to be automatically inserted into the users forum post once they submit their image.

There is currently a company that offers this functionality called postimage.org but in recent years they have started adding adult oriented advertisements to hosted images and I cannot allow this as I have a family oriented forum and that is the last thing my members want to see.

Any help is appreciated.

Edited by dark_storm83

4 Years
Discussion Span
Last Post by diafol

This sounds a but tricky.

  1. User uploads their image to your server via the phpBB forum.
  2. php grabs the image file and sends it to your 'image hosting site' - I assum you have an API for this.
  3. php gets the return value (via API) - which could be the image filename or url or the new image.
  4. get the whole shebang into some BBCode.

is that what you're doing?

Perhaps a mod like this?


Edited by diafol


That is pretty much exactly what I am trying to do. That is what the old image hosting site did.

I am having trouble with the image hosting side, I am trying to setup the hosting script to send the bbcode back when the user submits their image.


Yes the bbcode stuff is done on my server. Just like you said I simply need to return the url of the uploaded image.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.