Is it possible to disable/hide/turn off the "My Account" functiuon?

3 posts by 2 authors in: Forums > CMS Builder
Last Post: December 17, 2009   (RSS)

By markr - December 17, 2009

Is it possible to disable/hide/turn off the "My Account" functiuon?

Re: [markr] Is it possible to disable/hide/turn off the "My Account" functiuon?

By Chris - December 17, 2009

Hi markr,

Save this as cmsAdmin/plugins/removeMyAccountLink.php, log into CMS Builder, go to Admin > Plugins, and activate it:

<?php


addFilter('header_links', 'plugin_removeMyAccountLink');

function plugin_removeMyAccountLink($html) {
$html = preg_replace("@<a href='\?menu=_myaccount'>My Account</a> \| @", '', $html);
return $html;
}

?>


Please note that this code only hides the link; if someone types ?menu=_myaccount into their address bar, they'll still be able to gain access. If you need something more secure than that, we could do something with custom programming.

I hope this helps! Please let me know if you have any questions.
All the best,
Chris