Welcome to Elgg's documentation
This is the place to find documentation on all aspects of Elgg. If you would like to contribute your own documentation please do; we want this to be a real community effort!
Tweaking Elgg - Community Discussions
From Elgg Documentation
This page is designed to keep track of all of the current discussions throughout the Elgg forums that explain how to make assorted changes and modifications to the core Elgg installation to support everything from content and user display to other underlying items.
Please feel free to add to this list as you see fit and simply include a descriptive title for your link.
[edit] Community Discussions about Changing and Modifying Elements of Elgg:
[edit] IMPORTANT
- Changes in the core that affects plug-ins that manage user-created data:
http://classic.elgg.org//mod/forum/forum_view_thread.php?post=244
[edit] General Interest
- Where to find PlugIns for Elgg (some PlugIns are required for the items discussed below):
http://classic.elgg.org/mod/plugins/
- How to edit the Terms of Use and Privacy statements (the default text itself)
http://classic.elgg.org//mod/forum/forum_view_thread.php?post=484
[edit] Google Related
- How to insert and display Google Adsense Ads using the Elgg Plugin:
http://classic.elgg.org/mod/forum/forum_view_thread.php?post=171
- How to insert Google Analytics required code to support site analysis (uses MetaTags PlugIn):
http://classic.elgg.org//mod/forum/forum_view_thread.php?post=219
[edit] Visualization
- How to change the Number of Items displayed in the Tag Cloud and how to also change the number of times a Keyword must appear to be displayed in the Tag Cloud:
http://classic.elgg.org/mod/forum/forum_view_thread.php?post=185
- How to control or manipulate the number of words that appear when using the Template:Blogsummary tag
http://classic.elgg.org/mod/forum/forum_view_thread.php?post=382
- How to Embed a video from YouTube (or other site):
http://classic.elgg.org/mod/forum/forum_view_thread.php?post=152
- How to change the size of an embedded YouTube video (or video from other site):
http://classic.elgg.org/mod/forum/forum_view_thread.php?post=187
- How to change the text that appears in the Top Navigation Toolbar (you can also use this to change the links that appear there as well):
http://classic.elgg.org/mod/forum/forum_view_thread.php?post=119
- How to display News and Random Pictures on the Front Page (note that Random Pictures will require the Random Pictures plugin which can be found in the plugin directory):
http://classic.elgg.org/admin/weblog/126.html
- How to remove an item like 'Recent Activity' or the 'LogIn Box' from the Sidebar:
http://classic.elgg.org/mod/forum/forum_view_thread.php?post=303
[edit] Behavior
- Changing User Profiles
- Profile Changes - Adding/Changing fields:
http://classic.elgg.org/mod/mediawiki/wiki/index.php/Profile_Changes_-_Adding/Changing_fields
- Adding Extra Fields to a User Profile: http://classic.elgg.org//mod/forum/forum_view_thread.php?post=197
- Add additional input type options to a profile (e.g. checkboxes, drop-down lists): http://classic.elgg.org//mod/forum/forum_view_thread.php?post=197
- How to change the UserRedirect upon LogIn so that User stays on same page (this involves modifying the ToolBar):
http://classic.elgg.org/mod/forum/forum_view_thread.php?post=189
- How to insert code or scripts into Header HTML for every page in your site:
http://classic.elgg.org/mod/plugins/plugin.php?id=16
- How to add an RSS Feed that will display All Recent Comments (versus just All Recent Blog Posts, this will include all ongoing replies as well):
http://classic.elgg.org/developers/weblog/184.html
- How to enable the tinymce editor in a form:
http://classic.elgg.org/dramirez/weblog/220.html
- How to fix the name of the Month displaying in Archives if it is incorrect (for some users)
http://classic.elgg.org//mod/forum/forum_view_thread.php?post=326
- How to change the default size of pictures and thumbnails
http://classic.elgg.org/mod/forum/forum_view_thread.php?post=187
[edit] Others
- How to manage and troubleshoot the LaTEx Plugin (note that this discussion is not entirely resolved):
http://classic.elgg.org//mod/forum/forum_view_thread.php?post=193
- How to become a part of the Explode 'Cross-Elgg Searching' Trial/Network (still in development)
http://classic.elgg.org/mod/forum/forum_view_thread.php?post=192
[edit] Admin alert for flagged content
How to generate an alert sent to the site administrator when someone FLAGs content as inappropriate.
In file /mod/admin/lib/admin_actions.php (v9) (v8: /units/admin/admin_actions.php ) Add global $CFG; to top of page Then in case "content:flag" add the following before the break statement: // ============================= // send mail to administrator // ============================= $to=$CFG->sysadminemail; $subject="Content flagged by user!"; $headers = "From: $CFG->sysadminemail\r\n"; $headers .= "Reply-To: $CFG->sysadminemail\r\n"; $headers .= "X-Mailer: PHP/" . phpversion()."\r\n\r\n"; $message = "A user has flagged this content as inappropriate:\n"; $message .= $CFG->wwwroot.substr($cf->url,1)."\n\n"; $message .= $CFG->wwwroot."/_admin/flags.php\n"; $ok = mail($to,$subject,$message,$headers); // =============================
see: http://classic.elgg.org/mod/vanillaforum/vanilla/comments.php?DiscussionID=959&page=1#Item_6

