Remove the functions "SMS" and "Connections"

I would like to remove the functions "SMS" and "Connections", anyone know how I do?

Comments

  • @fernando I do not think there is a built in way to hide or disable them, you would need a custom plugin, or you can try to just hide the options with custom css.
  • I get it! Thanks @jordanc
  • @fernando did you succeed to do it?
  • @ranto I could not. I am not a programmer, I do not know. I'll keep the functions.
  • Acutally, I have got one solution but it is not the most recommended. You need to modify the core code.
    Go to lib/action.php
    Edit it
    on line 561-563 youve'got this
    $this->menuItem(common_local_url('oauthconnectionssettings'),
    // TRANS: Main menu option when logged in and connection are possible for access to options to connect to other services.
    _('Connect'), $tooltip, false, 'nav_connect');
    Just put them as a comment and it will disapear ;-) add /* and */
    So you will not have the nav connect ;-)
    but keep in mind that if you remove the functions connections your users cannot import their twitter friends nor choose not to publish either on Facebook or twitter their publications. you cannot also connect to other application such as tweetdeck etc etc ;-)
    Hope this will help.
    Cheers,
    Ranto
  • Thanks @ranto. So I will keep the function connections, because I want to allow connections with facebook and twitter. Your explanation helped me in the decision to maintain this function.
    Thanks for your help.
    Cheers.
  • Connections will be allowed to facebook via facebookbridge plugin and twitterbridge but for example all the publication from your user on your statusnet instance will appear automatically on his/her facebook. If you have the "Connect" tab, they can choose either if they want to display it on facebook or not via a checkbox.
  • The config for SMS as $config['sms']['enabled'] = false; should turn the SMS off.

    For "Connections", looks like there's a hook - StartConnectSettingsNav - but that still prints a <ul> on the page, may or may not be what you want. Might have an empty nav sitting up there with = not pretty.

    If someone did want to turn this off .css would be the way to go - although people could still find it if they wanted. Or maybe javascript to remove it?
  • @rls It worked! The SMS was disabled! Thanks for your help! The function "Connections" I decided to keep in my instance of StatusNet. Thanks for everyone's help.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID