How can I change settings?

Allard

New member
Joined
Mar 18, 2011
Messages
25
Hi,

I have a question. How can I change settings for 'CMD_API_SHOW_USER_CONFIG'? I want to change the user language, but how?
 
Okey, thanks. I have tried 'CMD_API_CHANGE_INFO', but it doesn't work. Whats wrong with the following code? The script says that the name has changed, but it isn't. Here is also the error code:

It gives me the error:
PHP:
Array ( [error] => 1 [text] => Unable to update your Disk Usage [details] => You must wait at least [#49] => [#48_minutes_between_updates_] => [#60br] => [#62You_have_] => [#57] => [#58] => [#48] => [#53_left_] => )

My script:
PHP:
		public function ChangeName($name)
        {
                  global $sock; 		 
				  $sock->query('/CMD_API_CHANGE_INFO', array('name' => '1', 'nvalue' => $name, 'update' => 'Update'));
				  $result = $sock->fetch_parsed_body();				  
				  	  
				  switch ($result)
				  {
					  case ($result['error'] == 1):
					 		 print "There was something wrong with change your account name.";
					     	 break;
					  case ($result['error'] == 0):
							 print "Your account name is changed. This is not yoru username when you log in! You must be wait before the settings are updated.";							 
							 break;
					  default:
					  		 print "It is not possible to change account settings.";
				  }				  
			}
 
Okey, it works perfectly. But I have an question. What can I do with the 'zoom' function? I have tried but there was nothing changed. What does the function do? I have a normally user account.
 
I've never seen it before. Did you read explanations about "zoom" on the page, to which I've given the link?
 
Here is the function. I have read it but I don't know what it is. Can I make the DirectAdmin panel bigger or smaller with this function? If I run the code, the "zoom value" has changed. But there is nothing to see. What can I do?
 
I don't know, what you can do.

It's already there, and nothing should be added. Read again:

don't ask.. this is depreciated. The power_user skin used to have a ZOOM=100 token set in the stylesheets that allowed you to make the entire interface bigger or smaller. The token was removed from the style sheet. You can in theory use this value for your own purposes if you have a program that needs info on any html page. Only accepts values from 95 to 120.

What is not clear?
 
Last edited:
Back
Top