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: [Solved]: Help with private albums!  (Read 3640 times)

0 Members and 1 Guest are viewing this topic.

nicky

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
[Solved]: Help with private albums!
« on: February 21, 2009, 05:34:53 pm »

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  ???
« Last Edit: February 22, 2009, 12:16:19 am by Nibbler »
Logged

Nibbler

  • Guest
Re: Help with private albums!
« Reply #1 on: February 21, 2009, 10:39:33 pm »

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

nicky

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: Help with private albums!
« Reply #2 on: February 21, 2009, 11:08:11 pm »

Thanks!!! It worked!!! Thanks from the bottom of my heart  :o
Logged
Pages: [1]   Go Up
 

Page created in 0.013 seconds with 20 queries.