coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: natrlhy on December 17, 2007, 11:42:25 PM

Title: RSS feeds and Private albums
Post by: natrlhy on December 17, 2007, 11:42:25 PM
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  ;)
Title: Re: RSS feeds and Private albums
Post by: natrlhy on December 18, 2007, 01:10:35 AM
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.
Title: Re: RSS feeds and Private albums
Post by: natrlhy on December 18, 2007, 01:15:30 AM
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.