本文整理匯總了PHP中XWB_plugin::getWeiboProfileLink方法的典型用法代碼示例。如果您正苦於以下問題:PHP XWB_plugin::getWeiboProfileLink方法的具體用法?PHP XWB_plugin::getWeiboProfileLink怎麽用?PHP XWB_plugin::getWeiboProfileLink使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類XWB_plugin
的用法示例。
在下文中一共展示了XWB_plugin::getWeiboProfileLink方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _createContent
/**
* 根據發送過來的數據,組裝出已經轉碼的、要插入對應數據庫的回帖內容
*
* @param array $data API發送過來的數據
* @return string 要插入的回帖內容(已經轉碼)
*/
function _createContent($data)
{
//轉換為論壇所需要的字符集
if (empty($data['nick'])) {
$data['nick'] = '回推';
}
$nickname = XWB_plugin::convertEncoding((string) $data['nick'], 'UTF-8', XWB_S_CHARSET);
$content = XWB_plugin::convertEncoding((string) $data['text'], 'UTF-8', XWB_S_CHARSET);
//DZ函數
$content = dhtmlspecialchars($content);
$content = $this->_replaceSinaUrlToUBB($content);
$content = $this->_filterContent($content);
if (empty($content)) {
return '';
}
if (isset($data['pic']) && !empty($data['pic'])) {
$content .= "\n\n" . '[img]http://ww3.sinaimg.cn/large/' . $data['pic'] . '.jpg[/img]';
}
$content = $content . "\n\n" . '[img]' . XWB_plugin::getPluginUrl('images/bgimg/icon_logo.png') . '[/img] ' . '[size=2][color=gray]' . '[url=' . XWB_plugin::getWeiboProfileLink($data['uid']) . ']' . XWB_plugin::L('xwb_reply_from_2', $nickname) . '[/url][/color][/size]';
return $content;
}
示例2: isset
}
?>
</p>
<?php
}
?>
</div>
<?php
if (!empty($owbUserRs)) {
?>
<div class="attention">
<h4>分享後再關注一下,是一種美德</h4>
<dl>
<dt><a href="<?php
echo XWB_plugin::getWeiboProfileLink($owbUserRs['id']);
?>
" target="_blank"><img src="<?php
echo isset($owbUserRs['local_image_url']) ? $owbUserRs['local_image_url'] : XWB_plugin::getPluginUrl('images/bgimg/0.gif');
?>
" /></a></dt>
<dd class="info">
<h5><?php
echo $owbUserRs['screen_name'];
?>
</h5>
<p class="adr"><span><a target="_blank" href="<?php
echo XWB_plugin::getEntryURL('xwbSiteInterface.attention', "att_id={$owbUserRs['id']}&" . XWB_TOKEN_NAME . "=" . FORMHASH);
?>
">加關注</a></span></p>
</dd>
示例3:
?>
<div class="users">
<a href="<?php
echo XWB_plugin::getWeiboProfileLink($value['sina_uid']);
?>
" target="_blank"><?php
echo $value['avatar'];
?>
</a>
<div class="user-info">
<p><?php
echo XWB_plugin::convertEncoding($value['username'], XWB_S_CHARSET, 'UTF-8');
?>
</p>
<a class="addfollow-btn" href="<?php
echo XWB_plugin::getWeiboProfileLink($value['sina_uid']);
?>
" target="_blank"></a>
<a class="already-addfollow-btn hidden" href="javascript:void(0)#"></a>
</div>
</div>
<?php
}
?>
</div>
<?php
}
?>
<?php
}
?>
示例4: attention
function attention()
{
$att_id = strval(XWB_plugin::V('g:att_id'));
if (!is_numeric($att_id)) {
XWB_plugin::showError('要關注的用戶參數錯誤!');
}
$mySinaUid = XWB_plugin::getBindInfo('sina_uid', '');
if (empty($mySinaUid)) {
XWB_plugin::redirect('xwbSiteInterface.bind', 2);
}
$wbApi = XWB_plugin::getWB();
$wbApi->is_exit_error = false;
$rst = $wbApi->createFriendship($att_id);
$url = XWB_plugin::getWeiboProfileLink($att_id);
XWB_plugin::redirect($url, 3);
}
示例5: _createContent
/**
* 根據發送過來的數據,組裝出已經轉碼的、要插入對應數據庫的回帖內容
*
* @param array $data API發送過來的數據
* @return string 要插入的回帖內容(已經轉碼)
*/
function _createContent($data)
{
//轉換為論壇所需要的字符集
if (empty($data['nick'])) {
$data['nick'] = '回推';
}
$nickname = XWB_plugin::convertEncoding((string) $data['nick'], 'UTF-8', XWB_S_CHARSET);
$content = XWB_plugin::convertEncoding((string) $data['text'], 'UTF-8', XWB_S_CHARSET);
//DZ函數
$content = dhtmlspecialchars($content);
$content = $this->_replaceSinaUrlToHTML($content);
$content = $this->_filterContent($content);
if (empty($content)) {
return '';
}
if (isset($data['pic']) && !empty($data['pic'])) {
$content .= "<br />" . '<img src="chttp://ww3.sinaimg.cn/large/' . $data['pic'] . '.jpg" />';
}
$content = '<img src="' . XWB_plugin::getPluginUrl('images/bgimg/icon_logo.png') . '" />' . $nickname . '(<a href="' . XWB_plugin::getWeiboProfileLink($data['uid']) . '" target="_blank">' . XWB_plugin::L('xwb_weibo') . '</a>): ' . $content;
return $content;
}
示例6: urlencode
?>
" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="reg_wrap">
<!-- 頂部 LOGO -->
<div class="TopName">
<div class="logo"></div>
<a href="<?php
echo XWB_plugin::getWeiboProfileLink($rst['id']);
?>
" target="_blank" class="logoLink"></a>
<div class="op">
<span>你正在使用 <a href="<?php
echo XWB_plugin::getWeiboProfileLink($rst['id']);
?>
" target="_blank" class="userID"><?php
echo $rst['screen_name'];
?>
</a> 帳號</span>
<span class="line">|</span>
<span><a href="http://v.t.sina.com.cn/share/sharechg.php?appkey=<?php
echo XWB_APP_KEY;
?>
&url=<?php
echo urlencode($shareData['url']);
?>
&title=<?php
echo urlencode($shareData['title']);
?>
示例7:
<div class="sign-skin-setting" id="skin-list" onclick="checkSkin(event, this)">
<a href="javascript:void(0)"><span class="skin-01"></span></a>
<a href="javascript:void(0)"><span class="skin-02"></span></a>
<a href="javascript:void(0)"><span class="skin-03"></span></a>
<a href="javascript:void(0)"><span class="skin-04"></span></a>
<a href="javascript:void(0)"><span class="skin-05"></span></a>
<a href="javascript:void(0)"><span class="skin-06 sign-setting-bg"></span></a>
<a href="javascript:void(0)"><span class="skin-07 sign-setting-bg"></span></a>
<a href="javascript:void(0)"><span class="skin-08 sign-setting-bg"></span></a>
<a href="javascript:void(0)"><span class="skin-09 sign-setting-bg"></span></a>
<a href="javascript:void(0)"><span class="skin-10 sign-setting-bg"></span></a>
</div>
<h3>效果預覽</h3>
<div class="sign-skin-preview">
<a href="<?php
echo XWB_plugin::getWeiboProfileLink(XWB_plugin::getBindInfo('sina_uid'));
?>
" target="_blank" id="view_img_wr">
<img border="0" alt="" src="" id="view_img">
</a>
<div class="sign-skin-loading hidden" id="view_img_load"><p>正在加載,請稍候...</p></div>
</div>
<div class="btn-area">
<span class="xwb-plugin-btn"><input type="submit" value="取消" onclick="parent.XWBcontrol.close('signer');" class="button"></span>
<span class="xwb-plugin-btn"><input type="submit" value="確定" onclick="parent.XWBcontrol.profile.onSignerDlgOk(gUid, gSkinNum, keyStr)" class="button"></span>
</div>
</div>
<script type="text/javascript">
var gUid = "<?php
echo $myid;
?>