With reference to this thread http://forum.coppermine-gallery.net/index.php/topic,65412.0.html With Phill's help I have managed to pull the images to my font page nicely. I do however have a problem pulling the owners name, and the comment count below the thumbs.
Link http://cctestsite.info/
Phill, do you also have to change the code to pull the owner name and the comment count? to make it work in 1.5.6.
This is what it shows at the moment, Image title (ok), Owner name(not working), Amount of views(ok), Amount of comments(not working).
Hoverfly
Image By pOwner_name
3 Views
Comments pComCount
This is the code I'm using in a php block
echo '<div id="cpmfetch">';chdir("../gallery/cpmfetch/");
include "cpmfetch.php"; $objCpm = new cpm();
$options = array("subtitle" => "<center>{{pTitle}} <br> <center> <FONT color=#1A5EFF size=2>Image By</FONT></STRONG> {{pOwner_name}} <br>{{pHits}} Views <center> <FONT color=#3399FF size=2>Comments</FONT></STRONG> {{pComCount}} </center>");
$objCpm->cpm_viewLastAddedMedia(3,4,$options);$objCpm->cpm_close();chdir("../../");
echo '<a href="http://cctestsite.info/gallery/thumbnails.php?album=lastup&cat=0?action=gallery"><u><b>View more latest images</b></u></a>';
if ($context['user']['is_logged'])
if ($context['user']['is_logged'])
{
$thecat = 10000 + $context['user']['id'];
echo ' •
<a href="http://cctestsite.info/gallery/index.php?cat='. $thecat .'" alt="My Gallery"><u><b>My Gallery</b></u></a>';
}
To make cpmfetch 100% compatible with 1.5.x will take a bit of work. As Vuud is working on a native version there is little point digging into the code too deeply to get all the features working. The code I pasted was a simple mod so the script installed and ran on a basic level, nothing more.
Please be patient, I am sure Vuud will get the latest all singing version done as and when he can.
Thanks Phill. I thought that might be the case, but thought I'd check.
I can remove those options for now.
Cheers.
I am also waiting for vuud to give us excellent new version for Coppermine 1.5.6 :)
Locking