Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Disabling Profile and signout buttons

I am using the API to re-create the profile pages elsewhere on the site (I don't want 2 profile edit pages) and so I want to remove the profile button form the main forum page.

Also, there will never be a time the user is signed out of the forum, since I have integrated the sing in with the main site, so I want to remove the signup buttons as well.

The trouble is, I cannot find the code for these 2 buttons ANYWHERE.

Can someone help me disable these 2 buttons?

Comments

  • Options
    What your wanting to do can be accomplished by doing the below steps

    Editing Tip! Always Save a Backup of ALL files your editing prior to editing them.

    Steps to Removing Signup/Signout/Profile Buttons

    • Step 1: Log into your FTP
    • Step 2: Locate /themes/YOURTHEMENAME
    • Step 3: Once in themes/YOURTHEMENAME/ open /views
    • Step 4: Download default.master.php onto your computer
    • Step 5: Open default.master.php with your text editor
    • Step 6: Find:
      $this->Menu->AddLink('User', $Name, '/profile/{UserID}/{Username}', array('Garden.SignIn.Allow'), array('class' => 'UserNotifications')); Line 68
      Find Also:
      $this->Menu->AddLink('SignOut', T('Sign Out'), $Authenticator->SignOutUrl(), FALSE, array('class' => 'NonTab SignOut')); Line 69
      Find As well:
      $this->Menu->AddLink('Entry', T('Sign In'), $Authenticator->SignInUrl($this->SelfUrl), FALSE, array('class' => 'NonTab'), $Attribs); Line 75
    • Step 7: Delete Above Codes from the default.master.php
    • Step 8: Save & Upload to FTP
    • Step 9:Done!
    Following the above steps You should beable to get the same resaults I did which would be removing the option to register/edit profile/signout from your forum

    I followed these steps to complete the same idea you have on your forum.
  • Options
    well.. I will take a look at this as soon as I can recover from the Bonk page that has now suddenly taken over my life. sigh.
  • Options
    @SocialInteract you can add or uncomment the following line in your config.php file:

    $Configuration['Garden']['Errors']['MasterView'] = 'deverror.master.php';

    that will give you the error so you can correct/find out why your being BONK'd :P
  • Options
    What about with the embdtheme this doesn't exist.
  • Options
    If you're using the EmbedFriendly theme you can edit views/default.master.tpl and remove {signinout_link}.
Sign In or Register to comment.