View Full Version : Where to change default settings?
Cyclist
21st of March 2006 (Tue), 06:09
When I create a new exhibition default settings are used. Is there a way to change those default settings?
I would like to use a certain photographer as default and each exhibition should be public not passwordprotected as default.
MikeCaine
21st of March 2006 (Tue), 09:06
See "set default photodata" in the Exhibition block where you set up the exhibition
Cyclist
21st of March 2006 (Tue), 10:10
And where exactly can I set the defaults for exhibitions there? I only found the possibilty to set the default data for new photos, not for exhibitions. Or did I miss something?
MikeCaine
21st of March 2006 (Tue), 10:58
When I create a new exhibition I go into "set default photodata" and set all of my default data there.
It seems to me that if it's a new exhibition then it will apply to all new photos added to it, at least that is how it's always worked for me. The default settings for the exhibition are applied to the photos that are uploaded to that exhibition
I can't see how it's not working for you, unless I'm totally misunderstanding your question
MikeCaine
21st of March 2006 (Tue), 11:01
... or do you mean that if you meed to create 10 exhibitions you want a way to set some defaults for each of those exhibitions rather than a default for each of the photos in the exhibitions?
I don't think there's a way of doing that
Pekka
21st of March 2006 (Tue), 14:45
When I create a new exhibition default settings are used. Is there a way to change those default settings?
I would like to use a certain photographer as default and each exhibition should be public not passwordprotected as default.
This is a good point. In EE 1.5 you'll need to dig in code to alter those defaults. I'll think of something proper for later versions.
Problem with setting defaults in code is that when you e.g. delete a photograper or thumb path the exhibitions bombs unless those changes are detected.
Cyclist
21st of March 2006 (Tue), 15:31
Thanks for your answer. Then for 1.5 it's probably easier updating the values after having all exhibitions set up with PHPMyAdmin than modifying the code?
Pekka
21st of March 2006 (Tue), 16:30
Thanks for your answer. Then for 1.5 it's probably easier updating the values after having all exhibitions set up with PHPMyAdmin than modifying the code?
If you do not change it often you could edit in EDITOR_exhibition.php line 56
// do new exhibition and get its id
$do_an_exhibition = mysql_query(
"INSERT INTO
ee_exhibition (ee_exhibition_start,ee_exhibition_end,ee_exhibiti on_pass,ee_owner_id,ee_thumbs_id,ee_exhibition_sql _modified,ee_exhibition_counter_offset)
VALUES ('$now','2020-01-01','$random','1','$thumbs_id','null','0')
");
ee_error ($do_an_exhibition,"do_an_exhibition",$currentpage);
to
// do new exhibition and get its id
$do_an_exhibition = mysql_query(
"INSERT INTO
ee_exhibition (ee_exhibition_start,ee_exhibition_end,ee_exhibiti on_pass,ee_owner_id,ee_thumbs_id,ee_exhibition_sql _modified,ee_exhibition_counter_offset)
VALUES ('$now','2020-01-01','public','XXX','$thumbs_id','null','0')
");
ee_error ($do_an_exhibition,"do_an_exhibition",$currentpage);
Where items in color are the change points (public pass by default, owner is photographer id XXX (this MUST be a valid id).
Cyclist
21st of March 2006 (Tue), 17:19
you're the hero, Pekka. Thanks a lot again!
vBulletin® v3.6.12, Copyright ©2000-2010, Jelsoft Enterprises Ltd.