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: Exclude galleries with CMPFetch  (Read 7404 times)

0 Members and 1 Guest are viewing this topic.

ScHwErV

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 12
  • eOutDoorsman
    • eOutDoorsman.com
Exclude galleries with CMPFetch
« on: March 15, 2007, 01:18:20 am »

Ive read through the instructions, I even did a grep on the folder and didn't find anything to exclude a gallery or galleries from CMPFetch.

I know I can include galleries by their identity, but then I would have to include all the new ones that get created by users when I only want to exclude a few "personal" ones.

Is this possible?

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Exclude galleries with CMPFetch
« Reply #1 on: March 15, 2007, 02:24:56 am »

Ive read through the instructions, I even did a grep on the folder and didn't find anything to exclude a gallery or galleries from CMPFetch.

I know I can include galleries by their identity, but then I would have to include all the new ones that get created by users when I only want to exclude a few "personal" ones.

Is this possible?

Well, by design - if a gallery is not public (as in requires some sort of rights to view) cpmFetch should skip it.  I will only grab photos that people could see anyway.

That being said, there is no way currently to exclude galleries, but as a feature goes - would not be hard to add.  I don't think.

But I have been wrong before.

If I implemented it, I would add it to the SQL generation code in cpmfetch_dao.php that when checking categories or albums would check for a ! in front of it.  So cat=35,36,!37 would be from 35 or 36, but not 37.

Hmmm. But that does not exist yet

Does my first statement solve your problem?

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

ScHwErV

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 12
  • eOutDoorsman
    • eOutDoorsman.com
Re: Exclude galleries with CMPFetch
« Reply #2 on: March 15, 2007, 01:09:11 pm »

I appreciate you taking the time to answer.  I am glad to hear that its not something that I was just missing.

Unfortunately no, and maybe I am going to be alone in this, but with my current setup, I cant set that gallery as private.

I use CMPFetch to display pictures on my front page.  Generally my gallery is full of nature photos and the like, but I keep pictures in my gallery of my son and my family.  These things don't really have anything to do with the "theme" of my site, but I do need them publicly visible.

If it would be possible, it would be a great feature to the script.  Would add a lot more flexibility for implementation.

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Exclude galleries with CMPFetch
« Reply #3 on: March 15, 2007, 02:13:26 pm »

I appreciate you taking the time to answer.  I am glad to hear that its not something that I was just missing.

Unfortunately no, and maybe I am going to be alone in this, but with my current setup, I cant set that gallery as private.

I use CMPFetch to display pictures on my front page.  Generally my gallery is full of nature photos and the like, but I keep pictures in my gallery of my son and my family.  These things don't really have anything to do with the "theme" of my site, but I do need them publicly visible.

If it would be possible, it would be a great feature to the script.  Would add a lot more flexibility for implementation.

Yeah, I have added it to my list of things to do - fundamentally I think it is a good idea, and will do it at some point.

Just not sure when.

If I think of another way CPG can fill your need I will post it...  usually there is some way around it.

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Exclude galleries with CMPFetch
« Reply #4 on: March 15, 2007, 02:18:29 pm »

Yeah, I have added it to my list of things to do - fundamentally I think it is a good idea, and will do it at some point.

Just not sure when.

If I think of another way CPG can fill your need I will post it...  usually there is some way around it.



Took a look at your site...

Aside from agreeing with the whole internet hunting speech, you only have about six users that post...

You could always code your CpmFetch to source from "owner=Kat,andydf,SNOWHITE...  etc:  And leave you off the list.  Of course that bumps all your entries...

At least until I get, or someone donates code...

Also, if I do code it are you willing to test it?  I mean really test it out?  That is where most of my time gets spent, so if I can offload it, that helps!


Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

ScHwErV

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 12
  • eOutDoorsman
    • eOutDoorsman.com
Re: Exclude galleries with CMPFetch
« Reply #5 on: March 16, 2007, 02:08:59 am »

The site is small now, but I finally have some good inbound links and I passed 80 thousand unique visitors last month.  I hope to keep adding users in time.

Anyways, I am willing to test anything you can toss at me.

rroy1900

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Exclude galleries with CMPFetch
« Reply #6 on: March 31, 2008, 10:01:52 pm »

I think I have a workaround for this.

Grab a list of all the albums and use it to build up your source variable.

-Rob

Code: [Select]
$source = 'album=';
$AlbumArray = $objCpm->getAlbumListFrom($source);
foreach ($AlbumArray as $Val)
{     
     if(($Val['pAid'] == 40) or ($Val['pAid'] == 39))
     {
     }
     else
     {
          $source .= $Val['pAid'].",";
     }
};
$source = substr($source, 0, -1);
Logged

capecodgal

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 123
Re: Exclude galleries with CMPFetch
« Reply #7 on: March 31, 2008, 11:15:46 pm »

I also would love something like this  ;D

At the moment my method is a bit ridiculous... but I just list out all the cats I do want to display in my fetch code and leave out the ones I do not. Like this where I skipped cat #7:

Code: [Select]
"cat=2,3,4,5,6,8,9:album=0"

But the idea of being able to say I want everything except for !7 would be fabulous
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.