RSS feeds and Private albums RSS feeds and 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

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.