bbcode for thumbnail linking to full-sized pic bbcode for thumbnail linking to full-sized pic
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

bbcode for thumbnail linking to full-sized pic

Started by DefenceTalk.com, December 16, 2003, 05:56:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DefenceTalk.com

Hey, thanks for this neat feature.

I got an idea:

Why not generated a bbcode with THUMBNAIL of the picture but it links to the full/big size of same thumbnail?

Something like this:

http://defencetalk.com/forums/viewtopic.php?p=3981#3981

First you see demonstration of this mod but the small pic is what im talking about...

Thanks
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

Joachim Müller

split this posting from another thread in the mods section, because it isn't related.

GauGau

DefenceTalk.com

Thanks gaugau.

I thought it was related.

So anyone wana take shot at it?

What should I look at in order for this to work?

I looked displayimage.php, thumbnail.php, etc. that maybe i can find something like $path_to_thumb like $path_to_pic but it aint that easy i guess.

If anyone can make this happen, I ll fall in love with cpg all over again.

Take a look at this-pictures:
http://www.defencetalk.com/forums/viewtopic.php?t=531

HOW NEAT IS THAT??? HAAN?


Any takers/helpers?  :cry:  :cry:

Thanks
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

Joachim Müller

I don't have the slightest idea how to accomplish this, nor do I see the benefit of such a mod.

GauGau

rbl

Gaugau is right. Where do you intend to use such feature? In the comments?

DefenceTalk.com

Okay.... this is kinda related to this mod:

http://forum.coppermine-gallery.net/index.php?topic=431

But instead of LINKING the BIG picture and having to deal with scroll bar at the bottom of your IE window...

it would be nice if a bbcode was generated with PICTURE OF THUMBNAIL of the pic and LINK to the bigger pic. Like this:

http://defencetalk.com/forums/viewtopic.php?p=3981#3981

And this:

http://www.defencetalk.com/forums/viewtopic.php?t=531

Link thumbnails to full size pic of the thumbnail.


[url=http://www.defencetalk.com/pictures//pictures/displayimage.php?pos=-1291][img]http://www.defencetalk.com/pictures/albums/UK-RAF-EuroF/thumb_Raf_eurofighter2.jpg[/img][/url]
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

Joachim Müller

yeah, whatever, but where is this super duper bbcode supposed to appear in? Album view? Category view? Comments section?
In other words: where, for christ's sake, do you want to be able to insert the bbcode? How's this magical bbcode to know which thumbnail and which pic to refer to? The examples you give just lead to your board, nothing special there that can't already be done...

GauGau

DefenceTalk.com

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

Joachim Müller

smal wonder you're refering to some simple lines produced by Mathibus - they're not doing anything special (at least nothing that couldn't have been done before) - you have to enter the paths manually. Use the bbcode that already exists - the same thing that works on your board should work in coppermine as well...

GauGau

DefenceTalk.com

Okay...

So no way to tell it the url of the thumb like there is to tell the url of the picture?
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

DefenceTalk.com

Heres something that might provide solution. I don't know how because i aint a programmer... but maybe those who are can figure it out? Please?

Okay, this website: www.gupshup.org - allows users to upload their pics using the UPLOAD link on top menu and when the pic is uploaded this bbcode is generated:

[thumb=E]123456789.JPG[/thumb]

The user puts this in their post and then a thumb appears in the post linking to the FULL size pic.

Maybe, somehow we can integrate this same feature into coppermine, someday? Just an idea.

Thanks
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

DefenceTalk.com

Okay, here is another way overcome this:

http://www.defencetalk.com/forums/viewtopic.php?p=5131#5131 (hotlinking not possible so go to this thread to view)

Gallery:

Here is an easy way to display THUMBs using the BBCODE already generated by the gallery software and is listed under picture INFO icon:

the gallery gives you this bbcode so that you can display picture on a forum:

bbCode: [url=http://www.defencetalk.com//pictures/displayimage.php?pos=-1718][img]http://www.defencetalk.com/pictures/albums/userpics/JF-17big.jpg[/img][/url]

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Falbums%2Fuserpics%2FJF-17big.jpg&hash=61b3946d281a487a2f0d14c06e06a3e401412764)

Now, that links to BIG picture, which makes the scroll bar at the bottom to overcome that and to display just a thumbnail of the picture while still linking into the bigger pic use this method:

Using the code already generated, just add " thumb_ " in front of the picture name so for example:

bbCode: [url=http://www.defencetalk.com//pictures/displayimage.php?pos=-1718][img]http://www.defencetalk.com/pictures/albums/userpics/THUMB_JF-17big.jpg[/img][/url]

This would display thumbnail without taking the thread out of format.

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Falbums%2Fuserpics%2Fthumb_JF-17big.jpg&hash=0bc42329c91a20f5ab66cae1b62e339c2c797012)
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

athlonkmf

I can't figure a way to link to the thumbnail in the bbcode yet (didn't had much time to browse through the code and such..)

but I managed to link to the resized intermediate picture instead

see here how to do it:
http://forum.coppermine-gallery.net/viewtopic.php?p=13067#13067


And I quote myself here

QuoteThis feature is REALLY REALLY handy. Hope that the devvers could implement an advanced version of this in the next version.

For instance, where you can select in adminsettings WHICH type of image you want to show in BBcode (thumbnail|resized|original)


And this is an example how the bbcode should/can be displayed gaugau

http://gallery.kmfstudio.com/dsample/displayimage.php?pos=-130
My coppermine gallery with 35000 images: http://www.asianfanatics.net/
Another coppermine gallery with images over the 1MB http://dsample.kmfstudio.com

Joachim Müller

#13
Although I don't understand the benefit of it, just to end the discussion: you can always use the existing bbcode to link to anything you want:What's so magical about this? What do you need a mod for? This works "out-of-the-box"...

GauGau

athlonkmf

It's usefull because it's userfriendly :?
If you have to insert a bunch of pictures in a forum, then you really don't want to edit each codelisting seperately. Just copy and paste is much easier.

I guess that when there are people who wants such mods, there is some demand for it?
My coppermine gallery with 35000 images: http://www.asianfanatics.net/
Another coppermine gallery with images over the 1MB http://dsample.kmfstudio.com

Joachim Müller

everybody's welcome to code such a mod, it'll be published here in the mods section and/or in the downloads, but you can't expect the dev team to code everything people demand as feature requests.

Have a shot at it: please code this mod if you need it.

GauGau