Hello,
I am trying to pull the popular group names and display in my site.
What I am trying to do is ":
Any code / help would be appreciated.
Thanks
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.
- iionly@iionly
iionly - 0 likes
You must log in to post replies.Check the error log for relevant entries. In require_once() you have a relative path. Depending on the location of the file of your code the relative path might be wrong.
The code as such looks right. Without knowing how you implement it exactly, I can't say if the way you do it is right or not. For example, if you add your code in a view of an Elgg plugin you wouldn't need to boot the Elgg engine explicitely. The best way to proceed also depends on what you want to achieve in the first place. If you want to add the output of popular groups on the index/home page of your Elgg site, you would rather add the code for example to the view of the index page.