1

Temat: Pisanie plugina

Czy ma ktoś jakiś tutorial (lub coś podobnego) pisania plugina do PunBB?

##
##
##  A few notes of interest for aspiring plugin authors:
##
##  1. If you want to display a message via the message() function, you
##     must do so before calling generate_admin_menu($plugin).
##
##  2. Plugins are loaded by admin_loader.php and must not be
##     terminated (e.g. by calling exit()). After the plugin script has
##     finished, the loader script displays the footer, so don't worry
##     about that. Please note that terminating a plugin by calling
##     message() or redirect() is fine though.
##
##  3. The action attribute of any and all <form> tags and the target
##     URL for the redirect() function must be set to the value of
##     $_SERVER['REQUEST_URI']. This URL can however be extended to
##     include extra variables (like the addition of &foo=bar in
##     the form of this example plugin).
##
##  4. If your plugin is for administrators only, the filename must
##     have the prefix "AP_". If it is for both administrators and
##     moderators, use the prefix "AMP_". This example plugin has the
##     prefix "AMP_" and is therefore available for both admins and
##     moderators in the navigation menu.
##
##  5. Use _ instead of spaces in the file name.
##
##  6. Since plugin scripts are included from the PunBB script
##     admin_loader.php, you have access to all PunBB functions and
##     global variables (e.g. $db, $pun_config, $pun_user etc).
##
##  7. Do your best to keep the look and feel of your plugins' user
##     interface similar to the rest of the admin scripts. Feel free to
##     borrow markup and code from the admin scripts to use in your
##     plugins. If you create your own styles they need to be added to
##     the "base_admin" style sheet.
##
##  8. Plugins must be released under the GNU General Public License or
##     a GPL compatible license. Copy the GPL preamble at the top of
##     this file into your plugin script and alter the copyright notice
##     to refrect the author of the plugin (i.e. you).
##
##

Tyle jest napisane w AMP_Example.php - jednym słowem bardzo się autor skryptu rozspisał. wink

Pisanie programu komputerowego jest rozkoszą, uruchamianie jest zmorą.
Prawa Makarijewa

http://www.php.e9.pl/ | http://www.juwenalia2006.pl/

2

Odp: Pisanie plugina

Artykuły - Dokumentacja - Informacje dla programistów...
kurna nauczcie sie szukac!

Pozdrawiam
Mateusz Wojnarowski

3

Odp: Pisanie plugina

Wybacz. Akurat tutaj nie patrzyłem. Swoja drogą tytuł nie wiele mówi i jest inny niż ten poadny przez Ciebie w poście powyżej. tongue

Tak czy inaczej dziękuję. smile

Pisanie programu komputerowego jest rozkoszą, uruchamianie jest zmorą.
Prawa Makarijewa

http://www.php.e9.pl/ | http://www.juwenalia2006.pl/