forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: lurkalot on July 06, 2010, 10:10:59 am

Title: Using cpmfetch with 1.5.6
Post by: lurkalot on July 06, 2010, 10:10:59 am
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

Code: [Select]
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>';
}
Title: Re: Using cpmfetch with 1.5.6
Post by: phill104 on July 06, 2010, 02:20:14 pm
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.
Title: Re: Using cpmfetch with 1.5.6
Post by: lurkalot on July 07, 2010, 12:56:20 am
Thanks Phill.  I thought that might be the case, but thought I'd check.

I can remove those options for now.

Cheers.
Title: Re: Using cpmfetch with 1.5.6
Post by: peacelove on July 08, 2010, 10:03:22 am
I am also waiting for vuud to give us excellent new version for Coppermine 1.5.6 :)
Title: Re: Using cpmfetch with 1.5.6
Post by: Joachim Müller on July 08, 2010, 12:43:19 pm
Locking