View Single Post
  #5  
Old 11-24-2016, 07:15 AM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Trying to add a custom tab in My Account section

Unfortunately, this was moved to include/func/func.core.php class XCAccountTabs. You'll see similar tab assignments there.

Rather than editing the core, a slightly less invasive way is to edit postauth.php by finding this line:

PHP Code:
XCAccountTabs::getInstance()->addDefaults()->assignToSmarty(); 
And add something like this after:

PHP Code:
$myNewTab = array( 
    
'title' => 'lbl_downloads',
    
'url'   => 'my_page.php'
);
$myAccountTabs XCAccountTabs::getInstance()->addDefaults();
$myAccountTabs->push($myNewTab);
$myAccountTabs->assignToSmarty(); 
This expects a language variable (ex: lbl_downloads).
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote