Hello, I am creating a plugin that captures the hook that is triggered when a post is made into the wall, and would like to generate a popup view to the user to show information about the post.
I've tried generating a view in the hook handler status but nothing is generated, probably because the event is triggered when the action has finished and nothing can be shown, I'm thinking on using now the publish event. What would be the event i should catch to put a poup view with info about the post made into the wall?
Thanks in advance
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.
- ihayredinov@ihayredinov
ihayredinov - 0 likes
- Higros@Higros
Higros - 0 likes
- Higros@Higros
Higros - 0 likes
- ihayredinov@ihayredinov
ihayredinov - 0 likes
- Higros@Higros
Higros - 0 likes
- nikos@nlyberakis
nikos - 0 likes
- ihayredinov@ihayredinov
ihayredinov - 0 likes
You must log in to post replies.If you are talking about hypeWall, the action already returns a view. You just need to implement the client side logic. Why not use hypeLists? Then you don't need to reinvent the wheel
I am using the event handler 'publish' to try showing a popup view, but nothing is shown either, please help!
If I am correct, you are referrying to one of those views:
$this->result->setForwardURL(hypeWall()->router->normalize("owner/{$this->container->username}"));
or
$this->result->setForwardURL(hypeWall()->router->normalize("container/{$this->container->guid}"));
So my question is, how can I insert there an ajax view to introduce a popup without changing the code in hypeWall? or if that is a bad idea how to use those views to generate the warning in them?
Extend or replace the river view, sniff the context and modify accordingly.
Thanks pretty much for the help, but I would prefer not to modify the river view itself.. any workarounds?
Ismayil didn't say modify.
He suggested to extend (see herehttp://learn.elgg.org/en/2.3.3/guides/views.html#extending-views ) or to replace (see here http://learn.elgg.org/en/2.3.3/guides/views.html#replacing-view-output-completely)
Precisely.
That's the river view I mean: https://github.com/hypeJunction/hypeWall/blob/66c138958ec226e903b64a41ab1d3ceea1ac7a5d/views/default/river/object/hjwall/create.php