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.

The article has been updated successfully.