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 ... 3 4 5 6 [7]   Go Down

Author Topic: CPMfetch for 1.5.6  (Read 331158 times)

0 Members and 2 Guests are viewing this topic.

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • 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: 949
  • +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.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
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: 949
  • +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.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

programsgulf

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: CPMfetch for 1.5.6
« Reply #125 on: June 10, 2020, 06:07:18 am »

can someone please re-upload the code changes in install.php I'm just seeing scroll bars .
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: CPMfetch for 1.5.6
« Reply #126 on: June 10, 2020, 02:22:36 pm »

can someone please re-upload the code changes in install.php I'm just seeing scroll bars .
Make sure you are using version 2.0.1 of CPMfetch.
Logged

panhead

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 108
Re: CPMfetch for 1.5.6
« Reply #127 on: July 20, 2020, 04:22:54 pm »

I am using this code:

Code: [Select]
include_once "../cpg/cpmfetch/cpmfetch.php";
$objCpm = new cpm("../cpg/cpmfetch/cpmfetch_config.php");
$options = array( 'imageheight' => '120' );
$objCpm->cpm_viewRandomMediaFrom("cat=4,6, 12",1, 8, $options);
$objCpm->cpm_close();

But the images shown are higher than 120. What am I doing wrong?
Logged

AnnieHoney

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: CPMfetch for 1.5.6
« Reply #128 on: May 16, 2024, 09:15:48 pm »

Sorry for ressucitating such an old thread.

On version 2.0.1 and php 8 I get a
Quote
Deprecated: Creation of dynamic property cpm::$cfg is deprecated in /home2/tomcruis/public_html/gallery/cpmfetch/cpmfetch_dao.php on line 96

I tried installing that dev version, but it seems to support mysql only and I'm on mysqli, so all I get is a blank page.
Is there a fix for this?

Also, what's the code for Latest Added Albums, not media?
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4886
    • Windsurf.me
Re: CPMfetch for 1.5.6
« Reply #129 on: Yesterday at 05:44:15 pm »

Unfortunately, the developer of this plugin has long since left these forums Shame as he was a lovely chap. So any fix would need to come from the community.
Logged
It is a mistake to think you can solve any major problems just with potatoes.
Pages: 1 ... 3 4 5 6 [7]   Go Up
 

Page created in 0.022 seconds with 19 queries.