How to add a menu option?

Discussion in 'General' started by reg10, May 2, 2008.

  1. reg10

    Joined:
    May 1, 2008
    Messages:
    1
    Likes Received:
    0
    I have avantfax, phpmyadmin, and some other stuff installed and i would like to for example add avantfax to the fax menu. I have created a avantfaxWrapper.php file that points to the avantfax directory. When i edit the file menu.db and acl.db and add the avantfax stuff, i just cannot get a new menu button created. Is there a guideline how to add stuff to the menu?

    Later on I would like to release a few modules like a phpmyadmin, websipphone, and some other stuff to install via the Load Module option in the system menu. So can anybody explain or work with me how to do this?

    greets Mikey
     
  2. adonisfigueroa

    Joined:
    Sep 24, 2007
    Messages:
    35
    Likes Received:
    0
    your phpmyadmin must be in the folder /var/www/html
    then add the menu:
    --------------------------------
    sqlite3 /var/www/db/menu.db
    --------------------------------


    If you want add to the menu extras:
    --------------------------------
    insert into menu values('phpmyadmin', 'extras', 'FOLDER', 'phpMyAdmin', 'framed');
    --------------------------------
    FOLDER is the name of your phpmyadmin folder in /var/www/html


    then add the next:
    --------------------------------
    sqlite3 /var/www/db/acl.db
    insert into acl_resource values(124, 'phpMyAdmin', 'phpMyAdmin');
    --------------------------------

    Note: See the first value (it's a number: 124), it can't be the same of another, first
    review the last id with:
    --------------------------------
    select * from acl_resource;
    --------------------------------
    and choose the last one +1


    Finally add:
    --------------------------------
    insert into acl_group_permission values(166, 1, 1, 124);
    --------------------------------
    Note: The first number (166) is:
    --------------------------------
    select * from acl_group_permission;
    --------------------------------
    the last one +1

    the last number (124) is the same that the inserted in the acl_resource

    Now you can see the module phpMyAdmin in Elastix - Extras
    Remember that if you are logged you need logout and login.
     

Share This Page