Welcome to Geeklog, Anonymous Saturday, June 21 2025 @ 02:19 pm EDT
Geeklog Forums
Handle postinstall
Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Before autoinstall plugins handled postinstall functions by calling a plugin_postinstall function
if (function_exists ('plugin_postinstall')) {
if (!plugin_postinstall ()) {
$uninstall_plugin ();
return false;
}
}
What is the best way to do it now?
Ben
Text Formatted Code
// give the plugin a chance to perform any post-install operationsif (function_exists ('plugin_postinstall')) {
if (!plugin_postinstall ()) {
$uninstall_plugin ();
return false;
}
}
What is the best way to do it now?
Ben
13
14
Quote
Status: offline
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
13
18
Quote
Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
As I do not found any function calling to plugin_postinstall in the system folder, I assume that authors of plugins must include the call somewhere.
The question is where?
Ben
The question is where?
Ben
12
11
Quote
Status: offline
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
It's called either from the install script or from admin/plugins.php - so that's why you won't find it in systems 
Both the bundled Links and XMLSitemap plugins have a postinstall function in their autoinstall.php that you can refer to for examples.
bye, Dirk

Both the bundled Links and XMLSitemap plugins have a postinstall function in their autoinstall.php that you can refer to for examples.
bye, Dirk
12
16
Quote
Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569

Thanks,
Ben
15
15
Quote
All times are EDT. The time is now 02:19 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content