SlideShare a Scribd company logo
An Introduction to     Nitesh Nandy @Barcamp, Delhi   [email_address]
What is Elgg ? Elgg built on LAMP and is open source Roll out your own social network Bundles social networking components Building on Elgg is easy
Components Pages RSS Files Tags Comment Blog Messages Widgets Friends/Groups Forum
Features Advanced user management and administration Cross-site tagging Powerful access control list Internationalization support Multiple view support (eg. cell phone, iPhone) Advanced templating engine Widget framework Opensocial support
Customize Page
Elgg Data Model
Events Events triggered when certain things happen User Action Callbacks Special Events (Boot, Init) Hook has to be registered to handle the specific events register_elgg_event_handler('init','system','entities_init');
Views Elgg site can support different  interface pages  Standard HTML  HTML optimised for accessibility  Mobile Internet  iPhone  Embeddable widget
Plugins Most of the end user functionality in Elgg comes from plugins  Plugins reside under /mod folder start.php : control hub of a plugin Register plugin inside Elgg init event register_elgg_event_handler('init','system','entities_init');
Creating a Simple Blog Plugin Create Form Create Object View <h1><?php echo $vars['entity']->title; ?></h1>    <p><?php echo $vars['entity']->body; ?></p>    <?php echo elgg_view('output/tags', array('tags' => $vars['entity']->tags)); ?> <form action=&quot;<?php echo $vars['url']; ?>action/blog/save&quot; method=&quot;post&quot;>    <?php echo elgg_echo(&quot;title&quot;); ?><br />  <?php echo elgg_view('input/text',array('internalname' => 'title')); ?> <?php echo elgg_echo(&quot;body&quot;); ?><br /> <?php echo elgg_view('input/longtext',array('internalname' => 'body')); ?> <p><?php echo elgg_echo(&quot;tags&quot;); ?><br /> <?php echo elgg_view('input/tags',array('internalname' => 'tags')); ?></p>    <p><input type=&quot;submit&quot; value=&quot;<?php echo elgg_echo('save'); ?>&quot; /></p>   </form>
Contd… Create Save File $blogpost = new ElggObject();    $blogpost->title = get_input('title');      $blogpost->description = $description; $blogpost->access_id = ACCESS_PUBLIC; $blogpost->owner_guid = $_SESSION['user']->getGUID(); $blogpost->save();    $blogpost->tags =  string_to_tag_array(get_input('tags'));  forward($blogpost->getURL());  Display Blog require_once(dirname(dirname(dirname(__FILE__))).engine/start.php&quot;); $body = list_entities('object','blog',0,10,false); $body = elgg_view_layout('one_column', $body);  page_draw(&quot;Our Blog&quot;,$body);
Business Opportunities in Elgg Education (Social E-learning) Universities Schools Social Intranet for organizations Employee activities Knowledge base Company events Custom Social Networks
Profile
Groups
Dashboard
Files
Thanks

More Related Content

PPT
Introduction To Elgg 1224395615749768 9
PPT
How to Build Your Own Social Network with Elgg?
PPT
Introduction to ELGG, the Open Source Social Network Platform
PDF
Elgg Social Network solution
PDF
PPTX
E Pi Server Easy Search Technical Overview
PPTX
Integrating External APIs with WordPress
PPT
jQuery Intro
Introduction To Elgg 1224395615749768 9
How to Build Your Own Social Network with Elgg?
Introduction to ELGG, the Open Source Social Network Platform
Elgg Social Network solution
E Pi Server Easy Search Technical Overview
Integrating External APIs with WordPress
jQuery Intro

What's hot (20)

PDF
Integrating WordPress With Web APIs
PPTX
Intro to Rails Give Camp Atlanta
PPTX
Catalog display
PPTX
5 Reasons To Love CodeIgniter
PPTX
App Manifest
ODP
Wellrailed - Be9's Acl9
ODP
Codegnitorppt
PPTX
Dash of ajax
PPT
Introduccion app engine con python
PDF
Introduction to rg\injection
PDF
How to create OpenSocial Apps in 45 minutes
PDF
Don't worry be API with Slim framework and Joomla
PDF
A Debugging Adventure: Journey through Ember.js Glue
PDF
Techical Workflow for a Startup
PDF
Enemy of the state
PPTX
Learnings for Accessibility for iOS Platform
PDF
How to build testable UIs
PDF
Pundit
PPT
Building Cool apps with flex
PPTX
Blade Template and Laravel
Integrating WordPress With Web APIs
Intro to Rails Give Camp Atlanta
Catalog display
5 Reasons To Love CodeIgniter
App Manifest
Wellrailed - Be9's Acl9
Codegnitorppt
Dash of ajax
Introduccion app engine con python
Introduction to rg\injection
How to create OpenSocial Apps in 45 minutes
Don't worry be API with Slim framework and Joomla
A Debugging Adventure: Journey through Ember.js Glue
Techical Workflow for a Startup
Enemy of the state
Learnings for Accessibility for iOS Platform
How to build testable UIs
Pundit
Building Cool apps with flex
Blade Template and Laravel
Ad

Viewers also liked (20)

PPT
Present Perfectnad Past
PPTX
Test Helping Rural Oregon Work
PPTX
Shift Happens - Ben Horowitz
PPT
00 are you free - taxis
PPTX
Ran Mizrahi - Symfony2 meets Drupal8
PPT
Are You A Prof Col Wb
PPT
Jugaaad: Innovation book
PPT
Towns In Macedonia
PDF
Wemagazine
PDF
Flash Talk: Building for Emerging Computing Platforms
PDF
How Testability Inspires AngularJS Design / Ran Mizrahi
PPT
FremføRing HøSt 08 3
PPT
PDF
Opening up the web
PPT
ODP
Snowflakes
PPTX
Brazilian protests – June 2013
PPT
Angles in Life Project
Present Perfectnad Past
Test Helping Rural Oregon Work
Shift Happens - Ben Horowitz
00 are you free - taxis
Ran Mizrahi - Symfony2 meets Drupal8
Are You A Prof Col Wb
Jugaaad: Innovation book
Towns In Macedonia
Wemagazine
Flash Talk: Building for Emerging Computing Platforms
How Testability Inspires AngularJS Design / Ran Mizrahi
FremføRing HøSt 08 3
Opening up the web
Snowflakes
Brazilian protests – June 2013
Angles in Life Project
Ad

Similar to Introduction to Elgg (20)

PPT
Enterprise Google Gadgets Integrated with Alfresco - Open Source ECM
PPT
Developing Gadgets
PPT
Creating Yahoo Mobile Widgets
ODP
Open Power Template 2 presentation
PPT
Jsfsunum
PDF
ElggCamp Santiago> For Developers!
PDF
ElggCamp Santiago - Dev Edition
PPT
Migration testing framework
PPTX
Open social 2.0 sandbox ee and breaking out of the gadget box
PDF
Intro To Mvc Development In Php
PPT
Gadgets Intro (Plus Mapplets)
ODP
Developing and testing ajax components
PPT
WordPress development paradigms, idiosyncrasies and other big words
PPT
Rich faces
PPTX
LinkedIn Platform at LeWeb 2010
PPT
The Web on OSGi: Here's How
PPT
Enterprise AIR Development for JavaScript Developers
PPTX
SharePoint Saturday Baltimore 7/25/09 - Introduction To Developing Custom Act...
PPTX
J Query Presentation
PPT
WordPress as a Content Management System
Enterprise Google Gadgets Integrated with Alfresco - Open Source ECM
Developing Gadgets
Creating Yahoo Mobile Widgets
Open Power Template 2 presentation
Jsfsunum
ElggCamp Santiago> For Developers!
ElggCamp Santiago - Dev Edition
Migration testing framework
Open social 2.0 sandbox ee and breaking out of the gadget box
Intro To Mvc Development In Php
Gadgets Intro (Plus Mapplets)
Developing and testing ajax components
WordPress development paradigms, idiosyncrasies and other big words
Rich faces
LinkedIn Platform at LeWeb 2010
The Web on OSGi: Here's How
Enterprise AIR Development for JavaScript Developers
SharePoint Saturday Baltimore 7/25/09 - Introduction To Developing Custom Act...
J Query Presentation
WordPress as a Content Management System

Recently uploaded (20)

PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Empathic Computing: Creating Shared Understanding
PDF
Getting Started with Data Integration: FME Form 101
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Machine Learning_overview_presentation.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
A Presentation on Artificial Intelligence
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Approach and Philosophy of On baking technology
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Big Data Technologies - Introduction.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Network Security Unit 5.pdf for BCA BBA.
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Reach Out and Touch Someone: Haptics and Empathic Computing
Empathic Computing: Creating Shared Understanding
Getting Started with Data Integration: FME Form 101
Programs and apps: productivity, graphics, security and other tools
Machine Learning_overview_presentation.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
A Presentation on Artificial Intelligence
MYSQL Presentation for SQL database connectivity
Approach and Philosophy of On baking technology
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Big Data Technologies - Introduction.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
“AI and Expert System Decision Support & Business Intelligence Systems”
Building Integrated photovoltaic BIPV_UPV.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
A comparative analysis of optical character recognition models for extracting...
20250228 LYD VKU AI Blended-Learning.pptx

Introduction to Elgg

  • 1. An Introduction to Nitesh Nandy @Barcamp, Delhi [email_address]
  • 2. What is Elgg ? Elgg built on LAMP and is open source Roll out your own social network Bundles social networking components Building on Elgg is easy
  • 3. Components Pages RSS Files Tags Comment Blog Messages Widgets Friends/Groups Forum
  • 4. Features Advanced user management and administration Cross-site tagging Powerful access control list Internationalization support Multiple view support (eg. cell phone, iPhone) Advanced templating engine Widget framework Opensocial support
  • 7. Events Events triggered when certain things happen User Action Callbacks Special Events (Boot, Init) Hook has to be registered to handle the specific events register_elgg_event_handler('init','system','entities_init');
  • 8. Views Elgg site can support different interface pages Standard HTML HTML optimised for accessibility Mobile Internet iPhone Embeddable widget
  • 9. Plugins Most of the end user functionality in Elgg comes from plugins Plugins reside under /mod folder start.php : control hub of a plugin Register plugin inside Elgg init event register_elgg_event_handler('init','system','entities_init');
  • 10. Creating a Simple Blog Plugin Create Form Create Object View <h1><?php echo $vars['entity']->title; ?></h1>   <p><?php echo $vars['entity']->body; ?></p>   <?php echo elgg_view('output/tags', array('tags' => $vars['entity']->tags)); ?> <form action=&quot;<?php echo $vars['url']; ?>action/blog/save&quot; method=&quot;post&quot;>   <?php echo elgg_echo(&quot;title&quot;); ?><br /> <?php echo elgg_view('input/text',array('internalname' => 'title')); ?> <?php echo elgg_echo(&quot;body&quot;); ?><br /> <?php echo elgg_view('input/longtext',array('internalname' => 'body')); ?> <p><?php echo elgg_echo(&quot;tags&quot;); ?><br /> <?php echo elgg_view('input/tags',array('internalname' => 'tags')); ?></p>   <p><input type=&quot;submit&quot; value=&quot;<?php echo elgg_echo('save'); ?>&quot; /></p>   </form>
  • 11. Contd… Create Save File $blogpost = new ElggObject();   $blogpost->title = get_input('title');   $blogpost->description = $description; $blogpost->access_id = ACCESS_PUBLIC; $blogpost->owner_guid = $_SESSION['user']->getGUID(); $blogpost->save();   $blogpost->tags = string_to_tag_array(get_input('tags')); forward($blogpost->getURL()); Display Blog require_once(dirname(dirname(dirname(__FILE__))).engine/start.php&quot;); $body = list_entities('object','blog',0,10,false); $body = elgg_view_layout('one_column', $body); page_draw(&quot;Our Blog&quot;,$body);
  • 12. Business Opportunities in Elgg Education (Social E-learning) Universities Schools Social Intranet for organizations Employee activities Knowledge base Company events Custom Social Networks
  • 16. Files