public function loadmorestoriesAction()
 {
     if ($this->getRequest()->isGet() && $this->_ajaxRequest) {
         $storyService = new Service_Userstory();
         if ($page = $this->getRequest()->getParam('page', FALSE)) {
             if (is_array($stories = $storyService->fetch($this->_user->id, $page))) {
                 $this->_response->appendBody(Zend_Json::encode($stories));
                 return;
             } else {
                 $this->_response->appendBody('0');
                 return;
             }
         }
     } else {
         return $this->_redirect('/profile');
     }
 }
 public function loadnewstoriesAction()
 {
     if ($this->getRequest()->isGet() && $this->_ajaxRequest) {
         $friendService = new Service_Friend();
         $storyService = new Service_Userstory();
         $friendList = $friendService->fetchFriendIds($this->_user->id);
         if (is_array($stories = $storyService->fetchByUsersAndTime($this->_user->storyNotificationPeriod, $friendList))) {
             $results['root'] = $stories;
             $this->_response->appendBody(Zend_Json::encode($results));
             return;
         } else {
             $this->_response->appendBody('0');
             return;
         }
     } else {
         return $this->_redirect('/notifications');
     }
 }