本文整理汇总了PHP中XoopsUser::url方法的典型用法代码示例。如果您正苦于以下问题:PHP XoopsUser::url方法的具体用法?PHP XoopsUser::url怎么用?PHP XoopsUser::url使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XoopsUser
的用法示例。
在下文中一共展示了XoopsUser::url方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sprintf
$showmail = 1;
}
}
if ($showmail) {
$user['email'] = "<a href='mailto:" . $userinfo->email("E") . "'>";
$user['email'] .= "<img src='" . XOOPS_URL . "/images/icons/email.gif' border='0' alt='" . sprintf(_SENDEMAILTO, $userinfo->uname("E")) . "' /></a>";
} else {
$user['email'] = "";
}
if ($xoopsUser) {
$user['pm'] = "<a href='javascript:openWithSelfMain(\"" . XOOPS_URL . "/pmlite.php?send2=1&to_userid=" . $userinfo->uid() . "\",\"pmlite\",450,370);'>";
$user['pm'] .= "<img src='" . XOOPS_URL . "/images/icons/pm.gif' border='0' alt='" . sprintf(_SENDPMTO, $userinfo->uname("E")) . "' /></a>";
} else {
$user['pm'] = "";
}
if ($userinfo->url("E")) {
$user['url'] = "<a href='" . $userinfo->url("E") . "' target=new><img src='" . XOOPS_URL . "/images/icons/www.gif' border='0' alt='" . _VISITWEBSITE . "' /></a>";
} else {
$user['url'] = "";
}
if ($is_admin) {
$user['functions'] = "[ <a href='" . XOOPS_URL . "/modules/system/admin.php?fct=users&op=reactivate&uid=" . $userinfo->uid() . "&op=modifyUser'>" . _MA_MSHIP_EDIT . "</a> | ";
$user['functions'] .= "<a href='" . XOOPS_URL . "/modules/system/admin.php?fct=users&op=delUser&uid=" . $userinfo->uid() . "'>" . _MA_MSHIP_DELETE . "</a> ]";
}
$xoopsTpl->append('users', $user);
unset($user);
}
//$countstring = ($totalcount != 1 )?_MA_PUB_NSTORIES:_MA_PUB_NSTORY;
//$xoopsTpl->assign('stories_count', $totalcount.' '.$countstring);
if ($totalcount > $pagesize) {
include_once XOOPS_ROOT_PATH . '/class/pagenav.php';