Advanced search  

News:

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.
[more]

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

Author Topic: CPMfetch for 1.5.6  (Read 147016 times)

0 Members and 1 Guest are viewing this topic.

gmc

  • 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: http://greggallery.gmcdesign.com/cpmfetch/docs/basic/
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]
<?php
    
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);
    
$objCpm->cpm_close();
?>

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...)
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

MG

  • 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.
Logged
Forum Vbulletin 4.1.11  / Portal vBadvanced CMPS v4.2.0, bridged with CPG 1.5.46, cpmfetch 2.0.0

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 903
  • +Tinyportal Support team.
Re: CPMfetch for 1.5.6
« Reply #122 on: October 11, 2019, 09:41:23 pm »

Looks like my host bumped up to php 7.1.32 and my SMF error log is full of these errors,

https://ca---------.com/forum/index.php?
8: A non well formed numeric value encountered
File: /home/camxxxxx/public_html/gallery/cpmfetch/cpmfetch_dao.php
Line: 1692
Logged
Running SMF 2.0.15  / Tinyportal 1.6.4, bridged with Coppermine 1.6.06, plus cpmfetch 2.0.0

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1306
Re: CPMfetch for 1.5.6
« Reply #123 on: October 11, 2019, 10:07:59 pm »

You can try changing that line to:
Code: [Select]
return microtime(true)*1000000;
Logged

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 903
  • +Tinyportal Support team.
Re: CPMfetch for 1.5.6
« Reply #124 on: October 11, 2019, 10:51:34 pm »

You can try changing that line to:
Code: [Select]
return microtime(true)*1000000;

Thanks.  That looks like it done the trick.  I'll monitor it for a while.  ;)
Logged
Running SMF 2.0.15  / Tinyportal 1.6.4, bridged with Coppermine 1.6.06, plus cpmfetch 2.0.0
Pages: 1 ... 3 4 5 6 [7]   Go Up
 

Page created in 0.03 seconds with 21 queries.