1 sammymaudlin Jan 18, 2007 06:12
3 sammymaudlin Jan 18, 2007 16:30
Cool. I was guessin that I was out of luck. We have two Administrator and the rest will be registered members. I'd like the other Admin to have this feature as well. Can I just somehow add his ID into the second option?
4 edb Jan 18, 2007 21:48
if( ($current_User->ID == 1) || ($current_User->ID == 123456789) ) {
It'd be smarter to add your other admin to the admin group because if you ever have a third admin you won't have to re-hack this, but there you go.
5 sammymaudlin Jan 18, 2007 22:17
Right. Got it. Thanks EdB.
Who are your administrators? If that's really only one person then it's easy. If the only registered bloggers you have are administrators is also easy. If you actually have administrators and bloggers it gets a little more complex. Either way, add the "who's online" block back in, only wrap it in a conditional statement or two.
If ALL the registered bloggers happen to be administrators then do like this:
If the only admin is ID #1 then it's easy but takes another pair of lines:
If you've actually got an admin group AND have registered members who are not part of that group AND that group happens to be group #1 then it's sorta like the above bit only different.
Or maybe I nade this up in my head just now and none of it will actually work.