Jump to content

Settings Key Configuration During Plugin Installation?

Richard Foley

Recommended Posts

I'm looking for a way to make an external call during plugin installation/setup which *includes* processing a user prompt response. What I have so far is a javascript dialogue box prompt to the user, (which is fine). The problem I have is getting that value back to the plugin installation process (within the php preinstallscript), so that the value can be inserted into the configuration settings file.


Like this during install: user prompt -> value -> plugin_settings_config.


Perhaps I'm making this more complicated than it needs to be, but it seems to me an awkward handover, between client and server, and perhaps someone has already solved this before me. Maybe there's an obvious and easy hook which I am missing? Any helpful suggestions as to how to go about this appreciated.



Link to comment
Share on other sites

Plugin installation / upgrade has been designed to be run unattended. I'm not really sure it would be wise to add a hook for what you have in mind.


What I did with a plugin that requires some action is adding a warning on the left bar to tell the admin user that some additional configuration is required, e.g.




Feel free to have a look: https://github.com/adserverplugins/apLoader/blob/master/www/admin/plugins/apLoader/apLoader.class.php#L37

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...