Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • CCH replied on the discussion topic Adding a new page to the user registration process
    After looking into the start.php of Plugin "uservalidationbyemail", I am clearer about the procedure for hooking a plugin to the core. My plugin only has 2 files, "manifest.xml" and "start.php". The start.php of... view reply
  • CCH replied on the discussion topic Adding a new page to the user registration process
    The 2nd method looks easier. Do you mean that I can create a regular plugin (in <Elgg root dir>/mod/<my plugin>) and then hook it to the Elgg core to change the work flow of user registration? view reply
  • CCH replied on the discussion topic Adding Javascripts to an existing core page
    I still cannot see my Javascipts loaded as a js file in the source code of the login page. The following is my Elgg 1.8.19 configuration. <Elgg root>/views/default/js/specialplugin_javascript.php <Elgg... view reply
  • CCH replied on the discussion topic Adding a new page to the user registration process
    The purpose of doing this is hiding the login form from the human user.  The "new page" just display any queued Elgg messages and forward the human user to another website. Is there a better way to achieve my goal? view reply
  • CCH replied on the discussion topic Adding Javascripts to an existing core page
    I have several my own regular Elgg Plugins. Since this special <yourplugin> does nothing more than loading my Javascripts, I expect that the actions/, languages/, pages/, and manifest.xml are not required.  Only start.php, and views/... view reply
  • CCH replied on the discussion topic Adding Javascripts to an existing core page
    Do I have to follow the directions for creating a regular Elgg Plugin to create <yourplugin>? In other words, do I have to create a complete plugin skeleton for <yourplugin> in <Elgg root>/views/default/mod/ ?  Is... view reply
  • CCH replied on the discussion topic Adding Javascripts to an existing core page
    Hello, I am using Elgg 1.8.19. I always flush the cache after any change.  Now, I disable all cache functions. My Javascript is <Elgg root>/views/default/js/myjavascript.php. The content of the script... view reply
  • CCH added a new discussion topic Adding a new page to the user registration process in the group Elgg Technical Support
    Hello, The Elgg 1.8.19 has the following flow for user registration. (1) A new user submits the registration form. (2) The user is forwarded back to the login page, and some messages appear in the upper right corner. I would like to change...
    • You have to register a pagehandler for your intermediates pages first. Then you can follow any of the method below.

      1. Unregister the registration action and register a new action file with necessary changes to redirect the user to the intermediate page after registration.
      2. Using a plugin hook, hook into the forward() and redirect the user as needed.

      These links will be helpful for you

      1. http://learn.elgg.org/en/1.x/guides/hooks-list.html
      2. http://learn.elgg.org/en/1.x/tutorials/index.html
      3. http://learn.elgg.org/en/1.x/design/events.html&nbsp;
    • The 2nd method looks easier.

      Do you mean that I can create a regular plugin (in <Elgg root dir>/mod/<my plugin>) and then hook it to the Elgg core to change the work flow of user registration?

    • After looking into the start.php of Plugin "uservalidationbyemail", I am clearer about the procedure for hooking a plugin to the core.

      My plugin only has 2 files, "manifest.xml" and "start.php".

      The start.php of my plugin should contain

      =====

      elgg_register_event_handler('init', 'system', '<my plugin name>_init');

      function <my plugin name>_init() {

      elgg_register_page_handler('<page type to handle>', '<my plugin name>_page_handler');

      elgg_register_plugin_hook_handler('register', 'user', '<my plugin name>_hook_handler');

      }

      function <my plugin name>_page_handler() {

      /* empty function.  this is a blank page which just displays all queued Elgg messages.  */

      }

      function <my plugin name>_hook_handler() {

      forward('<the url for another site>');

      }

      =====

      Is my design correct?

      What should the <page type to handle> be?

      When does the engine calls the hook handler?  The "List of plugin hooks in core" does not explain when the hook handler is called relative to the registration operation.

       

      Thanks!