[Solved]: Help with private albums! [Solved]: Help with private albums!
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved]: Help with private albums!

Started by nicky, February 21, 2009, 05:34:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nicky

Hello there! I would like to use this script for my site because I think that this is really great. The problem is, my gallery is private and I would like to know how can I show the private albums because my gallery is just for register users.

Here is the code that I am using:

Quote<?php
  include "./gallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  $options = array('windowtarget' => '_blank',"tablestyle" => "cpm");
  $objCpm->cpm_viewLastAddedMedia(2,2, $options);
  $objCpm->cpm_unlock_private(true);
  $objCpm->cpm_close();
?>

And I changed the private albums thing to true (at the config) but this is not working, what must I do??? Thanks, I am totally lost  ???

Nibbler

You probably need to set cpm_unlock_private *before* you call cpm_viewLastAddedMedia()

nicky

Thanks!!! It worked!!! Thanks from the bottom of my heart  :o