• User

    Problemi Menu Admin per plugin link exchange di Wordpress

    Buongiorno a tutti, dopo aver installato il plugin

    Link Exchange Manager 1.4 This plugin enables you to embed a link exchange directory right in the comfort of your own blog. Use this plugin to gain new partner sites and to improve your overall backlink count. Di eBrandMarketing.

    in WordPress 2.7, funziona tutto regolarmente, tranne che il menu di questo plugin si sovrappone al menu degli utenti (che non è più visibile).

    Come si può modificare il codice di questo plugin per spostare il suo pulsante di configurazione in coda agli altri?

    Ho guardato nelle guide, ma non ho capito molto. Il pulsante viene collocato in modo diverso da come fanno gli altri plugin..
    Riporto il codice:

    // Create the button for the plugin
    function eblex_put_button()
    {
    global $menu, $submenu, $wpdb, $table_prefix;
    $menu[50] = array(('Link exchange'), 'manage_links', 'link-exchange.php');
    $inbox = $wpdb->get_var("SELECT count(*) FROM " . $table_prefix . "eblex_links WHERE active='0'");
    if ($_GET['action'] == "delete") {
    $confirmation = $wpdb->get_var("SELECT id FROM " . $table_prefix . "eblex_links WHERE id='" . $_GET['id'] . "'");
    if ($confirmation != "") {
    $inbox--;
    }
    }
    if ($_GET['action'] == "approve") {
    $confirmation = $wpdb->get_var("SELECT id FROM " . $table_prefix . "eblex_links WHERE id='" . $_GET['id'] . "' AND active='0'");
    if ($confirmation != "") {
    $inbox--;
    }
    }
    $submenu['link-exchange.php'][5] = array(
    ('Inbox (' . $inbox . ')'), 'manage_links', 'link-exchange-inbox.php');
    $submenu['link-exchange.php'][10] = array(('Quick Add'), 'manage_links', 'link-exchange-qa.php');
    $submenu['link-exchange.php'][15] = array(
    ('Categories'), 'manage_links', 'link-exchange-categories.php');
    $submenu['link-exchange.php'][20] = array(('Browse links'), 'manage_links', 'link-exchange-browse.php');
    $submenu['link-exchange.php'][25] = array(
    ('Search'), 'manage_links', 'link-exchange-search.php');
    $submenu['link-exchange.php'][30] = array(('Backlink cleansing'), 'manage_links', 'link-exchange-clean.php');
    $submenu['link-exchange.php'][35] = array(
    ('Statistics'), 'manage_links', 'link-exchange-stats.php');
    $submenu['link-exchange.php'][40] = array(__('Settings'), 'manage_links', 'link-exchange-settings.php');
    }

    add_action('admin_head', 'eblex_put_button');
    add_action('activate_linkexchange/plugin.php', 'eblex_install');
    add_action('deactivate_linkexchange/plugin.php', 'eblex_uninstall');?>