Aktuelle Version: 8.2
Plugins erstellen
PLUGINNAME = Name des Plugins in Kleinbuchstaben ohne Sonderzeichen
Datei: plugins/PLUGINNAME/class.PLUGINNAME.php
Quellcode
class PLUGINNAME extends Plugin
{
var $name = 'Name des Plugins';
var $description = 'Beschreibung des Plugins';
var $author = 'Author gerne auch mit HTML-Link zur Website';
var $version = '1.0';
var $priority = 50;
var $hooks = array(
'Name des Hooks' => 'Name der Funktion',
'Name des Hooks' => 'Name der Funktion'
);
// Standard-Funktionen, die optional enthalten sein können:
function Activate()
{
return true;
}
function Deactivate()
{
return true;
}
// als Startseite anzeigen ...
function IsIndexPage()
{
return false;
}
// als einzelne Seite anzeigen ...
function IsSinglePage()
{
return false;
}
function PageName()
{
return $this->name;
}
function PageInit()
{
return true;
}
function PageContent()
{
return true;
}
function ApSettings()
{
return true;
}
}
URLs
Der Link zur SinglePage kann mit url('index.php', 'PLUGINNAME') generiert werden.
Der Link für die Funktion ApSettings() lautet: ?nav=...&plugin=PLUGINNAME
Verfügbare Hooks
| Dateiname | Zeile | Hook-Name | Parameter | Beschreibung |
|---|---|---|---|---|
| ap/include/advanced_plugins.php | 104 | ap-plugins-start | ||
| ap/include/advanced_plugins.php | 147 | ap-plugins-links | ||
| ap/include/settings_boards_edit.php | 83 | ap-boards_edit-save | ||
| ap/include/settings_boards_edit.php | 232 | ap-boards_edit-settings | ||
| ap/include/settings_boards_edit.php | 275 | ap-boards_edit-echoauth | ||
| ap/include/settings_settings.php | 187 | ap-settings-save | ||
| ap/include/settings_settings.php | 205 | ap-settings-settings | ||
| ap/include/settings_settings.php | 221 | ap-settings-language | ||
| ap/include/settings_settings.php | 264 | ap-settings-design | ||
| ap/include/settings_settings.php | 289 | ap-settings-user | ||
| ap/include/settings_settings.php | 315 | ap-settings-admin | ||
| ap/include/settings_settings.php | 322 | ap-settings-other | ||
| ap/include/user_edit.php | 38 | ap-user_edit-tabs | ||
| ap/include/user_edit.php | 139 | ap-user_edit-settings_save | ||
| ap/include/user_edit.php | 192 | ap-user_edit-settings | ||
| ap/include/user_edit.php | 378 | ap-ip | ||
| ap/include/user_edit.php | 407 | ap-user_edit-gettab | ||
| ap/include/user_edit.php | 433 | ap-user_edit-profil_save | ||
| ap/include/user_edit.php | 504 | ap-user_edit-personal | ||
| ap/include/user_edit.php | 543 | ap-user_edit-contact | ||
| ap/include/user_edit.php | 555 | ap-user_edit-profil | ||
| ap/index.php | 53 | ap-init_style | ||
| ap/index.php | 83 | ap-init_language | ||
| ap/index.php | 105 | ap-head | ||
| ap/index.php | 159 | ap-nav_settings | ||
| ap/index.php | 169 | ap-nav_user | ||
| ap/index.php | 180 | ap-nav_advanced | ||
| ap/list.php | 59 | ap-list | ||
| ap/updater.php | 43 | ap-updater | ||
| include/functions.php | 260 | functions-start | ||
| include/functions.php | 548 | functions-style_convert-nav | ||
| include/functions.php | 569 | functions-style_convert-user_login | ||
| include/functions.php | 906 | functions-user | ||
| include/functions.php | 1155 | functions-user_register-save | ||
| include/functions.php | 1158 | functions-user_register-ok | ||
| include/functions.php | 1223 | functions-sendpm-begin | ||
| include/functions.php | 1271 | functions-sendpm-end | ||
| include/functions.php | 1383 | functions-deleteuser | ||
| include/functions.php | 1395 | functions-eraseuser | ||
| include/functions.php | 1406 | functions-activateuser | ||
| include/functions.php | 1413 | functions-reactivateuser | ||
| include/functions.php | 2290 | functions-deletethread | ||
| include/functions.php | 2330 | functions-deletepost | ||
| include/functions.php | 2359 | functions-movethread | ||
| include/functions.php | 2420 | functions-movepost | ||
| include/init.php | 112 | init-start | nach dem Laden von Style und Sprache | |
| include/init.php | 220 | init-login_cookie | username, ip | nach Login mittels Cookie |
| include/init.php | 239 | init-login | username, ip | |
| include/init.php | 361 | init-cronjob | wird einmal pro Tag aufgerufen oder bei der Eingabe "?system_lastcheck=true" als Parameter | |
| include/my_profile_top.php | 30 | my_profile_top-list | ||
| include/page_bottom.php | 22 | page_bottom-content_bottom | ||
| include/page_top.php | 60 | page_top-breadcrumbs | ||
| include/page_top.php | 84 | page_top-header_vars | ||
| include/page_top.php | 158 | page_top-head | ||
| include/page_top.php | 243 | page_top-offline | ||
| include/page_top.php | 281 | page_top-content_top | ||
| backup.php | 36 | backup | ||
| do.php | 234 | do-newthread_newpost | ||
| do.php | 274 | do-newthread_threadini | ||
| do.php | 406 | do-newthread_reply | ||
| do.php | 571 | do-newthread_edit | ||
| do.php | 601 | do-edit | ||
| do.php | 1055 | do-move | ||
| forum.php | 19 | forum-start | vor dem Inhalt auf der Seite "Forum" | |
| forum.php | 89 | forum-stat_start | ||
| forum.php | 196 | forum-stat_end | ||
| forum.php | 277 | forum-end | nach dem Inhalt auf der Seite "Forum" | |
| my_profile.php | 37 | my_profile-options | ||
| my_profile_data.php | 21 | profil-data_data | ||
| my_profile_data.php | 51 | my_profile_data-save | ||
| my_profile_data.php | 150 | my_profile_data-personal | ||
| my_profile_data.php | 189 | my_profile_data-contact | ||
| my_profile_data.php | 198 | my_profile_data-settings | ||
| my_profile_settings.php | 40 | my_profile_settings-save | ||
| my_profile_settings.php | 137 | my_profile_settings-settings | ||
| my_profile_signature.php | 21 | profil-signatur_data | ||
| pm.php | 38 | pm-send | ||
| post.php | 100 | post-newthread | ||
| post.php | 125 | post-reply | ||
| post.php | 137 | post-edit | ||
| post.php | 172 | post-loadfrompost | ||
| post.php | 246 | post-option_select | Hook 1/3 zum Einfügen einer neuen Reiterkarte | |
| post.php | 334 | post-option_fieldset | Hook 2/3 zum Einfügen einer neuen Reiterkarte | |
| post.php | 370 | post-option_javascript | Hook 3/3 zum Einfügen einer neuen Reiterkarte | |
| reg.php | 52 | reg-checkdata | ||
| reg.php | 129 | reg-data1 | ||
| reg.php | 144 | reg-data2 | ||
| rss.php | 71 | rss-item | ||
| thread.php | 392 | thread-user-add | ||
| thread.php | 393 | thread-avatar-add | ||
| thread.php | 400 | thread-ip | ||
| thread.php | 436 | thread-post_end | ||
| thread.php | 479 | thread-post_buttons | ||
| thread.php | 484 | thread-post_after | ||
| user.php | 70 | user-data_information | ||
| user.php | 137 | user-data_personal | ||
| user.php | 170 | user-col_left | ||
| user.php | 246 | user-col_right | ||
| user.php | 254 | user-middle | ||
| user.php | 271 | user-gb_save | ||
| user.php | 360 | user-bottom | ||
| whoisonline.php | 130 | whoisonline-ip |