Previous Thread
Next Thread
Print Thread
Hop To
Joined: May 2008
Posts: 21
S
stranger
stranger
S Offline
Joined: May 2008
Posts: 21
The gallery is a nice new feature; however, it seems strange that forum users cannot insert the images hosted in the UBB Gallery into a standard thread (the way you would using the IMG command with an online host such as Photobucket).

This is one query I get from forum members all the time and I honestly don't have a good answer for why the UBB Gallery doesn't allow linking.

Can someone explain why the software is set up the way it is and why this 'feature' is missing?

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
it should be in there.. the regex for handling the img tag needed changing to be tolerant of the ? character..

also, i'm not sure, but if you have spider friendly on, it might already work...

if it's not in there, i think rick had mentioned changing it..

i'll have a looksee and make sure smile

Joined: May 2008
Posts: 21
S
stranger
stranger
S Offline
Joined: May 2008
Posts: 21
It doesn't work smile

Joined: May 2008
Posts: 21
S
stranger
stranger
S Offline
Joined: May 2008
Posts: 21
Any news on this? smile

Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
OK, I've found a way of doing this. It's not ideal but it works. I'll use the Triumph thread as an example.

Right click the picture in that thread and select Properties and copy the URL:

https://www.ubbcentral.com/forums/ubbthreads.php/ubb/showimage/id/1243/type/m/Bonnie2_jpg

Now change the /m/ to /f/ in the URL.

https://www.ubbcentral.com/forums/ubbthreads.php/ubb/showimage/id/1243/type/f/Bonnie2_jpg

The code in the URL seems to be:

/t/ = thumbnail
/m/ = medium
/f/ = full

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
or just create a [gal] tag.. that takes the URL and/or ID of the picture

usage:

[gal]URL or ID[/gal]

and it generates the proper markup for you smile

Joined: May 2008
Posts: 21
S
stranger
stranger
S Offline
Joined: May 2008
Posts: 21
Hmmn... neither seem to work for my site. frown

I'm probably being thick but as my image properties don't end in [name].jpg , perhaps that is the issue?

Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
No, you're correct. Because the URLs do not end in .jpg, .gif, etc. they will not display using UBB Code [img] tags.

The only way that they will display is by using HTML <img src=> tags.

I've used your Bugatti Veyron as a test here: Bugatti Veyron

Joined: May 2008
Posts: 21
S
stranger
stranger
S Offline
Joined: May 2008
Posts: 21
Cheers for that! smile

As a matter of interest, (and please excuse my ignorance!), but why hasn't the forum software been set up so that you can easily insert images from the UBB gallery?

As per my original post, wouldn't it make sense to have easy linking between the forum and the forum gallery? confused

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
yes, it would make sense wink

Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Just a matter of only so many hours in a day and what take priority in coding I would think.

As time and testing permits I would assume that it will become available.

Joined: May 2008
Posts: 21
S
stranger
stranger
S Offline
Joined: May 2008
Posts: 21
Originally Posted by ntdoc
Just a matter of only so many hours in a day and what take priority in coding I would think.

I understand that; however, (and obviously imho) while the gallery is a great addition, the key to making it a very useful part of the forum is missing (i.e the ability to link).

Perhaps my forum is quite picture 'rich', because of the topic; nevertheless, any forum life is made better by images linked to text-based threads, isn't it?

Just my 2-cents and ones uttered by someone who doesn't have a clue about coding wink


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
0 members (), 686 guests, and 131 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)