Hi Matt,
I may be wrong...for my understanding and test on elgg's api.
elgg_view_form is getting the form from the pre-defined from in the form/xxx.php file.... its kinda include once()...which is accessing other files in order to echo a form/forms...
so compare with the hard code form...isn't slower? especially when the form is getting lots other values and variables from database/other pages...
My current problem is, own defined form is not evern showing up in the page....somehow...not sure if there's any other requirement to use your own code other then the elgg one's.
Please advise.
Regars,
Logan
As Matt said, using your own code won't yield any significant performance increases. In 100k interations you might see a few ms gain.
We'll need to see your code to understand why it's not showing up. Please use gist.github.com and post a link to that.
I think so
First, please only post your question in one place. Posting it multiple places makes it difficult to track the conversation and help you. I've deleted the other thread.
If I remember right, the Profile Manager uses an action hook to save all of its extra data, so it doesn't override the action. This means you'll need to look at that hook instead of the action script. It should be defined in the profile manager's start.php file.
oops, sry about that.
thx for your update,
I just checked in the code, seems like the action was triggered by hook"profile_manager_profile_override"
but, I still do not see, how the "save" button is linked to that hook?
All actions emit hooks that plugins can assign handlers to. Check out the documentation: http://docs.elgg.org/wiki/Main_Page#Hooks_.2B_Events
Actions should never output anything. If you don't want to use JS, you can change the form to always show a new, empty email field, and then change the action to accept email input as an array.
Thank you Brett...
I have made a new website based on elgg http://berojgar.in
I havenot got any perfect chat plugin for it.pls help
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.