|
Wrote a pluginPosted by nurikabe
You must create two files: install_inc.php and package_inc.php in the plugin directory.
install_inc.php: this file is used to install/upgrade/remove the plugin (example: install_inc.php). package_inc.php: this file is used by the packager to create the archive (example: package_inc.php). Vincent Mantis: 1.1.0, 1.1.5, 1.1.1 PHP: 5.0.4 SQL: MySQL 5.0.19 OS: Linux Please complete your signature with your environment informations. Enable skype notification here
Yes I think this is the .pkg file. Which internet browser do you use? Vincent Mantis: 1.1.0, 1.1.5, 1.1.1 PHP: 5.0.4 SQL: MySQL 5.0.19 OS: Linux Please complete your signature with your environment informations. Enable skype notification here
You can try by changing the line 103 in the plugins_package_page.php file (not tested):
before: after:
I'll add a bug on the bugtracker to fix this issue. Vincent Mantis: 1.1.0, 1.1.5, 1.1.1 PHP: 5.0.4 SQL: MySQL 5.0.19 OS: Linux Please complete your signature with your environment informations. Enable skype notification here
Found the problem. There was some white space (a couple of extra CR/LF) at the end of this included file:
include( $t_plugin_directory . 'package_inc.php' ); that was causing the headers not to output. Removed the whitespace and it works fine. Edited 1 time(s). Last edit at 10/06/2007 05:26AM by nurikabe.
Hi,
I've written a page in the Wiki. Tell me what type of plugin you want to write (something that change the Mantis behaviour like HTMLmail or BBCode, something that add new functions like Search, Reminder, Hierarchy...). You can start with an existing plugin. Vincent Mantis: 1.1.0, 1.1.5, 1.1.1 PHP: 5.0.4 SQL: MySQL 5.0.19 OS: Linux Please complete your signature with your environment informations. Enable skype notification here
Vincent - Thanks for your replyI have seen the Wiki page already. I am basically trying to integrate CVS and Mantis. I am trying to provide additional functionality to Mantis by adding a page where a release manager can add a new branch for a release, specify who can work using that branch etc., I am right in looking at writing a plugin for this purpose?
Yes it is possible to write a plugin. You probably want to know what you need to write in what file, isn't it? Vincent Mantis: 1.1.0, 1.1.5, 1.1.1 PHP: 5.0.4 SQL: MySQL 5.0.19 OS: Linux Please complete your signature with your environment informations. Enable skype notification here
Stop don't upgrade (there are too much bugs in the new release). I'll add information about the files in the Wiki tomorrow. The plugin manager uses the install_inc.php and package_inc.php files to create a packages (these files must be located into your plugin directory). You can find files examples in the Wiki. Vincent Mantis: 1.1.0, 1.1.5, 1.1.1 PHP: 5.0.4 SQL: MySQL 5.0.19 OS: Linux Please complete your signature with your environment informations. Enable skype notification here
Let's take an example Copy/paste the content of this page (I mean only the PHP code) in a package_inc.php file located into the the bbcode plugin directory (if you don't have the plugin BBCode you can use the pluginmanager directory). Then browse the plugins_page.php with you favorite browser. In this page you have a part named Package a plugin, select a plugin and then click on submit. Normally you are prompted to save a .pkg file. Vincent Mantis: 1.1.0, 1.1.5, 1.1.1 PHP: 5.0.4 SQL: MySQL 5.0.19 OS: Linux Please complete your signature with your environment informations. Enable skype notification here
No i didn't.
I've just created one following the same structure as the plugin manager's info.php file. The good news are that the ddl is now filed with my plugin. And it does create the .pkg file. However, it seems that i still have some errors to remdiate. I'll certainly post more messages. :-) Thanx
Sorry, only registered users may post in this forum.
Online Users
Guests:
2
Record Number of Users:
1
on April 02, 2023
Record Number of Guests:
115
on November 09, 2023
Top Users
|