Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem while creating custom plugin
#7
In the part where you register your component

Code:
# register plugin
register_plugin(
    $thisfile,     # ID of plugin, should be filename minus php
    'Multisite Plugin',     # Title of plugin
    '0.1',         # Version of plugin
    'Johannes Pretorius',    # Author of plugin
    'http://www.dominion-it.co.za/',     # Author URL
    'Can Administer and Display multiple sites from one admin section.',     # Plugin Description
    'plugins',     # Page type of plugin
    'simple_events_createevent'      # Function that displays content
);

'simple_events_createevent' # Function that displays content
this function is the one that gets called when they click on your Event side menu.

thus write a function in your plugin

Code:
function simple_events_createevent(){
  echo "Hallo world";
}

and this is where you can add your form and logic.
Stopped developing on GS Plugins. Anybody welcome to take the projects over. Thanks for all the support all.
Reply


Messages In This Thread
Problem while creating custom plugin - by Connie - 2011-07-21, 01:24:47
Problem while creating custom plugin - by dominionit - 2011-07-21, 03:30:37



Users browsing this thread: 1 Guest(s)