Custom message after plugin installation












4















After an installation process, the translated manifest description from the sys.ini-file is shown in the Extension Manager. Unfortunately this text is also shown while editing the (published) plugin parameters.



/plugins/system/my_plugin/manifest.xml:



<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" version="3.8" group="system" method="upgrade">
<name>PLG_NAME</name>
<description>PLG_DESCRIPTION</description>


/plugins/system/my_plugin/language/en-GB/en-GB.plg_system_my_plugin.sys.ini



PLG_DESCRIPTION="This text is shown after installation AND as description of enabled plugins"


Is it possible to shown a custom message after installation/update in the Extension Manager?
And only at this point.



Thanks in advance!










share|improve this question



























    4















    After an installation process, the translated manifest description from the sys.ini-file is shown in the Extension Manager. Unfortunately this text is also shown while editing the (published) plugin parameters.



    /plugins/system/my_plugin/manifest.xml:



    <?xml version="1.0" encoding="utf-8"?>
    <extension type="plugin" version="3.8" group="system" method="upgrade">
    <name>PLG_NAME</name>
    <description>PLG_DESCRIPTION</description>


    /plugins/system/my_plugin/language/en-GB/en-GB.plg_system_my_plugin.sys.ini



    PLG_DESCRIPTION="This text is shown after installation AND as description of enabled plugins"


    Is it possible to shown a custom message after installation/update in the Extension Manager?
    And only at this point.



    Thanks in advance!










    share|improve this question

























      4












      4








      4








      After an installation process, the translated manifest description from the sys.ini-file is shown in the Extension Manager. Unfortunately this text is also shown while editing the (published) plugin parameters.



      /plugins/system/my_plugin/manifest.xml:



      <?xml version="1.0" encoding="utf-8"?>
      <extension type="plugin" version="3.8" group="system" method="upgrade">
      <name>PLG_NAME</name>
      <description>PLG_DESCRIPTION</description>


      /plugins/system/my_plugin/language/en-GB/en-GB.plg_system_my_plugin.sys.ini



      PLG_DESCRIPTION="This text is shown after installation AND as description of enabled plugins"


      Is it possible to shown a custom message after installation/update in the Extension Manager?
      And only at this point.



      Thanks in advance!










      share|improve this question














      After an installation process, the translated manifest description from the sys.ini-file is shown in the Extension Manager. Unfortunately this text is also shown while editing the (published) plugin parameters.



      /plugins/system/my_plugin/manifest.xml:



      <?xml version="1.0" encoding="utf-8"?>
      <extension type="plugin" version="3.8" group="system" method="upgrade">
      <name>PLG_NAME</name>
      <description>PLG_DESCRIPTION</description>


      /plugins/system/my_plugin/language/en-GB/en-GB.plg_system_my_plugin.sys.ini



      PLG_DESCRIPTION="This text is shown after installation AND as description of enabled plugins"


      Is it possible to shown a custom message after installation/update in the Extension Manager?
      And only at this point.



      Thanks in advance!







      joomla-3.x plugin installation






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 6 '18 at 9:39









      sbruemmersbruemmer

      333




      333






















          1 Answer
          1






          active

          oldest

          votes


















          4














          Yes, it is absolutely possible. You have to create/use an install script.php file in your installable plugin folder which will include tasks on different points of installation, uninstallation, update, preflight or postflight tasks:



          For a module, a script class would look like this:



          class mod_helloWorldInstallerScript
          {

          public function __construct(JAdapterInstance $adapter)
          {
          // construct here... it could be left empty
          }

          /*
          install, update, preflight... functions here
          */

          /**
          * Called on installation
          */
          public function install(JAdapterInstance $adapter)
          {
          echo 'Your custom message on installation';
          }

          // In this function you can also display your custom message in
          // the Extension Manager after install ie.
          function postflight($type, $parent)
          {
          echo '<p>Anything here happens after the installation/update/uninstallation of the module</p>';
          echo JText::_('PLG_MY_CUSTOM_TEXT_AFTER_INSTALL');
          }

          }


          Same for plugins... except you call the class: plg_mypluginInstallerScript



          You can study this subject more here: https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file



          or here at the bottom of this page:
          https://docs.joomla.org/Manifest_files






          share|improve this answer


























          • Perfectly and incredible fast answered! Thank you.

            – sbruemmer
            Dec 6 '18 at 11:30











          • You're welcome! :) Thanks for the feedback!

            – Zollie
            Dec 6 '18 at 12:14











          • The above two comments, while pleasant, are noise / unnecessary. joomla.meta.stackexchange.com/q/336/12352

            – mickmackusa
            Dec 7 '18 at 2:06











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "555"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fjoomla.stackexchange.com%2fquestions%2f23889%2fcustom-message-after-plugin-installation%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          4














          Yes, it is absolutely possible. You have to create/use an install script.php file in your installable plugin folder which will include tasks on different points of installation, uninstallation, update, preflight or postflight tasks:



          For a module, a script class would look like this:



          class mod_helloWorldInstallerScript
          {

          public function __construct(JAdapterInstance $adapter)
          {
          // construct here... it could be left empty
          }

          /*
          install, update, preflight... functions here
          */

          /**
          * Called on installation
          */
          public function install(JAdapterInstance $adapter)
          {
          echo 'Your custom message on installation';
          }

          // In this function you can also display your custom message in
          // the Extension Manager after install ie.
          function postflight($type, $parent)
          {
          echo '<p>Anything here happens after the installation/update/uninstallation of the module</p>';
          echo JText::_('PLG_MY_CUSTOM_TEXT_AFTER_INSTALL');
          }

          }


          Same for plugins... except you call the class: plg_mypluginInstallerScript



          You can study this subject more here: https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file



          or here at the bottom of this page:
          https://docs.joomla.org/Manifest_files






          share|improve this answer


























          • Perfectly and incredible fast answered! Thank you.

            – sbruemmer
            Dec 6 '18 at 11:30











          • You're welcome! :) Thanks for the feedback!

            – Zollie
            Dec 6 '18 at 12:14











          • The above two comments, while pleasant, are noise / unnecessary. joomla.meta.stackexchange.com/q/336/12352

            – mickmackusa
            Dec 7 '18 at 2:06
















          4














          Yes, it is absolutely possible. You have to create/use an install script.php file in your installable plugin folder which will include tasks on different points of installation, uninstallation, update, preflight or postflight tasks:



          For a module, a script class would look like this:



          class mod_helloWorldInstallerScript
          {

          public function __construct(JAdapterInstance $adapter)
          {
          // construct here... it could be left empty
          }

          /*
          install, update, preflight... functions here
          */

          /**
          * Called on installation
          */
          public function install(JAdapterInstance $adapter)
          {
          echo 'Your custom message on installation';
          }

          // In this function you can also display your custom message in
          // the Extension Manager after install ie.
          function postflight($type, $parent)
          {
          echo '<p>Anything here happens after the installation/update/uninstallation of the module</p>';
          echo JText::_('PLG_MY_CUSTOM_TEXT_AFTER_INSTALL');
          }

          }


          Same for plugins... except you call the class: plg_mypluginInstallerScript



          You can study this subject more here: https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file



          or here at the bottom of this page:
          https://docs.joomla.org/Manifest_files






          share|improve this answer


























          • Perfectly and incredible fast answered! Thank you.

            – sbruemmer
            Dec 6 '18 at 11:30











          • You're welcome! :) Thanks for the feedback!

            – Zollie
            Dec 6 '18 at 12:14











          • The above two comments, while pleasant, are noise / unnecessary. joomla.meta.stackexchange.com/q/336/12352

            – mickmackusa
            Dec 7 '18 at 2:06














          4












          4








          4







          Yes, it is absolutely possible. You have to create/use an install script.php file in your installable plugin folder which will include tasks on different points of installation, uninstallation, update, preflight or postflight tasks:



          For a module, a script class would look like this:



          class mod_helloWorldInstallerScript
          {

          public function __construct(JAdapterInstance $adapter)
          {
          // construct here... it could be left empty
          }

          /*
          install, update, preflight... functions here
          */

          /**
          * Called on installation
          */
          public function install(JAdapterInstance $adapter)
          {
          echo 'Your custom message on installation';
          }

          // In this function you can also display your custom message in
          // the Extension Manager after install ie.
          function postflight($type, $parent)
          {
          echo '<p>Anything here happens after the installation/update/uninstallation of the module</p>';
          echo JText::_('PLG_MY_CUSTOM_TEXT_AFTER_INSTALL');
          }

          }


          Same for plugins... except you call the class: plg_mypluginInstallerScript



          You can study this subject more here: https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file



          or here at the bottom of this page:
          https://docs.joomla.org/Manifest_files






          share|improve this answer















          Yes, it is absolutely possible. You have to create/use an install script.php file in your installable plugin folder which will include tasks on different points of installation, uninstallation, update, preflight or postflight tasks:



          For a module, a script class would look like this:



          class mod_helloWorldInstallerScript
          {

          public function __construct(JAdapterInstance $adapter)
          {
          // construct here... it could be left empty
          }

          /*
          install, update, preflight... functions here
          */

          /**
          * Called on installation
          */
          public function install(JAdapterInstance $adapter)
          {
          echo 'Your custom message on installation';
          }

          // In this function you can also display your custom message in
          // the Extension Manager after install ie.
          function postflight($type, $parent)
          {
          echo '<p>Anything here happens after the installation/update/uninstallation of the module</p>';
          echo JText::_('PLG_MY_CUSTOM_TEXT_AFTER_INSTALL');
          }

          }


          Same for plugins... except you call the class: plg_mypluginInstallerScript



          You can study this subject more here: https://docs.joomla.org/J3.x:Creating_a_simple_module/Adding_an_install-uninstall-update_script_file



          or here at the bottom of this page:
          https://docs.joomla.org/Manifest_files







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 6 '18 at 19:27









          mickmackusa

          1,7181328




          1,7181328










          answered Dec 6 '18 at 9:54









          ZollieZollie

          1,292115




          1,292115













          • Perfectly and incredible fast answered! Thank you.

            – sbruemmer
            Dec 6 '18 at 11:30











          • You're welcome! :) Thanks for the feedback!

            – Zollie
            Dec 6 '18 at 12:14











          • The above two comments, while pleasant, are noise / unnecessary. joomla.meta.stackexchange.com/q/336/12352

            – mickmackusa
            Dec 7 '18 at 2:06



















          • Perfectly and incredible fast answered! Thank you.

            – sbruemmer
            Dec 6 '18 at 11:30











          • You're welcome! :) Thanks for the feedback!

            – Zollie
            Dec 6 '18 at 12:14











          • The above two comments, while pleasant, are noise / unnecessary. joomla.meta.stackexchange.com/q/336/12352

            – mickmackusa
            Dec 7 '18 at 2:06

















          Perfectly and incredible fast answered! Thank you.

          – sbruemmer
          Dec 6 '18 at 11:30





          Perfectly and incredible fast answered! Thank you.

          – sbruemmer
          Dec 6 '18 at 11:30













          You're welcome! :) Thanks for the feedback!

          – Zollie
          Dec 6 '18 at 12:14





          You're welcome! :) Thanks for the feedback!

          – Zollie
          Dec 6 '18 at 12:14













          The above two comments, while pleasant, are noise / unnecessary. joomla.meta.stackexchange.com/q/336/12352

          – mickmackusa
          Dec 7 '18 at 2:06





          The above two comments, while pleasant, are noise / unnecessary. joomla.meta.stackexchange.com/q/336/12352

          – mickmackusa
          Dec 7 '18 at 2:06


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Joomla Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fjoomla.stackexchange.com%2fquestions%2f23889%2fcustom-message-after-plugin-installation%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

          How to change which sound is reproduced for terminal bell?

          Can I use Tabulator js library in my java Spring + Thymeleaf project?