Facebook Theme for Elgg 1.8 hacking the sidebar to add content.

I just plugin the Elgg's facebook theme. It works nice but I need to know how to 

add elements to the sidebar like ads for example in this fbk theme  - 

I know where to go > views/default/page/elements ... 'sidebar parameter is the file I need to change things but I need help php programing is weak -

the file looks like this:

<?php

/**

 * Elgg sidebar contents

 *

 * @uses $vars['sidebar'] Optional content that is displayed at the bottom of sidebar

 */


echo elgg_view('page/elements/owner_block', $vars);


echo elgg_view_menu('page', array('sort_by' => 'priority'));


// optional 'sidebar' parameter

if (isset($vars['sidebar'])) {

echo $vars['sidebar'];

}


// @todo deprecated so remove in Elgg 2.0

// optional second parameter of elgg_view_layout

if (isset($vars['area2'])) {

echo $vars['area2'];

}


// @todo deprecated so remove in Elgg 2.0

// optional third parameter of elgg_view_layout

if (isset($vars['area3'])) {

echo $vars['area3'];

}


echo elgg_view_menu('extras', array(

'sort_by' => 'priority',

));

The example of the the site @ https://moneymedley.com/facebook1/facebook/

Thank You.

Feedback and Planning

Feedback and Planning

Discussions about the past, present, and future of Elgg and this community site.