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

How change tab name in profile?

battersbatters New
edited July 2011 in Vanilla 2.0 - 2.8
I cant change name of tab "aboutme" in profile, tryed add in Definition.php file this string $Definition['aboutme'] = 'About Me';
but name of tab dont changed and still called 'aboutme'
Tagged:

Best Answer

  • Options
    rprrpr
    Answer ✓
    In 'default.php', around line 28, I did this:

    public function ProfileController_AddProfileTabs_handler(&$Sender) {
    $Sender->AddProfileTab('About Me', "/profile/aboutme/".$Sender->User->UserID."/".Gdn_Format::Url($Sender->User->Name), 'AboutMe', 'About Me');
    $Sender->AddCssFile('/plugins/AboutMe/design/am.default_theme.css');
    }

Answers

  • Options
    rprrpr
    Answer ✓
    In 'default.php', around line 28, I did this:

    public function ProfileController_AddProfileTabs_handler(&$Sender) {
    $Sender->AddProfileTab('About Me', "/profile/aboutme/".$Sender->User->UserID."/".Gdn_Format::Url($Sender->User->Name), 'AboutMe', 'About Me');
    $Sender->AddCssFile('/plugins/AboutMe/design/am.default_theme.css');
    }
  • Options
    ah, the very last 'About Me', on the third line down above, is the HTML that is displayed. I am not sure why I did not use translate there, perhaps it did not work. This is what you would have to change.
Sign In or Register to comment.