Support > cpg1.5 miscellaneous
CPMfetch for 1.5.6
gmc:
--- Quote from: MG on December 30, 2018, 02:30:17 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?
--- End quote ---
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: ---<?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();
?>
--- End code ---
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...)
MG:
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.
lurkalot:
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
ron4mac:
You can try changing that line to:
--- Code: --- return microtime(true)*1000000;
--- End code ---
lurkalot:
--- Quote from: ron4mac on October 11, 2019, 10:07:59 pm ---You can try changing that line to:
--- Code: --- return microtime(true)*1000000;
--- End code ---
--- End quote ---
Thanks. That looks like it done the trick. I'll monitor it for a while. ;)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version