Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Forum: Plugins
    In reply to: Setup Top Level Admin Menu

    I have some custom code that lives outside the wp-admin folder, and its linked to correctly in menu.php it spits out a page with a form on it. At the top of the page I use:
    <?php
    require_once( $_SERVER[‘DOCUMENT_ROOT’] . ‘/wp-admin/admin.php’);
    $title = __(‘Edit Inns’);
    $this_file = ‘inn.php’;
    $parent_file = ‘inn.php’;
    require_once( $_SERVER[‘DOCUMENT_ROOT’] . ‘/wp-admin/admin-header.php’);
    ?>
    to pull in the wordpress admin menu, but its not pulling in my plugin menu items (specifically cforms II) any suggestions?

    I don’t know if this is the appropriate thread, but its the most active. I have some custom code that lives outside the wp-admin folder, and its linked to correctly in menu.php it spits out a page with a form on it. At the top of the page I use:
    <?php
    require_once( $_SERVER[‘DOCUMENT_ROOT’] . ‘/wp-admin/admin.php’);
    $title = __(‘Edit Inns’);
    $this_file = ‘inn.php’;
    $parent_file = ‘inn.php’;
    require_once( $_SERVER[‘DOCUMENT_ROOT’] . ‘/wp-admin/admin-header.php’);
    ?>
    to pull in the wordpress admin menu, but its not pulling in my plugin menu items (specifically cforms II) any suggestions?

    I don’t know if this is the appropriate thread, but its the most active. I have some custom code that lives outside the wp-admin folder, and its linked to correctly in menu.php it spits out a page with a form on it. At the top of the page I use:
    <?php
    require_once( $_SERVER[‘DOCUMENT_ROOT’] . ‘/wp-admin/admin.php’);
    $title = __(‘Edit Inns’);
    $this_file = ‘inn.php’;
    $parent_file = ‘inn.php’;
    require_once( $_SERVER[‘DOCUMENT_ROOT’] . ‘/wp-admin/admin-header.php’);
    ?>
    to pull in the wordpress admin menu, but its not pulling in my plugin menu items (specifically cforms II) any suggestions?

    I don’t know if this is the appropriate thread, but its the most recent. I’m debugging a small problem with related to plugins in general, and I just happen to be using cforms. I have some custom code that appears in the admin panel. The code lives outside the wp-admin folder, and its linked to correctly in menu.php it spits out a page with a form on it. At the top of the page I use:
    <?php
    require_once( $_SERVER[‘DOCUMENT_ROOT’] . ‘/wp-admin/admin.php’);
    $title = __(‘Edit Inns’);
    $this_file = ‘inn.php’;
    $parent_file = ‘inn.php’;
    require_once( $_SERVER[‘DOCUMENT_ROOT’] . ‘/wp-admin/admin-header.php’);
    ?>
    to pull in the wordpress admin menu, but its not pulling in my plugin menu items in the admin menu (specifically cforms II) any suggestions?

Viewing 4 replies - 1 through 4 (of 4 total)