Hi
I'm writing a plugin for my site which has a default access to logged in users only. I have changed the login screen to my needs but have been unable to change the Register form.
The problem I have is:
A) while I can change the fields and body of the form (elgg/mod/myplugin/views/default/forms/register.php), I can't get rid off the peripheral HTML (headers, CSS, JS, etc) that Elgg wants to insert. What I'd really like is a blank page that I can customise as required.
B) if I register a page handler for mysite/elgg/register, it does not overwrite the Elgg default and I am diverted to the standard Elgg registration page
C) if I try and register my own page handler, say mysite/elgg/myplugin/registration, I can't get access to the form as the user is not logged in yet.!
Anyhelp would be greatly appreciated.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Matt Beckett@Beck24
Matt Beckett - 0 likes
- dobbo@dobson_c
dobbo - 0 likes
- Matt Beckett@Beck24
Matt Beckett - 0 likes
- dobbo@dobson_c
dobbo - 0 likes
You must log in to post replies.A) Those are in other views which you can extend and/or overwrite if necessary, but if you want to customize the entire page as a blank canvas then...
B) You need to unregister the pagehandler first, and then re-register it to use your handler
C) If you want it to be public make sure you're not using any of the gatekeeper functions
Thank you Matt. How do I determine the name of the current page handler that is managing the Registration at the moment?
Also, should I be registering the following hook handler and managing display that way?
elgg_register_plugin_hook_handler('register', 'user', 'my_Function_to_display_custom_registration_page'
The current page handler is the part of the url after your site root. It's in the format of:
So for example the handler of this page we're on right now is 'discussion'
The plugin hook you're using there triggers after a user has registered, it's not appropriate for modifying anything public.
Hi Matt,
Youre a champ. That worsed a treat. Thank you very much
Where do you scuba dive? I'minn Sydney and have dived here and a few other places
Egypt
Philippines
Thailand
Fiji
Mozambique
Zanzibar
Lake Malawi
Perth
Great Barrier Reef
Yadda yaddaa!