jon003 Posted September 24, 2010 Report Share Posted September 24, 2010 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? Quote Link to comment Share on other sites More sharing options...
PaulMarcel Posted September 24, 2010 Report Share Posted September 24, 2010 (edited) 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 September 24, 2010 by Paul-Marcel had to fix how IPBoard formatted the URLs Quote Link to comment Share on other sites More sharing options...
thewoodwhisperer Posted September 24, 2010 Report Share Posted September 24, 2010 And for the record, I don't believe there is anything I can do to allow these types of URL's to post. Quote Link to comment Share on other sites More sharing options...
wilburpan Posted September 25, 2010 Report Share Posted September 25, 2010 Jonathan, You're probably already doing this, but are you using the Gallery2 URL rewrite module? [edited to clarify who I was directing this comment to.] Quote Link to comment Share on other sites More sharing options...
thewoodwhisperer Posted September 25, 2010 Report Share Posted September 25, 2010 You're probably already doing this, but are you using the Gallery2 URL rewrite module? Not familiar with it. Is that an Invision Power Board plugin?? Quote Link to comment Share on other sites More sharing options...
wilburpan Posted September 25, 2010 Report Share Posted September 25, 2010 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 Quote Link to comment Share on other sites More sharing options...
jon003 Posted September 27, 2010 Author Report Share Posted September 27, 2010 I haven't loaded up the rewrite module yet. I'm completely lazy and I'm still a revision or two behind on gallery itself. Time to get off my butt! Quote Link to comment Share on other sites More sharing options...
Chester Posted October 13, 2010 Report Share Posted October 13, 2010 I'm so confused ... Quote Link to comment Share on other sites More sharing options...
jon003 Posted October 13, 2010 Author Report Share Posted October 13, 2010 I finally got it working. Took me a while, because I wanted to support the old and the new formats. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.