Jump to content
Froxlor Forum
  • 0

[solved] Hide features in panel.


b3y

Question

hey,

 

first of all im very gratefull for your job. Panel is beautifully, clearly and easy for users. I want to use only from mysql database soo i want to hide options in panel like Extras, FTP, Trafic and Domains. Is that possible to hide it ?

 

I would be very gratefull.

 

Cheers,

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

it's not that easy as i thought. When i put "*" before all function and refresh page with froxlor i got blank page (white). When i uncommnet i back to normal view.

For example i want to hide "ftp" feature soo i did like below:

                'mysql' => array (
                        'url' => 'customer_mysql.php',
                        'label' => $lng['menue']['mysql']['mysql'],
                        'elements' => array (
                                array (
                                        'url' => 'customer_mysql.php?page=mysqls',
                                        'label' => $lng['menue']['mysql']['databases'],
                                        'required_resources' => 'mysqls',
                                ),
                                array (
                                        'url' => Settings::Get('panel.phpmyadmin_url'),
                                        'new_window' => true,
                                        'label' => $lng['menue']['mysql']['phpmyadmin'],
                                        'required_resources' => 'mysqls_used',
                                        'show_element' => ( Settings::Get('panel.phpmyadmin_url') != '' ),
                                ),
                        ),
                ),
                'domains' => array (
                        'url' => 'customer_domains.php',
                        'label' => $lng['menue']['domains']['domains'],
                        'elements' => array (
                                array (
                                        'url' => 'customer_domains.php?page=domains',
                                        'label' => $lng['menue']['domains']['settings'],
                                ),
                        ),
                ),
                *'ftp' => array (
                *       'url' => 'customer_ftp.php',
                *       'label' => $lng['menue']['ftp']['ftp'],
                *       'elements' => array (
                *               array (
                *                       'url' => 'customer_ftp.php?page=accounts',
                *                       'label' => $lng['menue']['ftp']['accounts'],
                *               ),
                *               array (
                *                       'url' => Settings::Get('panel.webftp_url'),
                *                       'new_window' => true,
                *                       'label' => $lng['menue']['ftp']['webftp'],
                *                       'show_element' => ( Settings::Get('panel.webftp_url') != '' ),
                *               ),
                *       ),
                *),

And im still wondering what did i wrong.

Link to comment
Share on other sites

* is not a valid single-line-comment character, try: 
 

                'mysql' => array (
                        'url' => 'customer_mysql.php',
                        'label' => $lng['menue']['mysql']['mysql'],
                        'elements' => array (
                                array (
                                        'url' => 'customer_mysql.php?page=mysqls',
                                        'label' => $lng['menue']['mysql']['databases'],
                                        'required_resources' => 'mysqls',
                                ),
                                array (
                                        'url' => Settings::Get('panel.phpmyadmin_url'),
                                        'new_window' => true,
                                        'label' => $lng['menue']['mysql']['phpmyadmin'],
                                        'required_resources' => 'mysqls_used',
                                        'show_element' => ( Settings::Get('panel.phpmyadmin_url') != '' ),
                                ),
                        ),
                ),
                'domains' => array (
                        'url' => 'customer_domains.php',
                        'label' => $lng['menue']['domains']['domains'],
                        'elements' => array (
                                array (
                                        'url' => 'customer_domains.php?page=domains',
                                        'label' => $lng['menue']['domains']['settings'],
                                ),
                        ),
                ),
/*
                'ftp' => array (
                       'url' => 'customer_ftp.php',
                       'label' => $lng['menue']['ftp']['ftp'],
                       'elements' => array (
                               array (
                                       'url' => 'customer_ftp.php?page=accounts',
                                       'label' => $lng['menue']['ftp']['accounts'],
                               ),
                               array (
                                       'url' => Settings::Get('panel.webftp_url'),
                                       'new_window' => true,
                                       'label' => $lng['menue']['ftp']['webftp'],
                                       'show_element' => ( Settings::Get('panel.webftp_url') != '' ),
                               ),
                       ),
                ),
*/
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...