Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 12-22-2005, 03:04 PM
eon's Avatar
eon Offline
pixelpost guru
 
Join Date: Nov 2005
Location: Ned
Posts: 280
Send a message via ICQ to eon
Content of addon wrong site of menu

I try to convert my modification of Pixelpost 1.4.3 to an addon for Pixelpost 1.5.
But my form is been showed above the menu.
Image:
http://tweakers.net/ext/f/5f4ec4ccd3...a14f8/full.png

This are the setting of the addon.
PHP Code:
// Same info as non admin addons
$addon_name "Admin Addtext addon";
$addon_description "Use text instand of an image. Useful as an introduction on your photo's";
$addon_version =  "0.5";

// The workspace. Where to activate the function inside index.php
$addon_workspace "admin_main_menu";

// menu where the addon should appear in admin panel. in this case: images menu
$addon_menu "NEW TEXT";

// What would be the title of submenu of this addon: 12cropimage
$addon_admin_submenu "";

// What is the function
$addon_function_name ""
Anyone an idea to solve this?
__________________
Northing.nl
Reply With Quote
  #2  
Old 12-22-2005, 03:36 PM
Connie
Guest
 
Posts: n/a
eon,

I am sure there is no existing menue
"// menu where the addon should appear in admin panel. in this case: images menu
$addon_menu = "NEW TEXT";

where you wan to integrate your Addon? NEW TEXT is no existing menue ...
Reply With Quote
  #3  
Old 12-22-2005, 03:54 PM
eon's Avatar
eon Offline
pixelpost guru
 
Join Date: Nov 2005
Location: Ned
Posts: 280
Send a message via ICQ to eon
Oke, I made a new one. This ia a new area for me. FUN
I want to made a new menu "New Text" with his own content.
PHP Code:
// Same info as non admin addons
$addon_name "Admin Addtext addon";
$addon_description "Use text instand of an image. Useful as an introduction on your photo's";
$addon_version =  "0.5";

$addon_workspace "admin_main_menu";
$addon_menu "NEW-TEXT";
add_admin_functions('',$addon_workspace,$addon_menu,'');

$addon_workspace "admin_main_menu_contents";
$addon_function_name "addtext";
$addon_admin_submenu "";
// add the function
add_admin_functions($addon_function_name,$addon_workspace,$addon_menu,$addon_admin_submenu); 
Now I have the menu, but no content.
__________________
Northing.nl
Reply With Quote
  #4  
Old 12-22-2005, 04:14 PM
eon's Avatar
eon Offline
pixelpost guru
 
Join Date: Nov 2005
Location: Ned
Posts: 280
Send a message via ICQ to eon
Now I tried the admin_newitem.php code. But here I have the same problem.
I see the menubutton, but no content.

Used code:
PHP Code:
<?php
$addon_name 
"test";
$addon_description "test";
$addon_version =  "test";

// add the new page title to the main menu
$addon_workspace "admin_main_menu";
$addon_menu "NEWITEM";
add_admin_functions('',$addon_workspace,$addon_menu,'');

// assign a function name to make the content of the new page
// add the function
$addon_workspace 'admin_main_menu_contents';
$addon_function_name 'new_item_show_page';
$addon_admin_submenu "";

add_admin_functions($addon_function_name,$addon_workspace,$addon_menu,$addon_admin_submenu);

// the function to write the content of the new page
function new_item_show_page()
{
global 
$addon_admin_functions;
global 
$pixelpost_db_prefix;
if (
$_GET['view']=='newitem'){
echo 
"
<div class='caption'>
NEWITEM
</div>
<div class='jcaption'>
Some Section Title...
</div>
"
;
echo 
"<p/> This is really a <b>new page</b>!!";
}
// end if

}

?>
__________________
Northing.nl
Reply With Quote
  #5  
Old 12-22-2005, 08:26 PM
eon's Avatar
eon Offline
pixelpost guru
 
Join Date: Nov 2005
Location: Ned
Posts: 280
Send a message via ICQ to eon
Find the solution here.
__________________
Northing.nl
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 03:15 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs