Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pages sidebar disappearing
#1
I'm trying my hands on making a plugin, and I have encountered a problem already...
I added a side menu on the "Pages" tab, but when I click it, all I get is the output of the function but all the side menu's are gone(i.e.: "View all pages","Create new page" and "Activities")
Here's the full code:
Code:
<?php
/*
Plugin Name: Activities
Description: Display activities
Version:
Author: J-Gamer
Author URI:
*/

# get correct id for plugin
$thisfile=basename(__FILE__, ".php");

register_plugin(
    $thisfile,    // ID of plugin, should be filename minus php
    'Activities',    // Title of plugin
    '',    // Version of plugin
    'Jeroen De Busser',    // Author of plugin
    '',    // Author URL
    '',    // Plugin Description
    '',    // Page type of plugin
    'activities_show'    // Function that displays content
);

add_action('pages-sidebar', 'createSideMenu', array($thisfile, 'Activities'));

# functions
function activities_show() {
    echo '<p>Activities will be edited here</p>';
}
?>

GS version: 3.0
Reply


Messages In This Thread
pages sidebar disappearing - by J-Gamer - 2011-09-06, 01:12:06
pages sidebar disappearing - by mvlcek - 2011-09-06, 01:49:18
pages sidebar disappearing - by J-Gamer - 2011-09-06, 02:01:59
pages sidebar disappearing - by mvlcek - 2011-09-06, 02:03:39
pages sidebar disappearing - by J-Gamer - 2011-09-06, 02:29:15



Users browsing this thread: 1 Guest(s)