//Community_Pages at right_aside
if($show_pages AND local_user()) {
- require_once('include/forums.php');
+ require_once('include/ForumManager.php');
+
+ if(x($_GET['cid']) && intval($_GET['cid']) != 0)
+ $cid = $_GET['cid'];
//sort by last updated item
$lastitem = true;
- $contacts = get_forumlist($a->user['uid'],true,$lastitem, true);
+ $contacts = ForumManager::get_list($a->user['uid'],true,$lastitem, true);
$total = count($contacts);
$visible_forums = 10;
foreach($contacts as $contact) {
+ $selected = (($cid == $contact['id']) ? ' forum-selected' : '');
+
$entry = array(
- 'url' => $a->get_baseurl() . '/network?f=&cid=' . $contact['id'],
- 'external_url' => $a->get_baseurl() . '/redir/' . $contact['id'],
+ 'url' => z_root() . '/network?f=&cid=' . $contact['id'],
+ 'external_url' => z_root() . '/redir/' . $contact['id'],
'name' => $contact['name'],
'cid' => $contact['id'],
+ 'selected' => $selected,
'micro' => proxy_url($contact['micro'], false, PROXY_SIZE_MICRO),
'id' => ++$id,
);
$r[] = array("photo" => "images/twitter.png", "name" => "Twitter");
if (plugin_enabled("wppost"))
- $r[] = array("photo" => "images/wordpress", "name" => "Wordpress");
+ $r[] = array("photo" => "images/wordpress.png", "name" => "Wordpress");
if(function_exists("imap_open") AND !get_config("system","imap_disabled") AND !get_config("system","dfrn_only"))
- $r[] = array("photo" => "images/mail", "name" => "E-Mail");
+ $r[] = array("photo" => "images/mail.png", "name" => "E-Mail");
$tpl = get_markup_template('ch_connectors.tpl');