Advanced search  

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

Pages: [1]   Go Down

Author Topic: bbcode for thumbnail linking to full-sized pic  (Read 13355 times)

0 Members and 1 Guest are viewing this topic.

DefenceTalk.com

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
bbcode for thumbnail linking to full-sized pic
« on: December 16, 2003, 05:56:05 pm »

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
Logged
(http://www.defencetalk.com/pictures/signature_cpg.php)

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
bbcode for thumbnail linking to full-sized pic
« Reply #1 on: December 16, 2003, 06:26:24 pm »

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

GauGau
Logged

DefenceTalk.com

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
bbcode for thumbnail linking to full-sized pic
« Reply #2 on: December 17, 2003, 06:18:15 am »

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
Logged
(http://www.defencetalk.com/pictures/signature_cpg.php)

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
bbcode for thumbnail linking to full-sized pic
« Reply #3 on: December 17, 2003, 06:56:41 am »

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

GauGau
Logged

rbl

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 60
    • http://lomoblog.com/
bbcode for thumbnail linking to full-sized pic
« Reply #4 on: December 17, 2003, 12:39:50 pm »

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

DefenceTalk.com

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
bbcode for thumbnail linking to full-sized pic
« Reply #5 on: December 17, 2003, 02:58:13 pm »

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.

Code: [Select]

[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]
Logged
(http://www.defencetalk.com/pictures/signature_cpg.php)

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
bbcode for thumbnail linking to full-sized pic
« Reply #6 on: December 17, 2003, 03:09:37 pm »

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
Logged

DefenceTalk.com

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
bbcode for thumbnail linking to full-sized pic
« Reply #7 on: December 17, 2003, 03:45:42 pm »

Where does code for this bbcode appear?

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

 :roll:
Logged
(http://www.defencetalk.com/pictures/signature_cpg.php)

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
bbcode for thumbnail linking to full-sized pic
« Reply #8 on: December 18, 2003, 12:44:33 pm »

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
Logged

DefenceTalk.com

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
bbcode for thumbnail linking to full-sized pic
« Reply #9 on: December 18, 2003, 03:34:16 pm »

Okay...

So no way to tell it the url of the thumb like there is to tell the url of the picture?
Logged
(http://www.defencetalk.com/pictures/signature_cpg.php)

DefenceTalk.com

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
bbcode for thumbnail linking to full-sized pic
« Reply #10 on: December 24, 2003, 04:04:04 am »

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
Logged
(http://www.defencetalk.com/pictures/signature_cpg.php)

DefenceTalk.com

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
bbcode for thumbnail linking to full-sized pic
« Reply #11 on: January 06, 2004, 08:44:54 pm »

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:

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

(http://www.defencetalk.com/pictures/albums/userpics/JF-17big.jpg)

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:

Code: [Select]
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.

(http://www.defencetalk.com/pictures/albums/userpics/thumb_JF-17big.jpg)
Logged
(http://www.defencetalk.com/pictures/signature_cpg.php)

athlonkmf

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 68
    • http://www.asianfanatics.net/
bbcode for thumbnail linking to full-sized pic
« Reply #12 on: January 10, 2004, 10:06:23 pm »

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

Quote

This 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
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
bbcode for thumbnail linking to full-sized pic
« Reply #13 on: January 11, 2004, 12:09:23 am »

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
« Last Edit: April 26, 2004, 04:25:31 pm by GauGau »
Logged

athlonkmf

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 68
    • http://www.asianfanatics.net/
bbcode for thumbnail linking to full-sized pic
« Reply #14 on: January 11, 2004, 01:14:59 am »

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?
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
bbcode for thumbnail linking to full-sized pic
« Reply #15 on: January 11, 2004, 01:20:15 am »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.036 seconds with 20 queries.