sir i want to build same relationships for another category just like friends of a person, i want to make relationship of students of a subject.
if someone update something about any subject, the students of that subjects informed or get notified with that. i want to do this.
how will friends count and friends handle in elgg framework? kindly explain it or tell me the files where can i find information about this, so i can use it for my purpose.
Digg in to the code. Its the best study material. Have a look at http://docs.elgg.org, specifically elgg data models and relationships. If you need an organized study material, buy the book on elgg 1.8 social networking @ http://www.amazon.com/Elgg-Social-Networking-Cash-Costello/dp/1849511306
You can get started by studying the file engine/lib/relationships.php.
The functions you will need first are add_entity_relationship() and elgg_get_entities_from_relationship().
With the first one you can add for example a "student" relationship between a user and a "subject" object. Then you can use the latter to list all the users who are students of that subject.
thanks sir.
i had start reading and working it.
i just want to know that this info is enough for writing a plugin for elgg platform or i have to consult some other material. bcz i m not fully php developer also.
thanks
depends 100% on what kind of plugin you are planning to write. The docs are full of the basics as well as some more in depth material on how to build plugins, and how elgg works.
To get an even deeper understanding of what is possible, have a look at http://reference.elgg.org for a quick search of all functions,classes and models etc.
Finally, download some of the freely available plugins from the plugin repo here and have a look through their code to see how they work.
I couldn't even read PHP when I started with elgg (or HTML), now I can make a plugin do almost anything I want within the elgg-framework. Patience, Practice and Perseverance. :)
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.