欧美日韩精品在线,国内精品久久久久久久久,一级毛片恃级毛片直播,清纯唯美亚洲综合欧美色

dedecms將標(biāo)題直接鏈接到外部鏈接_DedeCms教程

編輯Tag賺U幣
教程Tag:暫無Tag,歡迎添加,賺取U幣!
真正的【將標(biāo)題直接鏈接到外部鏈接】

功能:
將標(biāo)題直接鏈接到外部鏈接,后臺(tái)文章錄入:直接添加轉(zhuǎn)向網(wǎng)址即可,無須其他選擇,不轉(zhuǎn)向請(qǐng)留空。
網(wǎng)址為動(dòng)態(tài)轉(zhuǎn)向,記錄點(diǎn)擊數(shù),外連和動(dòng)態(tài)文章一樣可以設(shè)置收費(fèi)等。
改法:

第一步
假設(shè)dede_為表前綴,則在dede_archives 添加一字段
字段名:redirecturl


打開:view.php
找到:
CODE: $arc->Display();
$arc->Close(); [Copy to clipboard]
前面加入:
CODE: $url = new Archives($aid);
$redirecturl = $url->ArcInfos['redirecturl'];
if ($redirecturl != "") {
$dsql = new DedeSql(false);
$dsql->SetQuery("Update dede_archives set click=click 1 where ID='$aid'");
$dsql->ExecuteNoneQuery();
header("Location:$redirecturl");
exit();
}
$url->Close(); [Copy to clipboard]
打開:article_add.php
找到
CODE: <table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80">閱讀權(quán)限:</td>
<td width="224"> <select name="arcrank" id="arcrank" style="width:150">
<?
$urank = $cuserLogin->getUserRank();
$dsql = new DedeSql(false);
$dsql->SetQuery("Select * from dede_arcrank where adminrank<='$urank'");
$dsql->Execute();
while($row = $dsql->GetObject())
{
echo " <option value='".$row->rank."'>".$row->membername."</option>
";
}
$dsql->Close();
?>
</select> </td>
<td width="63">發(fā)布選項(xiàng):</td>
<td><input name="ishtml" type="radio" class="np" value="1" checked>
生成HTML
<input type="radio" name="ishtml" class="np" value="0">
僅動(dòng)態(tài)瀏覽</td>
</tr>
</table> [Copy to clipboard]
后面加入:
CODE: <table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80">轉(zhuǎn)向網(wǎng)址:</td>
<td width="520"><input name="redirecturl" type="text" id="redirecturl" style="width:250px"></td>
</tr>

查看更多 DedeCms教程  織夢(mèng)模板  織夢(mèng)DedeCms視頻教程  織夢(mèng)dedecms專題

共3頁上一頁123下一頁
來源:模板無憂//所屬分類:DedeCms教程/更新時(shí)間:2007-01-28
相關(guān)DedeCms教程