RSS feeds and Private albums RSS feeds and Private albums
 

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

RSS feeds and Private albums

Started by natrlhy, December 17, 2007, 11:42:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

natrlhy

I have an RSS feed working, however I would like it to include last uploaded images from private albums as well. Can this be done within the rss_lastadded.php file?

TIA  ;)

natrlhy

UPDATE:

I added some code to the cfrssget.php file since it seems the rss_lastadded.php file calls cfrssget.php

Look for this code:

        function cfrss ($config_file = "") {
                        $this->cpm = new cpm($config_file);
                        $this->cpm->cpm_setReturnType("resultset");
                        $this->cpm->cpm_unlock_private(true);
                        $this->rss = new UniversalFeedCreator();
                        $this->rss->encoding = $this->cpm->cpm_getConfigEntry('charset');
        }



I added the following:

                        $this->cpm->cpm_unlock_private(true);

Once I did that, voila! I can now see the private albums that have been updated in the RSS feed!

Hope this was right and hopefully this helps anyone else out.

natrlhy

Seems I can't edit my post, but I where I specified "Look for this code:" you can see where I placed the $this->cpm->cpm_unlock_private(true); modification... In the middle of the function.