Great Elgg 1.0 Plugins Trickling In

Some early users were disappointed by the lack of features upon Elgg 1.0′s release. What they didn’t realize is that the new Elgg was designed as an extensible core engine to drive plugins and interact with other social platforms. Elgg 1.0 developers are starting to release plugins that extend the basic Elgg 1.0. What has started as a trickle appears to be picking up momentum. There are already many great plugins.

As mentioned earlier, the full version of Elgg 1.0 includes a spartan set of features. While it is easy enough to modify this popular wysiwyg editor, many are uncomfortable editing a little code. Furthermore, many have been trying unsuccessfully to make embedded content such as videos and video sharing. A couple days ago, developer Lee Teague released Tinymce Advanced.

Tinymce Advanced is simple to install: download, unpack, and upload to your server’s elgg/mod directory. You simply activate it in  Administration–>Tools Administration. That’s it provided you like the way it is configured. Refer back to my post on hacking Tinymce if you want to change the feature set. Depending upon the desired results, it may be easier to modify this than the default Tinymce.

Lee Teague’s Tinymce plugin is full featured, adding several formatting features including alignment, fonts, colors, indents, and tables. Best of all the media button really works allowing you to embed several popular multimedia formats. It also can embed YouTube and other video sharing when you insert the code snippet into the post using the html source editor.

If you use this plugin, it is recommended that it only be available to trusted and accountable users because these tags can make the site vulnerable to attacks. While not yet developed, it would be great if it could be configured so that trusted logged in members could have access to an extended editor, while others has access to a leaner tool set. In a shout back to me, developer Dave Tosh suggested extending textarea to include links to user’s or friends’ file uploads.

Another great plugin puts Spotlight to use as an RSS reader. ThinkTank Studio created a Magpierss reader that displays the latest articles from your favorite rss feed in Spotlight.

Download, unpack, and upload to your server’s elgg/mod directory. Activate it in  Administration–>Tools Administration. It requires a bit of hand coding to configure. Don’t let that thwart you. Just keep a back up copy of any file you edit in case you make a mistake. If the site breaks, just upload the backup so it overwrites the errant code.

Once uploaded, use your ftp client to access the file elgg/mod/magpierss/views/default/page_elements/spotlight.php, then find this (it’s easy to find):

<!-- !! START MAGPIERSS !! -->
<!-- I put the title of the feed here -->
<!-- you can lay things out all pretty with divs or tables or something.  This is just a quick and dirty example -->
<strong>Discovery News</strong><br /><br />
<?php
    require_once('magpierss/rss_fetch.inc');
    $url = $_GET['url'];
    $num_items = 3;
    $rss = fetch_rss( 'http://dsc.discovery.com/news/topstories.xml' );
    echo $rss->channel['title'] . "<p>";
    foreach (array_slice($rss->items, 0, $num_items) as $item) {
        $href = $item['link'];
        $title = $item['title'];
        $description = $item['description'];
        echo "<b><a href=$href target='_new'>$title</a></b><br>$description<br>";
    }
 ?>
<br />
<br />

All you need to edit is the blue text: a title for the feed, the numbers of items to display, and the address to the feed. Overwrite the original file and if you did it properly, you should see your feed displayed in Spotlight. The example illustrated above it the simplest. You could use formatting such as tables in the above code to change the display. The developer has thrown this out hoping others will build upon it.

Finally, there is the Default Widgets plugin. Out of the box, Elgg delivers a new user to a blank dashboard without widgets and a link to edit the page. The profile is also empty. Default Widgets built by Jade Dominguez and Chad @ NCR at the Google elgg developer group populates both the dashboard and profile with a preconfigured set of widgets. Again, download, expand, and upload to your elgg/mod directory, then activate. As configured a new user sees this dashboard:

The profile:

Widgets can be configured differently, but that involves editing code. Open elgg/mod/default_widgets/start.php and look for:

/*
	the add_widgets function only executes if the user has permissions to add widgets to his profile/dashboard.
	Since there is no user yet logged in, we need to artificially login the new user
	*/
	$log_user_in = login($object);	

	if($log_user_in){
		$profile_handler = array("friends", "a_users_groups", "messageboard", "filerepo", "status", "river_widget", "river_widget_friends");
		$dashboard_handler = array("river_widget_friends", "friends", "status", "bookmarks");

		$profile_column = array(1, 1, 2, 2, 3, 3, 3);
		$dashboard_column = array(1, 2, 3, 3);

Edit the values highlighted in blue using the the guidelines from readme.

More Elgg 1.0 plugins are available and even more in the works. As I try them out, I will feature them here. It appears that the trickle may soon be a steady stream.

Related Posts

Tags: , , , , , , ,

  1. Matt’s avatar

    thanks for your information.

    Do you know of any open source music and video apps that we can add to our social network that we are building. (elgg)

    thanks for your time.

    Matt

    Reply

  2. Steve’s avatar

    @Matt Tinymce Advanced will embed and play music and video.

    Does that help, or are you looking for more of a widget?

    Reply

  3. Thijs’s avatar

    Hi Steve, great work in documenting these first 1.0 plugins. We’re also working on an Elgg network. Your website is a great resource.

    Kind regards,
    Thijs

    Reply

  4. Steve’s avatar

    @Thjis Thanks for your kind words. I hope sharing my experiences helps others!

    Reply

  5. Pluto’s avatar

    Thanks for all this useful information. A Very interesting blog.

    Reply

  6. Noto’s avatar

    Hey Steve, what’s the workaround for embeding videos? I installed tinymce advanced & nothing still…

    Reply

  7. Steve’s avatar

    I now understand there is an issue with IE and embedding (why anybody uses IE is beyond me, but the sad truth is that most do). Check the Elgg Developer Google group.

    Reply

  8. Peter’s avatar

    Elgg 1.0 is just the bees knees! BUT, I wonder if anyone knows if Tinymce in its advanced version will allow uploading and insertion of images from a local drive to the server, prior to being inserted in (for example) a blog page? The version I’m using (as in the standard download package) only allows me to describe an image’s location by a URL. That’s not much use to us since we’ll be asking artists and students in colleges and universities to upload images from their local drives. I know we could use “Files” but even that doesn’t seem to allow for insertion into pages. I’ve used FCKEditor in the past and it has exactly the feature set I need for this work. But I don’t really have the courage to try and adapt FCKEditor for use in Elgg. (Or the skills). Any suggestions please?

    Reply

    1. Greg’s avatar

      I think I might take a crack at it. I love FCK editor, and have written a set of database tags I use with it that would integrate very nicely to elgg.

      Getting started on it!

      Greg

      Reply

  9. pete’s avatar

    Steve, how did you configure openid client for elgg v1.0?

    Reply

  10. jaon’s avatar

    The auto widget addon works great.

    I was wondering if any one has a way to get newly registered users to auto join a preset group?

    Reply

  11. chad’s avatar

    Steve,

    I may be missing something, but when I install Tinymce Advanced, I then get the error message “tinymce-advanced is a misconfigured plugin.” It seems it is designed for wordpress, do I need to edit for Elgg?

    Chad

    Reply

  12. Perochak’s avatar

    Dear,

    Is there any mod which can do the following

    Embad Videos
    Show images of videos and when clicked on them then these will play.

    Show List of categories

    Show List of Embaded Movies

    Thanks

    Reply

  13. Samir’s avatar

    great plugin i have used it on one of my website!!!

    Reply