acsineaston
Member-
Posts
3 -
Joined
-
Last visited
Profile Information
-
Gender
Male
-
Location
Easton, Maryland
acsineaston's Achievements
Newbie (1/14)
0
Reputation
-
Turns out I don't have to deal with template products.index.php at all, but rather template main.php Changed: <!-- Include CKEditor --> <script type="text/javascript" src="includes/ckeditor/ckeditor.js"></script> <script type="text/javascript" src="includes/ckeditor/adapters/jquery.js"></script> To: <!-- Include CKEditor --> {if isset($ADMIN_IS_SUPER)} <script type="text/javascript" src="includes/ckeditor/ckeditor.js"></script> {else} <script type="text/javascript" src="includes/ckeditor-basic/ckeditor.js"></script> {/if} <script type="text/javascript" src="includes/ckeditor/adapters/jquery.js"></script> Works like a champ!!!
-
In acp.class.php - function SetTemplate I added: if(Admin::getInstance()->superUser()) { $GLOBALS['smarty']->assign('ADMIN_IS_SUPER', 'true'); } to give me an easy way to test in template products.index.php My thought is to use the /includes/ckeditor directory to provide the CKEditor for a superuser, and another directory (/includes/ckeditor-basic) to provide the CKEditor for non-superusers. Not sure if this makes sense, or how I would go about changing the path to the correct directory.
-
I would like to be able to allow superusers access to the full capabilities of CKEditor (the default as shipped with CubeCart), but only allow non-superuser administrators to use a very small subset of those capabilities (e.g., preset Basic). Has anyone attempted this?