'; html_header("PA-block_test", $parameter); print '
'; default_exception(); $contents = Content::load_content_id_array(); for ($i = 0;$i < count($contents);$i++) { $contents[$i]['comments'] = Comment::get_comment_for_content($contents[$i]['content_id']); $contents[$i]['trackback'] = Content::get_trackbacks_for_content($contents[$i]['content_id']); $user1 = new User(); // *** FIXME: it looks like user::load used to take a second param // *** that determined whether it would load deleted users or not. // *** this disappeared a long time ago, though, and in the meantime // *** a new second param has appeared, that indicates the type of // *** the first param. so if anyone wants to put this back, feel // *** free... until then, the following code may not work as // *** expected: // Here second parameter of load_user_name is 0 it is is_active = 0 // (it will load all users name of People aggregator whether user // has been deleted or exist) $user1->load((int)$contents[$i]['author_id']); //, 0); $contents[$i]['author_name'] = ''.$user1->first_name.''; //$contents[$i]['create_time'] = content_date($contents[$i]['changed']); $contents[$i]['trackback_url'] = "$base_url/pa_trackback.php?cid=".$contents[$i]['content_id']; $tags = Tag::load_tags_for_content($contents[$i]['content_id']); if($tags) { $t = array(); for($j = 0;$j < count($tags);$j++) { $t_name = $tags[$j]['name']; $uid = $_SESSION['user']['id']; $t[] = "".$tags[$j]['name'].""; } $contents[$i]['tag_entry'] = "Tags : ".implode(", ", $t); } else { $contents[$i]['tag_entry'] = ""; } } // accessing page settings data $setting_data = ModuleSetting::load_setting(2, 1); // members $users = User::allUsers_with_paging(1, 10); // header $header = & new Template(CURRENT_THEME_FSPATH."/header_all.tpl"); $header->set('current_theme_path', $current_theme_path); $module2 = new LinkModule($links['myself']); $module2->mode = PRI; $module2->title = "Published Links"; $module2->orientation = LEFT; $module1 = new ShowContentModule($contents); $module1->title = "Community Content"; $module3 = new LinkModule($links['myself']); $module3->mode = PRI; $module3->block_type = 'Homepage'; $module3->title = "My Links"; $module3->orientation = LEFT; $module4 = new FacewallModule($users); $module4->mode = PRI; $module4->block_type = HOMEPAGE; $module4->title = "Members"; $module4->orientation = LEFT; $module5 = new PopularTagsModule($tags); $module5->mode = PRI; $module5->block_type = HOMEPAGE; $module5->title = "Most Popular Tags"; $module5->orientation = LEFT; $module6 = new RecentPostModule($tags); $module6->mode = PRI; $module6->block_type = HOMEPAGE; $module6->title = "Recent Posts"; $module6->orientation = LEFT; print '