Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems "Top-level" plugin
#1
i want to write a small "top-level" plugin (means: i use an additional tab next to the plugins tab in the menu')
in the main section of the plugin, i want to use a php file which renders my form.
i decided to put that into the admin/plugins/myplugin folder and added the tab with:
Code:
add_action('nav-tab', 'createNavTab', array(''plugins/myplugin/myplugin.php', 'My Plugin'));

the starting code of plugins/myplugin/myplugin.php, but the include of ../../inc/common.php fails. It fails, because include of cookie_functions:121 fails and that cause cookie_functions:9 inc_configuration.php fails). what can i do?
Code:
<?php

/****************************************************
*
* @File:     plugins.php
* @Package:    GetSimple
* @Action:    Displays all installed plugins.    
*
*****************************************************/
// Setup inclusions
$load['plugin'] = true;

// Relative
$relative = '../../../';
// Include common.php
include('../../inc/common.php');

// Variable settings
login_cookie_check();
$path = tsl('plugins');
$counter = '0';
$table = '';

?>
Reply


Messages In This Thread
Problems "Top-level" plugin - by yxcvbnm - 2010-03-05, 05:02:05
Problems "Top-level" plugin - by n00dles101 - 2010-03-05, 05:27:39
Problems "Top-level" plugin - by yxcvbnm - 2010-03-05, 08:40:54
Problems "Top-level" plugin - by n00dles101 - 2010-03-05, 21:51:05



Users browsing this thread: 1 Guest(s)