本文整理汇总了PHP中Releases::getCommentsForUserRange方法的典型用法代码示例。如果您正苦于以下问题:PHP Releases::getCommentsForUserRange方法的具体用法?PHP Releases::getCommentsForUserRange怎么用?PHP Releases::getCommentsForUserRange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Releases
的用法示例。
在下文中一共展示了Releases::getCommentsForUserRange方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
} else {
$userid = $users->currentUserId();
}
$data = $users->getById($userid);
if (!$data) {
$page->show404();
}
$invitedby = '';
if ($data["invitedby"] != "") {
$invitedby = $users->getById($data["invitedby"]);
}
$page->smarty->assign('userinvitedby', $invitedby);
$page->smarty->assign('user', $data);
$commentcount = $releases->getCommentCountForUser($userid);
$offset = isset($_REQUEST["offset"]) ? $_REQUEST["offset"] : 0;
$page->smarty->assign('pagertotalitems', $commentcount);
$page->smarty->assign('pageroffset', $offset);
$page->smarty->assign('pageritemsperpage', ITEMS_PER_PAGE);
$page->smarty->assign('pagerquerybase', "/profile?id=" . $userid . "&offset=");
$page->smarty->assign('pagerquerysuffix', "#comments");
$pager = $page->smarty->fetch($page->getCommonTemplate("pager.tpl"));
$page->smarty->assign('pager', $pager);
$commentslist = $releases->getCommentsForUserRange($userid, $offset, ITEMS_PER_PAGE);
$page->smarty->assign('commentslist', $commentslist);
$exccats = $users->getCategoryExclusionNames($userid);
$page->smarty->assign('exccats', implode(",", $exccats));
$page->meta_title = "View User Profile";
$page->meta_keywords = "view,profile,user,details";
$page->meta_description = "View User Profile for " . $data["username"];
$page->content = $page->smarty->fetch('profile.tpl');
$page->render();