AGAMES 討論區
標題:
推廣訪問美化
[打印本頁]
作者:
dlalden
時間:
2008-11-7 18:16:53
標題:
推廣訪問美化
==============================================
原帖:
http://www.discuz.net/viewthread.php?tid=1031901
==============================================
本人找到過幾個邀請註冊的插件,但是屬於插件,看起來很不舒服,而且在控制面板下面已經有一個推廣訪問註冊的功能了。
所以,我參照訪問中心插件的模式,將DZ自帶的訪問推廣中心美化了一下。
修改檔:bbs/templates/default/memcp_home.htm
為了防止上傳不上來,先把所有代碼都粘這裏了,你可以複製到memcp_home.htm裏面
{subtemplate header}
<div class="container">
<div id="nav"><a href="$indexname">$bbname</a> » {lang memcp}</div>
<div class="content">
<table id="memberinfo" class="portalbox" cellpadding="0" cellspacing="1">
<tr>
<td class="memberinfo_avatar">
{echo discuz_uc_avatar($discuz_uid)}
<p><a href="space.php?uid=$discuz_uid">$discuz_userss</a></p>
</td>
<td class="memberinfo_forum">
<ul>
<li><label>UID:</label> $member[uid]</li>
<li><label>{lang usergroup}:</label> $grouptitle<!--{if $regverify == 1 && $groupid == 8}--> [ <a href="member.php?action=emailverify">{lang memcp_email_reverify}</a> ]<!--{/if}--></li>
<li><label>{lang regdate}:</label>$member[regdate]</li>
<li><label>{lang register} IP:</label>$member[regip] $member['regiplocation']</li>
<li><label>{lang lastvisit} IP:</label>$member[lastip] $member['lastiplocation']</li>
<li><label>{lang lastvisit}:</label>$member[lastvisit]</li>
<li><label>{lang lastpost}:</label>$member['lastpost']</li>
</ul>
</td>
<td class="memberinfo_forum" style="width: 12em;">
<ul>
<li>{lang credits}: $credits</li>
<!--{loop $extcredits $id $credit}-->
<li>
<!--{if $id == $creditstrans}-->
$credit[title]: <span style="font-weight: bold;">$GLOBALS['extcredits'.$id]</span> $credit[unit]
<!--{else}-->
$credit[title]: $GLOBALS['extcredits'.$id] $credit[unit]
<!--{/if}-->
</li>
<!--{/loop}-->
<li>{lang posts}: $member[posts] </li>
<li>{lang digestposts}: $member[digestposts]</li>
</ul>
</td>
</tr>
</table>
<!--{if $validating}-->
<div class="mainbox formbox">
<h1>{lang memcp_validating}</h1>
<form method="post" action="member.php?action=regverify">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<table summary="" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th> </th>
<td>{lang memcp_validating_info}</td>
</tr>
</thead>
<tr>
<th>{lang memcp_validating_status}</th>
<td><strong><!--{if $validating['status'] == 0}-->{lang memcp_validating_status_0}<!--{elseif $validating['status'] == 1}-->{lang memcp_validating_status_1}<!--{/if}--></strong></td>
</tr>
<!--{if $validating['admin']}-->
<tr>
<th>{lang memcp_validating_admin}</th>
<td><a href="space.php?username=$validating[adminenc]">$validating[admin]</a></td>
</tr>
<!--{/if}-->
<!--{if $validating['moddate']}-->
<tr>
<th>{lang memcp_validating_time}</th>
<td>$validating[moddate]</td>
</tr>
<!--{/if}-->
<!--{if $validating['remark']}-->
<tr>
<th>{lang memcp_validating_remark}</th>
<td>$validating[remark]</td>
</tr>
<!--{/if}-->
<tr>
<th valign="top"><label for="regmessagenew">{lang register_message}</label></th>
<td><textarea rows="5" cols="50" id="regmessagenew" name="regmessagenew">$validating[message]</textarea></td>
</tr>
<!--{if $validating['status'] == 1}-->
<tr class="btns">
<th> </th>
<td><button type="submit" class="submit" name="verifysubmit" id="verifysubmit" value="true">{lang submit}</button></td>
</tr>
<!--{/if}-->
</table>
</form>
</div>
<!--{/if}-->
<div class="mainbox">
<h3>{lang memcp_last_10_creditslog}</h3>
<table summary="{lang memcp_last_10_creditslog}" cellspacing="0" cellpadding="0">
<thead>
<tr>
<td class="user">{lang memcp_credits_log_transaction_fromto}</td>
<td class="time">{lang time}</td>
<td class="nums">{lang memcp_credits_log_transaction_outgo}</td>
<td class="nums">{lang memcp_credits_log_transaction_income}</td>
<td>{lang action}</td>
</tr>
</thead>
<tbody>
<!--{if $loglist}-->
<!--{loop $loglist $log}-->
<tr>
<td class="user"><!--{if $log['fromto'] == 'BANK ACCOUNT'}-->{lang memcp_credits_transfer_bank}<!--{else}--><a href="space.php?username=$log[fromtoenc]">$log[fromto]</a><!--{/if}--></td>
<td class="time">$log[dateline]</td>
<td class="nums"><!--{if $log['send']}-->{$extcredits[$log[sendcredits]][title]} $log[send] {$extcredits[$log[sendcredits]][unit]}<!--{/if}--></td>
<td class="nums"><!--{if $log['receive']}-->{$extcredits[$log[receivecredits]][title]} $log[receive] {$extcredits[$log[receivecredits]][unit]}<!--{/if}--></td>
<td>
<!--{if $log['operation'] == 'TFR'}-->
{lang memcp_credits_transfer_send}
<!--{elseif $log['operation'] == 'RCV'}-->
{lang memcp_credits_transfer_receive}
<!--{elseif $log['operation'] == 'EXC'}-->
{lang memcp_credits_exchange}
<!--{elseif $log['operation'] == 'UGP'}-->
{lang memcp_usergroups_charged}
<!--{elseif $log['operation'] == 'AFD'}-->
{lang memcp_credits_transfer_bank}
<!--{/if}-->
</td>
</tr>
<!--{/loop}-->
<!--{else}-->
<tr><td colspan="5">{lang memcp_credits_log_none}</td></tr>
<!--{/if}-->
</tbody>
</table>
</div>
<!--{if $creditspolicy['promotion_visit'] || $creditspolicy['promotion_register']}-->
<div class="mainbox">
<h3>{lang post_my_advisit}</h3>
<table cellspacing="0" cellpadding="0" width="100%">
<tr><td>
<font color="red">{lang post_promotion_url1}</font>
<input type="text" onclick="this.select();setcopy(this.value, '{lang promotion_url_copied}');" value="$boardurl?fromuid=$discuz_uid" size="50" />
<br><font color="#FF6600">訪問宣傳方法:直接複製地址發給您的朋友或發進百度貼吧、百度知道裏</font>
</td></tr>
<tr><td>
<font color="red">{lang post_promotion_url2}</font>
<input type="text" onclick="this.select();setcopy(this.value, '{lang promotion_url_copied}');" value="$boardurl?fromuser=$discuz_user" size="50" />
<br>
<font color="#FF6600">訪問宣傳方法:直接複製地址發給您的朋友或發進百度貼吧、百度知道裏</font>
</td></tr>
<tr>
<td>
<font color="blue">推廣註冊1</font>:
<input type="text" onclick="this.select();setcopy(this.value, '{lang promotion_url_copied}');" value="知道中國第五大島嗎?" size="100" />
<br>
<font color="#FF6600">註冊宣傳方法:UBB 代碼 格式:(可將代碼放在論壇的個人簽名裏,適用於各類支持的論壇.)<br>演示:</font><a href="http://www.zgcxd.com/bbs/register.php?fromuid=$discuz_uid" target="_blank"><font color="#000080"><a href="http://www.zgcxd.com/bbs/register.php?fromuid=$discuz_uid">知道中國第五大島嗎?</a></font>
</td>
</tr>
<tr>
<td>
<font color="blue">推廣註冊2</font>:
<textarea cols="100" rows="3" wrap="physical" onclick="this.select();setcopy(this.value, '{lang promotion_url_copied}');"></textarea>
<br>
<font color="#FF6600">註冊宣傳方法:UBB 代碼 格式:(可將代碼放在論壇的個人簽名裏,適用於各類支持的論壇.)<br>演示:</font><a href="http://www.zgcxd.com/bbs/register.php?fromuid=$discuz_uid"><font color="#000080"><a href="http://www.zgcxd.com/bbs/register.php?fromuid=$discuz_uid"><img src="http://www.zgcxd.com/bbs/images/default/logo.gif" border="0"></a></font>
</td>
</tr>
<tr>
<td>
<font color="blue">推廣註冊3</font>:
<textarea cols="100" rows="3" wrap="physical" onclick="this.select();setcopy(this.value, '{lang promotion_url_copied}');"><a href="http://www.zgcxd.com/bbs/register.php?fromuid=$discuz_uid"><img src="http://www.zgcxd.com/bbs/images/default/logo.gif" border="0" /></a></textarea>
<br>
<font color="#FF6600">註冊宣傳方法:HTML代碼:(可用於所有支持HTML的地方,可放在你的博客裏面.)
<br>演示:</font><a href="http://www.zgcxd.com/bbs/register.php?fromuid=$discuz_uid"><font color="#000080"><a href="http://www.zgcxd.com/bbs/register.php?fromuid=$discuz_uid"><img src="http://www.zgcxd.com/bbs/images/default/logo.gif" border="0"></a></font> </td>
</tr>
<tr><td>
<em>
<ul>
<li>{lang my_promotion_url}</li>
<!--{if $promotion_visit}--><li>{lang credit_promotion_visit} <font color="red">$promotion_visit</font></li><!--{/if}-->
<!--{if $promotion_register}--><li>{lang credit_promotion_register} <font color="red">$promotion_register</font></li><!--{/if}-->
<li><font color="#0954A6">注:您可以把宣傳網址帖到網路上任何地方(比如QQ群,論壇,百度貼吧等)!<br>
補充說明(您的每次推廣我們都有記錄):<br>
a.我們不提倡您發佈網址到一些和雜誌沒多大聯繫的網站或者亂貼網址給本站帶來負面影響;對論壇造成不良反映的推廣和刷IP<br>
b.我們提倡您帶我們論壇的精華作品或者資源到其他計量、質量站點發佈,然後貼上您自己的推廣網址;<br>
c.做推廣也要做的有水平,不能讓人一看就知道您是來做廣告的!<br>
感謝大家的參與和支持!</font></li>
</ul>
</em>
</td></tr>
</table>
</div>
<!--{/if}-->
</div>
<div class="side">
{subtemplate personal_navbar}
</div>
</div>
{subtemplate footer}
複製代碼
附件是跟此代碼完全一樣的。注意自己修改裏面的網站地址和logo地址。
歡迎光臨 AGAMES 討論區 (http://61.244.113.49/)
Powered by Discuz! X2