Privateer Theme Forums
May 19, 2012, 01:55:32 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Privateer Theme 1.4 is Out.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Can I hide the Privateer Settings?  (Read 676 times)
Harbourmaster
Theme Owner
Newbie
***

Karma: +0/-0
Posts: 5


View Profile
« on: December 07, 2010, 09:09:47 PM »

Can I hide the Privateer settings from an Admin that is logged in?

If I use the Theme for a clients website can I then hide the Privateer settings from a user that is logged in to keep them from messing things up? 

Logged
Tony Lee
Administrator
Full Member
*****

Karma: +2/-0
Posts: 137


View Profile
« Reply #1 on: December 09, 2010, 07:38:01 PM »

To hide the theme settings, open the functions.php file and comment out the sections dealing with admin menu functionality.

Let me know which version you have and I'll give you more specific information...but normally you would hide the following functions:

function pws_privateer_menu_admin($sMenu, $sDefaultCat, $sPanelType = '') { ... }

function pws_add_stuff_admin_head() { ... }
add_action('admin_head', 'pws_add_stuff_admin_head');

if ( function_exists('pws_privateer_menu_admin') ) { all functions in this section }

add_action('admin_menu', 'mytheme_add_admin');

I tend to either comment them out or wrap them in if ( 1 === 2 ) { ... } code blocks.

I've had a few people ask this...so I'll see about making this simpler in the near future.

~Tony

Logged
DinahCervantes
Newbie
*

Karma: +0/-0
Posts: 1


View Profile
« Reply #2 on: January 31, 2012, 05:27:45 AM »

Privateer Web Solutions offers wordpress based solutions for building nice looking web sites along with the information that you need to both build a web site and get people to it.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!