$code='<fb:request-form action="'.URL_CANVAS.'?p=share" method="post" type="'.SITE_TITLE_SHORT.'" content="'.htmlentities($content).'" image="'.$image.'"> <fb:multi-friend-selector bypass="******" showborder="false" actiontext="Select friends you wish to share the story with below:" exclude_ids="" /> </fb:request-form> '; */ /* $code.='<form id="dialog_form" name="dialog_form">' //onsubmit="return false;">'; $code .= '<p><strong>To:</strong> <fb:multi-friend-input width="350px" border_color="#8496ba" /></p>'; $code.='</form>';*/ // TODO: php redirect after submit break; case 'fetchTeamFriendsList': if (isset($_GET['state'])) { $state = $_GET['state']; } else { $state = 'collapsed'; } require_once PATH_FACEBOOK . "/pages/pageTeam.class.php"; $db->log($userid); $code = pageTeam::fetchTeamFriendList($fb->db, $userid, $state, true); break; case 'fetchHomePage': // replace just storyList /* * if (isset($_GET['userid'])) $userid=$_GET['userid']; else $userid='default'; */ require_once PATH_CORE . "/classes/home.class.php"; $homeObj = new home(); $code = $homeObj->fetchHomePage($currentPage); break; case 'dialogPublish': $error = false;
function fetchTeamFriends($maxfriends = 5) { $cacheName = "teamFriends_{$this->page->session->userid}_collapsed"; if ($this->templateObj->checkCache($cacheName, 7)) { // still current, get from cache $code = $this->templateObj->fetchCache($cacheName); } else { // note that with the availability of the session in ajax we can actually simplify this with the cached user info itselfg $code = pageTeam::fetchTeamFriendList($this->db, $this->page->session->userid, 'collapsed', false, $this->commonTeam['TeamFriendsPanelTitle']); $this->templateObj->cacheContent($cacheName, $code); } return $code; }