Advanced search  


cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.

Pages: 1 ... 3 4 5 6 [7]   Go Down

Author Topic: CPMfetch for 1.5.6  (Read 138885 times)

0 Members and 4 Guests are viewing this topic.


  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 784
    • GMC Design Photo Gallery
Re: CPMfetch for 1.5.6 with vBadvanced
« Reply #120 on: December 30, 2018, 08:34:38 pm »

One thing I don't now how to solved:

Everything works fine but the thumbnail in module shows from left side (check image from attachments) 
I would like to show images to center not from lef side.
BTW is there a chance to show some info below thumbnails something like title this image and autor?
CPMFetch provides ability to pass many 'options' parameters to format the displayed pictures as you would like - and adding information... Take a look at the documentation provided with the plugin (in the cpmfetch/docs/basic directory.)  If you don't have it loaded - you can view it here:
There is a reference to a $format parameter - but I believe that is all integrated in $options now.

An example of how to use:
Code: [Select]
include "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
$options = array( "tablestyle" => "csstable""subtitle" => "File name is: {{pFilename}}); 
$objCpm->cpm_viewLastAddedMedia(1,1, $options);

The above will add css tag to the table statement (<table class="csstable">) and add filename below each picture.
Many other options possible...
(Of course your CSS tags would then be defined in your sites stylesheet to provide the centering or whatever is desired...)
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money


  • Contributor
  • Coppermine newbie
  • ***
  • Country: pl
  • Offline Offline
  • Gender: Male
  • Posts: 12
    • om
Re: CPMfetch for 1.5.6
« Reply #121 on: February 01, 2019, 10:04:29 pm »

Thanks for help. A lot of time has elapsed since you answered me, but in the end I managed to add the right code for the css function. Thank you again.
Forum Vbulletin 4.1.11  / Portal vBadvanced CMPS v4.2.0, bridged with CPG 1.5.46, cpmfetch 2.0.0
Pages: 1 ... 3 4 5 6 [7]   Go Up

Page created in 0.049 seconds with 21 queries.