How can I modify the permissions with ftp?

Started by Rocks-HD, July 24, 2008, 07:30:39 PM

Previous topic - Next topic

Rocks-HD

Is there a command that I can put on top of the lines of command to avoid all that the forum can see

Exemple:
if ($context['can_reply'] && !empty($options['display_quick_reply']))

this code show the context for all in the fórum, but If I to implemente a code above this code

IF (allowed = admin)
if ($context['can_reply'] && !empty($options['display_quick_reply']))
{

}
it is a exemple... Anybody can help me?

Sorry for my english

SlammedDime

if ($context['can_reply'] && !empty($options['display_quick_reply']) && $context['user']['is_admin'])
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Rocks-HD

#2
thanks man

it's very important, but i have more one question

in this case

   setupProfileContext(
      array(
         'member_name', 'real_name', 'date_registered', 'posts', 'lngfile', 'hr',
         'id_group', 'hr',
         'email_address', 'hide_email', 'hr',
         'show_online', 'hr', <<--here
         'passwrd1', 'passwrd2', 'hr',
         'secret_question', 'secret_answer',
      )

how i can make for only staff can see?

I can learn in all context if it's possíble!

thanks again

SlammedDime

Try this:

$custom = array(
         'member_name', 'real_name', 'date_registered', 'posts', 'lngfile', 'hr',
         'id_group', 'hr',
         'email_address', 'hide_email', 'hr');
$custom = $context['user']['is_admin'] ? array_merge($custom,array(
         'show_online', 'hr')) : $custom;
$custom = array_merge($custom,array(
         'passwrd1', 'passwrd2', 'hr',
         'secret_question', 'secret_answer',
      ));
setupProfileContext($custom);


Also, please see the red colored text in my signature.  I cannot be on this forum 24/7 to offer support.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Rocks-HD


Advertisement: