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.
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?
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?
0
Comments
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:
- 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$this->Menu->AddLink('User', $Name, '/profile/{UserID}/{Username}', array('Garden.SignIn.Allow'), array('class' => 'UserNotifications'));
Line 68Find Also:
$this->Menu->AddLink('SignOut', T('Sign Out'), $Authenticator->SignOutUrl(), FALSE, array('class' => 'NonTab SignOut'));
Line 69Find As well:
$this->Menu->AddLink('Entry', T('Sign In'), $Authenticator->SignInUrl($this->SelfUrl), FALSE, array('class' => 'NonTab'), $Attribs);
Line 75I followed these steps to complete the same idea you have on your forum.
$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