WordPress.org

Ready to get started?Download WordPress

Forums

Link Shortcut
Add link shortcut doesn't show (4 posts)

  1. vasilissk
    Member
    Posted 3 years ago #

    I activated the plugin several times and the Add link shortcut button doesn't show in the manu Link Shortcut - Add New Link Shortcut.

    I don't know what is going wrong with it.

  2. ivanoats
    Member
    Posted 3 years ago #

    I see this error too. You can add the data for the shortcut, but there is no 'done' or 'add shortcut' button to finish the process.

  3. quikeg
    Member
    Posted 3 years ago #

    The plugin shows a Message when i try to activate.
    Is an unusual error because is showed in header administrative page:

    This is the message:

    Husani Oakley. Version: 1.3.1 */ /* Copyright 2009 Husani Oakley (email : wordpressplugins@husani.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /** SETTINGS AND REQUIRED FILES */ define("LINKSHORTCUT_NAME", "/link-shortcut"); define("LINKSHORTCUT_UI_LOC", ABSPATH . PLUGINDIR . LINKSHORTCUT_NAME . "/admin"); require_once(ABSPATH . PLUGINDIR . LINKSHORTCUT_NAME . "/lib/Linkshortcut.php"); require_once(ABSPATH . PLUGINDIR . LINKSHORTCUT_NAME . "/lib/LinkshortcutInstaller.php"); require_once(ABSPATH . PLUGINDIR . LINKSHORTCUT_NAME . "/lib/LinkshortcutAdmin.php"); require_once(ABSPATH . PLUGINDIR . LINKSHORTCUT_NAME . "/lib/LinkshortcutDataManager.php"); //grab control of the flow during template_redirect. add_action('template_redirect', 'linkshortcut'); /** * MAIN WORK FUNCTION. At this point, we know if WP has found the content. if we're a * 404, we'll check to see if it's a linkshortcut. if it is, redirect; otherwise, do nothing * and let WP continue with the error process. */ function linkshortcut(){ global $wp_query; //are we a 404? if(is_404()){ //yes. send to linkshortcut, which will determine if we redirect or not. $LinkshortcutManager = new LinkshortcutManager; $LinkshortcutManager->go(); } } /********* HOOKS AND ACTIONS REGISTRATION FOR INSTALL/UNINSTALL AND ADMIN PANELS ***********/ /** create options page and menu structure/pages */ add_action('admin_menu', 'linkshortcutAdminMenuCreation'); function linkshortcutAdminMenuCreation() { $LinkshortcutAdmin = new LinkshortcutAdmin(); add_menu_page("Link Shortcuts", "Link Shortcuts", 8, 'linkshortcut_list', array($LinkshortcutAdmin, 'displayMain')); add_submenu_page('linkshortcut_list', "addnew", "Add New", 8, 'linkshortcut_addnew', array($LinkshortcutAdmin, 'displayAddNewForm')); if(is_admin()){ //include javascript add_action('wp_print_scripts', array($LinkshortcutAdmin,'displayJS')); } add_options_page('Link Shortcut Options', 'Link Shortcut Options', 8, 'linkshortcut_options', array($LinkshortcutAdmin, 'displayOptionsPanel')); } /** set up ajax for admin custom ident check */ $LinkshortcutAdmin = new LinkshortcutAdmin(); add_action('wp_ajax_linkshortcut_check_ident', array($LinkshortcutAdmin, 'checkIdentWithAjax')); /** register activation/deactivation hooks. since i can't seem to get a class's method used as a callback, doing it ghetto style. */ $LinkshortcutInstaller = new LinkshortcutInstaller; register_activation_hook(__FILE__,array($LinkshortcutInstaller,'doInstall')); register_deactivation_hook(__FILE__,array($LinkshortcutInstaller,'doUninstall')); ?>

  4. chinlips
    Member
    Posted 3 years ago #

    Hi Guys,

    Same problem here; no "Save" button is visible.

    As a quick fix for the problem (in case you want to press on and use the plugin);

    1) Open 'add.inc.php', which is in the plugin folder -> link-shortcut/admin/add.inc.php

    2) Cut lines 49 - 64, which should look like;

    <!-- sidebar and save button -->
        <div id="poststuff" class="metabox-holder">
          <div id="side-info-column" class="inner-sidebar">
    	  <div id="linksubmitdiv" class="postbox " >
    	    <h3><span>Save</span></h3>
    	    <div class="submitbox" id="submitlink">
    	      <div id="major-publishing-actions">
    		<div id="publishing-action">
    		  <input name="save" type="submit" class="button-primary" id="publish" tabindex="4" accesskey="p" value="Add Link Shortcut" />
    		</div>
    		<div class="clear"></div>
    	      </div>
    	    </div>
    	  </div>
          </div>
          <!-- /sidebar and save button -->

    3) Paste this code in in further down in the file, just after '<!-- /main body -->'

    4) Change the following line (part of the data you have just pasted);
    change: <div id="side-info-column" class="inner-sidebar">
    to: <div id="side-info-column" class="inner-sidebar" style="float: left;">

    Save the file.

    Ta.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic