Welcome to Geeklog Thursday, December 14 2017 @ 11:19 pm EST


Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/2005
Posts: 1569
Location:la rochelle, France
Before autoinstall plugins handled postinstall functions by calling a plugin_postinstall function
PHP Formatted Code
// give the plugin a chance to perform any post-install operations
    if (function_exists ('plugin_postinstall')) {
        if (!plugin_postinstall ()) {
            $uninstall_plugin ();

            return false;
        }
    }



What is the best way to do it now?

Ben
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/2002
Posts: 13073
Location:Stuttgart, Germany
The postinstall function is still supported. Are you saying it doesn't work?

bye, Dirk

Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/2005
Posts: 1569
Location:la rochelle, France
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
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/2002
Posts: 13073
Location:Stuttgart, Germany
It's called either from the install script or from admin/plugins.php - so that's why you won't find it in systems Smile

Both the bundled Links and XMLSitemap plugins have a postinstall function in their autoinstall.php that you can refer to for examples.

bye, Dirk

Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/2005
Posts: 1569
Location:la rochelle, France
Mr. Green I forgot to look at the right folder.

Thanks,

Ben
I'm available to customise your themes or plugins for your Geeklog CMS

All times are EST. The time is now 11: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