Using cpmfetch with 1.5.6 Using cpmfetch with 1.5.6
 

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]

Main Menu

Using cpmfetch with 1.5.6

Started by lurkalot, July 06, 2010, 10:10:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lurkalot

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>';
}
Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

phill104

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.
It is a mistake to think you can solve any major problems just with potatoes.

lurkalot

Thanks Phill.  I thought that might be the case, but thought I'd check.

I can remove those options for now.

Cheers.
Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

peacelove

I am also waiting for vuud to give us excellent new version for Coppermine 1.5.6 :)

Joachim Müller