1 ilg Sep 09, 2005 13:28
3 ilg Sep 10, 2005 11:47
Ok, I fixed every, EdB, thanks.
Another small problem related to PUBLISH NOW of draft posts.
It seems in code that only users with level more than 5 can do that because permission for edit_timestamps is checked while publishing draft posts.
Is it normal? Should I give users level 5 to let them publish their own draft posts?
Is it really necessary to check this for publish operation:
$current_User->check_perm( 'edit_timestamp' ) ?
4 edb Sep 10, 2005 15:34
I didn't know that, and I really can't say if it's important or not. All I do is hack stuff! I guess if they have to be level 5 to get a "Publish NOW" then make them be level 5 when you decide to give them an automatic blog. If you can find in the code where that is set you might want to make it be a lower number, but it's up to you. In the auto-blog installation I'm doing we're making the auto-bloggers start at level 6 just so they're above the level 3s (who will be above the level 0s), so I accidentally set them high enough to see that button.
I can't think of the reason for such a thing??????
5 ilg Sep 10, 2005 16:45
Ok, I changed that permission level to 3.
6 topanga Sep 10, 2005 17:09
Level 5 is needed to be able to change 'edit-time'
And 'PUBLISH NOW' is changing the edit time..
I can't think of reason why you should not level-up your users.
7 edb Sep 10, 2005 17:17
Thanks for the explanation Topanga, but I can think of a reason: It is possible that you want your bloggers to have easy publishing of drafts WITHOUT letting them go in and change a date to the middle of last week. In the multiblogger installation I'm doing my motivation for not having the ability to edit the publication date is just to keep the posting area as clean as can be.
I have to look at how I currently 'hid' the edit timestamp feature from the average blogger, but I think I like making edit timestamp be for only admins. (I'm using group a lot in this installation because, well, just because!)
Ilg: where did you make the change to level 3? What file?
8 ilg Sep 10, 2005 17:34
Topanga,
I don't want to make their level up because I don't know what you will assign for levels in future.
EdB, its a core/_class_user.php
look for
case 'edit_timestamp':
// Global permission to edit timestamps...
$perm = ($this->level >= 5);
break;
Compare what I do [url=http://wonderwinds.com/hackblog.php/2005/08/14/automatically_create_a_blog_for_a_new_bl]in this hack[/url] with what you're doing. Mine is to give a NEW blogger a blog and category - it does nothing for existing bloggers. I also make sure the admin and blogger have full permissions (except the blogger can not remove the admin's permissions). You might then want to look at [url=http://wonderwinds.com/hackblog.php/2005/01/31/lim_iting_who_can_delete_edit_publish_po]this hack[/url] as well.