That extension is not allowed on this board...


jon003

Recommended Posts

I have my pictures hosted in Gallery2 on my own server. For some reason, despite them being valid photo links, the board software rejects them.

http://www.outland.net/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=24980&g2_serialNumber=2

To get around this on most software, gallery allows the postpending of extraneous file descriptors, such as:

http://www.outland.net/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=24980&g2_serialNumber=2.png

or

http://www.outland.net/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=24980&g2_serialNumber=2.jpg

But the board has rejected all 3. Can you enable support for that?

Link to comment
Share on other sites

foo.jpg?g2_view=core.DownloadItem&g2_itemId=24980&g2_serialNumber=2.jpg

Nice shop; by the color I'd say that's a Ridgid stroller :)

To embed an image like that, you have to fool the super smart IPBoard software. Here's your original URL:

http://www.outland.net/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=24980&g2_serialNumber=2.jpg

The reason the other tricks work for other boards is that they take the URL at face value and don't parse it. IP Board does and it looks at the absolute path, which is the part before the ?

How I got your image to embed was to add more to the path that is ignored by the outland web server, but examined by IP Board. What I added was this:

http://www.outland.net/gallery/main.php/foo.jpg?g2_view=core.DownloadItem&g2_itemId=24980&g2_serialNumber=2.jpg

Edited by Paul-Marcel
had to fix how IPBoard formatted the URLs
Link to comment
Share on other sites

Not familiar with it. Is that an Invision Power Board plugin??

Sorry, Marc -- should have been more clear. I was directing that comment to Jonathan. Gallery2 has a module that converts their standard URL for pictures into a URL that is more internet forum-friendly. I don't use Gallery2 myself, but from the documentation, it looks like if Jonathan installs that module, his photos will have more normal looking URLs so it will be possible to link to them.

From their FAQ:

If you are wondering why the links look like main.php?g2_view=core.ShowItem&g2_itemId=35 for item links and main.php?g2_view=core.DownloadItem&g2_itemId=35 for image links: These links may look a little weird, especially the DownloadItem link since you'd expect that a image URL looks rather like album/image.jpg, but it is actually a image link. If you want nicer links that look more normal, e.g. image links that end with .jpg, then activate the Gallery 2 URL rewrite module. You can do that by logging into Gallery2 with the administrator account, then click site admin, then Plugins. At the top of the list you should see URL Rewrite, and on the right of that line, click on activate. Follow the on-line instructions from there. When you're successful, a green tick appears next to the plugin name.

http://codex.gallery2.org/Gallery2:FAQ#How_can_I_use_Gallery_2_Images_in_other_Websites.3F

http://codex.gallery2.org/Gallery2:URL_Rewrite

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.