Flashblocks Flash CMS
Welcome, Guest
Please Login or Register.    Lost Password?
FLASH VARS TO SET PRIVILEGES (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: FLASH VARS TO SET PRIVILEGES
#407
FLASH VARS TO SET PRIVILEGES 2 Years, 9 Months ago
I wanted to find a way where either an administrator could change key parts of a flashblocks website but where another user would only be able to login in "editor mode" (ie only change the content and not the type of content).


HTML EMBEDDED OBJECT:

The forum wasn't letting me post the HTML so just view the source of each HTML page from the links below !


ACTIONSCRIPT (Inside the flashblocks_login.fla):

function editVars() {
_root.flashblocksEdit._alpha = 95;
fb.alphaBg2 = 20;
fb.txtEditW = 400;
fb.txtEditH = 230;
// BELOW IS THE NEW CODE
if (_root.administrator == "true") {
fb.advancedEdit = true;
} else {
fb.advancedEdit = false;
}
// END OF NEW CODE
fb.advMenuWidth = 180;
fb.menuYinc = -2;
fb.f_font = "_sans";
fb.f_size = 10;
fb.rawW = 400;
fb.objTypeDefault = -1;
}
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop