Owner: Brett
Group members: 2874
This group is for discussing how to create plugins. We talk about what plugins we are working on, ask advice on how to do things the Elgg way, and share resources related to PHP, jQuery, JavaScript HTML, and CSS.
Elgg's documentation is available at this wiki: http://docs.elgg.org/. There is also an API reference generated from the code at http://reference.elgg.org/. Also, if you are serious about developing with Elgg, be sure to join the Elgg developers google group: http://groups.google.com/group/elgg-development
If you are looking for help on theming Elgg, be sure to join to the Theme development group.
You need to override some files in your custom plugin:
\views\default\object\comment.php
\views\default\object\elements\full.php
\views\default\object\elements\full\header.php
\views\default\object\elements\summary.php
\views\default\object\elements\summary\metadata.php
Edit \mod\your_plugin\views\default\object\comment.php to provide the new views:
\mod\your_plugin\views\default\object\comment\elements\full.php \mod\your_plugin\views\default\object\comment\elements\summary.php
Edit these new views to provide another new views:
\mod\your_plugin\views\default\object\comment\elements\full\header.php \mod\your_plugin\views\default\object\comment\elements\summary\metadata.php
Your goal is to extract elgg_view_menu('social') from
\mod\your_plugin\views\default\object\comment\elements\summary\metadata.php
and place it in a new view, e.g.
\mod\your_plugin\views\default\object\comment\elements\summary\social.php
Then you can place this social.php view to \mod\your_plugin\views\default\object\comment.php under $params['content'] for:
echo elgg_view('object/comment/elements/full', $params);
and
echo elgg_view('object/comment/elements/summary', $params);
Some CSS magic then and done ;)
Thanks for the help. It worked :)
No blog posts
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.