Interspire Product Knowledge Base

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Export to PDF

User Opinions (4 votes)

0% thumbs up 100% thumbs down

How would you rate this answer?



Thank you for rating this answer.

How can I add/remove buttons to the WYSIWYG, and control which groups can see the buttons?

Note: This applies to ArticleLive NX 1.7.* only

You can add/remove the buttons by opening:

/admin/includes/classes/class.editor.php

and finding the code snippets starting with:

$rows = array (
If we want to remove the Flash and Media buttons, we'd find this code below in there,  and delete it:

,Flash,Media
Then the buttons won't show up anymore.

Allowing it for certain user groups is a bit more difficult. To do that, you'll need to put this code above the line from above:

$AllowedGroups = "11,6,5";
$Query = $GLOBALS['AL_DB']->Query("select count(*) from ".$GLOBALS['AL_CFG']['tablePrefix']."groupassociations where UserID='".$_SESSION['CurrentUserInfo']['UserID']."' and GroupID IN(".$AllowedGroups.")");
if($GLOBALS['AL_DB']->FirstResult($Query) > 0){
// allowed to view button
$rows = array(...
}else{
// NOT allowed to view button
$rows = array(...
}

Then where you see "$rows = array(..." put the code with the selected buttons you want to show.

You'll also see:

$AllowedGroups = "11,6,5";

This is the list of GroupID numbers. You can get this number from the 'edit' links when you go to manage groups.

Related Articles

No related articles were found.

Attachments

No attachments were found.

Powered by Interspire Knowledge Manager - World's #1 Best Selling FAQ and Knowledge Base Software