当前位置: 首页>>代码示例>>PHP>>正文


PHP UserProfile::ProfilePermaLink方法代码示例

本文整理汇总了PHP中UserProfile::ProfilePermaLink方法的典型用法代码示例。如果您正苦于以下问题:PHP UserProfile::ProfilePermaLink方法的具体用法?PHP UserProfile::ProfilePermaLink怎么用?PHP UserProfile::ProfilePermaLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UserProfile的用法示例。


在下文中一共展示了UserProfile::ProfilePermaLink方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: md5

				<a class="author" href="<?php 
    echo UserProfile::ProfilePermaLink($row["author"], $row["authorname"]);
    ?>
"><img class="gravatar photo" src="http://www.gravatar.com/avatar/<?php 
    echo md5($row["authoremail"]);
    ?>
?s=32&d=identicon" title="<?php 
    echo html($row["authorname"]);
    ?>
" alt="<?php 
    echo html($row["authorname"]);
    ?>
 Gravatar-Bild"></a>
<?php 
    if ($row["authorexpert"] == "expert") {
        echo '<img class="expert icon" src="' . get_path("/skins/default/images/icons/expert.png") . '" TITLE="Der User ist Experte in diesem Thema"/>';
    }
    ?>
			</div>
			<a class="charakter" href="<?php 
    echo UserProfile::ProfilePermaLink($row["author"], $row["authorname"]);
    ?>
"><?php 
    echo html($row["authorname"]);
    if ($row["country"] != "" and $row["show_country"] == "1") {
        echo '<img class="flag" src="' . get_path("/skins/default/images/flags/16x11/" . strtolower($row["country"]) . ".png") . '"/>';
    }
    ?>
</a><br/> 
			<span class="reputation-score" title=""><?php 
    echo $row["authorkarma"];
开发者ID:andreaskasper,项目名称:askbot_php,代码行数:31,代码来源:box_answer_authorcontainer.php

示例2: _e

	<div id="Content" class="content-wrapper PageUsers">
		<article class="ContentLeft">
			<div class="tabBar"> <div id="sort_tabs" class="tabsA"> <span class="label"><?php 
echo _e("Sort by »");
?>
</span>
				<a id="by_karma" href="<?php 
echo URL::addVar("sort", "karma");
?>
" class="sortby" title="sort by Karma"><span>Karma</span></a>
				<a id="by_name" href="<?php 
echo URL::addVar("sort", "name");
?>
" class="sortby" title="sort by Username"><span>Name</span></a>
			</div></div>
			
			<h1 class="search-result-summary"><?php 
echo _e("{n} Users", array("n" => $AnzahlUsers));
?>
</h1>
			<div class="clearfix"></div>
			
			<section class="tag-list tags">
<?php 
foreach ($rows as $row) {
    echo '<div class="user" style="float:left; position: relative; width:180px; height:32px; overflow: hidden; margin-bottom: 5px;">';
    echo '<a href="' . UserProfile::ProfilePermaLink($row["id"], $row["username"]) . '"><img class="gravatar" width="32" height="32" src="http://www.gravatar.com/avatar/' . md5(strtolower(trim($row["email_standard"]))) . '?s=32&d=mm" title="' . html($row["username"]) . '" alt="' . _e("{0}'s Gravatar Image") . '">';
    if ($row["is_expert"] == "expert") {
        echo '<img src="' . get_path("/skins/default/images/icons/expert.png") . '" TITLE="' . _e("Expert for this Subject") . '" style="width:8px; height:8px; position: absolute; top:24px; left: 28px;"/>';
    }
    echo '<span class="username">' . html($row["username"]) . '</span></a>';
开发者ID:andreaskasper,项目名称:askbot_php,代码行数:31,代码来源:page_users.php

示例3: _e

	<tr><th><?php 
echo _e("Facebook likes:");
?>
</th><td><?php 
echo _e("{1} Likes", array($d["like_count"], number_format($d["like_count"], 0, ",", ".")));
?>
</td></tr>
	<tr><th><?php 
echo _e("Facebook shares:");
?>
</th><td><?php 
echo _e("{1} Shares", array($d["share_count"], number_format($d["share_count"], 0, ",", ".")));
?>
</td></tr>
	<tr><th><?php 
echo _e("Facebook clicks:");
?>
</th><td><?php 
echo _e("{1} Clicks", array($d["click_count"], number_format($d["click_count"], 0, ",", ".")));
?>
</td></tr>
	<tr><th><?php 
echo _e("Last contributor:");
?>
</th><td><a href="<?php 
echo UserProfile::ProfilePermaLink($params["data"]["user_action"], $params["data"]["user_actionname"]);
?>
"><?php 
echo html($params["data"]["user_actionname"]);
?>
</a></td></tr>
开发者ID:andreaskasper,项目名称:askbot_php,代码行数:31,代码来源:widget_question_statistics.php

示例4:

<?php 
if (MyUser::id() == $params["id"]) {
    ?>
	<li><a href="<?php 
    echo UserProfile::ProfilePermaLink($params["id"], $params["name"], "inbox");
    ?>
">Postfach</a></li>
<?php 
}
?>
	<li><a href="<?php 
echo UserProfile::ProfilePermaLink($params["id"], $params["name"], "karma");
?>
">Karma</a></li>
	<li><a href="<?php 
echo UserProfile::ProfilePermaLink($params["id"], $params["name"], "badges");
?>
">Abzeichen</a></li>
<?php 
if (MyUser::hasAdminRight()) {
    echo '<li><a href="' . UserProfile::ProfilePermaLink($params["id"], $params["name"], "rights") . '">Rechte</a></li>';
}
?>
</ul>
<div class="clearfix"></div>
<style>
ul.navibar { display: block; margin-bottom: 15px; background-color: #EFF5F6; height: 30px; line-height: 30px; font-family: Georgia,serif; font-size: 16px; padding: 0px 0px 0px 10px; border-radius: 5px; }
ul.navibar li { list-style: none; float: left; padding: 0px 10px; border-left: 1px solid #D0E1E4; }
ul.navibar li:first-child { border-left: none; }
ul.navibar li a { color: #7EA9B3; }
ul.navibar li:hover a { color: #4A757F; }
开发者ID:andreaskasper,项目名称:askbot_php,代码行数:31,代码来源:box_userprofile_navi.php

示例5: getProfileURL

 public static function getProfileURL($subsite = null)
 {
     return UserProfile::ProfilePermaLink($_SESSION["myuser"]["id"], $_SESSION["myuser"]["username"], $subsite);
 }
开发者ID:andreaskasper,项目名称:askbot_php,代码行数:4,代码来源:MyUser.php

示例6: _e

			<div id="contrib-users" class="widget"> 
				<h2 class="contributorback"><?php 
echo _e("Contributors");
?>
</h2>
<?php 
$db = new SQL(0);
$rows = $db->cmdrows(0, 'SELECT T1.id, T1.username ,T1.email_standard as email ,T2.last_writeaction
FROM user_list as T1 
LEFT JOIN user_action as T2 ON T1.id=T2.user
WHERE 1 GROUP BY T1.id ORDER BY T2.last_writeaction DESC LIMIT 0,16');
foreach ($rows as $row) {
    echo '<a style="text-decoration:none" href="' . UserProfile::ProfilePermaLink($row["id"], $row["username"]) . '"><img class="gravatar" width="48" height="48" src="http://www.gravatar.com/avatar/' . md5(strtolower(trim($row["email"]))) . '?s=48&d=mm" title="' . html($row["username"]) . '" alt="' . _e("{0}'s Gravatar Image", array($row["username"])) . '"></a>';
}
?>
			</div>
开发者ID:andreaskasper,项目名称:askbot_php,代码行数:16,代码来源:widget_contributors.php

示例7:

echo $d == "03" ? 'SELECTED="SELECTED"' : '';
?>
>März</OPTION>
				<OPTION value="04" <?php 
echo $d == "04" ? 'SELECTED="SELECTED"' : '';
?>
>April</OPTION>
				<OPTION value="05" <?php 
echo $d == "05" ? 'SELECTED="SELECTED"' : '';
?>
>Mai</OPTION>
				<OPTION value="06" <?php 
echo $d == "06" ? 'SELECTED="SELECTED"' : '';
?>
>Juni</OPTION>
				<OPTION value="07" <?php 
echo $d == "07" ? 'SELECTED="SELECTED"' : '';
?>
>Juli</OPTION>
				<OPTION value="08" <?php 
echo $d == "08" ? 'SELECTED="SELECTED"' : '';
?>
>August</OPTION>
				<OPTION value="09" <?php 
echo $d == "09" ? 'SELECTED="SELECTED"' : '';
?>
>September</OPTION>
				<OPTION value="10" <?php 
echo $d == "10" ? 'SELECTED="SELECTED"' : '';
?>
>Oktober</OPTION>
开发者ID:andreaskasper,项目名称:askbot_php,代码行数:31,代码来源:page_userprofileedit.php

示例8: date

    echo _e("views");
    ?>
</div> </div> 
						<div class="countbox answers <?php 
    echo $row["count_answers"] > 0 ? "some-answers" : "no-answers";
    ?>
 <?php 
    echo $row["is_answered"] == "1" ? "answered" : "";
    ?>
"> <span class="item-count"><?php 
    echo format_blocknumber($row["count_answers"]);
    ?>
</span> <div><?php 
    echo _e("answers");
    ?>
</div> </div> 
						<div class="countbox votes  <?php 
    echo $row["count_votes"] > 0 ? "some-votes" : "no-votes";
    ?>
"> <span class="item-count"><?php 
    echo format_blocknumber($row["count_votes"]);
    ?>
</span> <div><?php 
    echo _e("votes");
    ?>
</div> 
					</div> 
				<div class="clearfix"></div> 
				<div class="userinfo"> <abbr class="timeago" title="<?php 
    echo date(_h("j. M Y H:i:s T"), $row["date_action"]);
    ?>
开发者ID:andreaskasper,项目名称:askbot_php,代码行数:31,代码来源:page_questions.php

示例9: html

</a></td></tr>
				<tr><th>Wohnort:</th><td class="adr"><span class="locality location"><?php 
echo html($info["location"]);
?>
</span>
<?php 
if ($info["country"] != "" and $info["show_country"] == "1") {
    echo '<img class="flag" src="' . get_path("/skins/default/images/flags/16x11/" . strtolower($info["country"]) . ".png") . '"/>';
}
?>
				<span class="country-name hidden">Deutschland</span></td></tr>
				<tr><th>Skype:</th><td class="skype status status0"><?php 
echo isset($info["SkypeID"]) && $info["SkypeID"] . "" != "" ? '<a href="skype:' . html($info["SkypeID"]) . '?call"><img src="http://mystatus.skype.com/smallclassic/' . html($info["SkypeID"]) . '" style="border: none;" width="114" height="20" alt="Mein Status" /></a>' : '';
?>
</td></tr>
				<tr><th>Google+:</th><td><?php 
if (isset($info["GooglePlus"]) && $info["GooglePlus"] . "" != "") {
    echo '<div class="g-plus" data-height="69" data-href="' . html($info["GooglePlus"]) . '" data-rel="author"></div><a href="' . html($info["GooglePlus"]) . '?rel=author"></a>';
}
?>
</td></tr>
				<tr><th>Alter:</th><td><?php 
function alter($datum)
{
    list($y, $m, $d) = explode('-', $datum);
    $alter = date("Y") - $y;
    $monat = date("m");
    if ($monat < $m or $monat == $m and $d > date("d")) {
        $alter--;
    }
    return $alter;
开发者ID:andreaskasper,项目名称:askbot_php,代码行数:31,代码来源:page_userprofile.php


注:本文中的UserProfile::ProfilePermaLink方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。