Board index PBase Questions and Answers Batch change of public_flag

Questions and Answers

Batch change of public_flag

Ask if you need help using PBase.
unclewillie
 
Posts: 3

Batch change of public_flag

Post Mon Oct 06, 2003 4:45 pm


I found that you can select multiple images and change the public_flag for all of them by doing a batch_update. Doing this makes them not publically available. I haven't been able to figure out how to do a batch change to make them public again. I tried different values (0, 1, 2) but the files stay private. Any help would be appreciated.

Willie

unclewillie
 
Posts: 3

Come on Slug, this question should be easy to answer...

Post Sat Oct 18, 2003 12:17 pm


You offer an option to do a batch change of the public field, yet there is no indication of what valid parameters are. I was able to change an entire gallery to be not publicly viewable, but now I need to change it back. It is too slow to do one at a time. Please just let me know what the parameters for the field are.

123 people have viewed this post so I can't be the only one with this question. Thanks.

ilanphoto
 
Posts: 876


Post Sat Oct 18, 2003 12:21 pm


did you try the yes or maybe y and no or n prameters?

srijith
Moderator
 
Posts: 2321
Location: Amsterdam


Post Sat Oct 18, 2003 12:39 pm


ilanphoto wrote:did you try the yes or maybe y and no or n prameters?

Actually 'y' wont do the job, atleast for my images. But 'Y' does it.

So in short, the answer is to set public_flag to 'Y' (capital Y) without the quotes.

In long, this looks like a bit un-userfriendly. The logical values would be:

public_flag=y or Y ot 1 -> image is public.

public_flag=n or N or 0 -> image is not public

Hope slug can add couple more "or" in that "if" statement.


Board index PBase Questions and Answers Batch change of public_flag

Who is online

Users browsing this forum: ClaudeBot and 2 guests