Advanced search  

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

Pages: [1]   Go Down

Author Topic: RSS feeds and Private albums  (Read 4271 times)

0 Members and 1 Guest are viewing this topic.

natrlhy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77
RSS feeds and Private albums
« 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  ;)
Logged

natrlhy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77
Re: RSS feeds and Private albums
« Reply #1 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:

Code: [Select]
        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:

Code: [Select]
                        $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.
Logged

natrlhy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77
Re: RSS feeds and Private albums
« Reply #2 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.