| Comments |
 Making Sub Cat Private By Default..
|
Hi
I am using this mod here
http://www.icyphoenix.com/viewtopic.php?f=25&t=829
which automatically adds a sub cat for user in their personal gallery... I was wondering is there any way to make the view private automatically as it is set to reg by default...
Thanks for any help...
:mrgreen: :mrgreen:
|
|
DWho [ Tue 22 Jan, 2008 13:09 ]
|
 |
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
|
Moved and Merged with existing topic
... I was wondering is there any way to make the view private automatically as it is set to reg by default...
Try this for making the created sub-cat private
In this section of the mod's code
// Here we insert a new row into the db
$sql = "INSERT INTO ". ALBUM_CAT_TABLE ." (cat_title, cat_desc, cat_order, cat_view_level, cat_upload_level, cat_rate_level, cat_comment_level, cat_edit_level, cat_delete_level, cat_approval, cat_parent, cat_user_id)
VALUES ('". AUTO_CREATE_SUB_CAT_TITLE ."', '". AUTO_CREATE_SUB_CAT_DESCRIPTION ."', '$cat_order', '$view_level', '$upload_level', '0', '0', '" . ALBUM_PRIVATE . "', '" . ALBUM_PRIVATE . "', '0', '$cat_parent', '$user_id')";
FIND
AND REPLACE IT WITH
|
|
Artie [ Sat 26 Jan, 2008 00:16 ]
|
 |
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
|
|
Sorry for the late reply I couldnt find this post....
Thank you very much Artie it worked like a charm... at least I know a bit how that part works...
Also how do you make it so members albums are created as soon as they join instead of them having to create it....
Thanks again for the help..
:D :D
|
|
DWho [ Thu 31 Jan, 2008 22:26 ]
|
 |
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
|
|
This is very cool. awesome.
Is there a way that I can use spaces in title and discription?
I get erros if I use spaces for obvious reasons.
define('AUTO_CREATE_SUB_CAT_TITLE', 'Your first category');
Is a no go
define('AUTO_CREATE_SUB_CAT_TITLE', 'Your_first_category');
Works... but I mean, it would be cool without the underscore. 8)
|
|
Pete_Z [ Sat 02 Feb, 2008 12:01 ]
|
 |
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
|
|
Should work :shock:
What kinda errors are you getting ?
|
|
Artie [ Thu 07 Feb, 2008 23:53 ]
|
 |
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
|
Strange! it's working fine now. I had an error with my portal... oops. :|
Should work :shock:
What kinda errors are you getting ?
|
|
Pete_Z [ Tue 12 Feb, 2008 11:44 ]
|
 |
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
|
|
I understand this mod creates a default subcategory that you cannot delete.
What happens with already created personal galleries. Will this default subcategory appear there as well or not?
|
|
sharkattaq [ Sat 27 Dec, 2008 14:42 ]
|
 |
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
|
|
This mod has no effect on user galleries that were created before the mod was installed.
|
|
Artie [ Sat 27 Dec, 2008 23:40 ]
|
 |
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
|
|
Is there a way to mass-create this for existing galleries? My gallery in a quite mature state with thousands of active users so my concern is mostly towards the past.
|
|
sharkattaq [ Sun 28 Dec, 2008 02:32 ]
|
 |
|
|