Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Using cpmfetch with 1.5.6  (Read 2221 times)

0 Members and 1 Guest are viewing this topic.

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 914
  • +Tinyportal Support team.
Using cpmfetch with 1.5.6
« 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>';
}
Logged
Running SMF 2.0.15  / Tinyportal 1.6.4, bridged with Coppermine 1.6.06, plus cpmfetch 2.0.0

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4700
    • Windsurf.me
Re: Using cpmfetch with 1.5.6
« Reply #1 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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 914
  • +Tinyportal Support team.
Re: Using cpmfetch with 1.5.6
« Reply #2 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.
Logged
Running SMF 2.0.15  / Tinyportal 1.6.4, bridged with Coppermine 1.6.06, plus cpmfetch 2.0.0

peacelove

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Using cpmfetch with 1.5.6
« Reply #3 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 :)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Using cpmfetch with 1.5.6
« Reply #4 on: July 08, 2010, 12:43:19 pm »

Locking
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 21 queries.