Manyou诚邀开发者加盟 | 常见问题
《站长》“开发者特刊”限量赠送
立即免费下载 Discuz!6.1.0正式版
Discuz! 6.1.0使用说明 | 使用手册
Discuz!NT2.5正式版发布
开放源码下载 | 使用手册
Discuz!收费服务内容及价格
《站长》俱乐部各地聚会活动进行中
Discuz!/ECShop 专用官方虚拟主机
论坛游戏插件再开新区 助你在聚新人气
基于Discuz!的免费论坛空间5D6D
《站长》第八期:实战互联网开放平台
返回列表 回复 发帖

仿5d6d访问推广

其实这个一段很简单的代码,我看到有许多人要就做了一份

演示地址:www.5d6d.com/bbs.php

打开discuz.htm模版

找到
  1. <!--{/if}-->
  2. </table></div><br><br></div>
  3. <!--{/if}-->
复制代码
替换为
  1. <!--{/if}-->
  2. </table></div><br>
  3. <!--{/if}-->
  4. <!--{if $discuz_uid && ($creditspolicy['promotion_visit'] || $creditspolicy['promotion_register'])}-->
  5. <script language="javascript">
  6. function copyurl(urlid) {
  7.   var o = $(urlid);
  8.   o.select();
  9.   var js=o.createTextRange();
  10.   js.execCommand("Copy");
  11.   alert("复制成功!");
  12. }
  13. </script>
  14. <div class="spaceborder" style="width: {TABLEWIDTH}">
  15.   <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" align="center">
  16.   <tr><td class="header"><a href="member.php?action=credits&view" target="_blank"><img src="{IMGDIR}/credits.gif" alt="{lang credits_policy_view}" align="right" border="0" /></a>
  17.   <span class="bold">论坛推广</span></td></tr>
  18.   <tr><td align="center">
  19.    <div class="subtable outertxt option" style="width:500px;padding:8px 0px 0px 0px;align:center;height:27px!important;height:40px;">
  20.     <input type="button" class="button" value="注册推广" onclick=copyurl('reg_popularize') style="width:120px;text-align:center;margin:0px 63px;" />
  21.     <input type="button" class="button" value="访问推广" onclick=copyurl('vis_popularize') style="width:120px;text-align:center;margin:0px 63px;" />
  22.     <input type="hidden" id="reg_popularize" value="{$boardurl}?fromuid={$discuz_uid}"></input>
  23.     <input type="hidden" id="vis_popularize" value="{$boardurl}?fromuid={$discuz_uid}"></input>
  24.    </div>
  25.   </td></tr>
  26.   <tr><td align="center">点击按钮即可复制推广链接地址</td></tr>
  27.   </table>
  28. </div><br></div>
  29. <!--{/if}-->
复制代码
就OK了,其中
  1. <!--{if $discuz_uid && ($creditspolicy['promotion_visit'] || $creditspolicy['promotion_register'])}-->
  2. <script language="javascript">
  3. function copyurl(urlid) {
  4.   var o = $(urlid);
  5.   o.select();
  6.   var js=o.createTextRange();
  7.   js.execCommand("Copy");
  8.   alert("复制成功!");
  9. }
  10. </script>
  11. <div class="spaceborder" style="width: {TABLEWIDTH}">
  12.   <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" align="center">
  13.   <tr><td class="header"><a href="member.php?action=credits&view" target="_blank"><img src="{IMGDIR}/credits.gif" alt="{lang credits_policy_view}" align="right" border="0" /></a>
  14.   <span class="bold">论坛推广</span></td></tr>
  15.   <tr><td align="center">
  16.    <div class="subtable outertxt option" style="width:500px;padding:8px 0px 0px 0px;align:center;height:27px!important;height:40px;">
  17.     <input type="button" class="button" value="注册推广" onclick=copyurl('reg_popularize') style="width:120px;text-align:center;margin:0px 63px;" />
  18.     <input type="button" class="button" value="访问推广" onclick=copyurl('vis_popularize') style="width:120px;text-align:center;margin:0px 63px;" />
  19.     <input type="hidden" id="reg_popularize" value="{$boardurl}?fromuid={$discuz_uid}"></input>
  20.     <input type="hidden" id="vis_popularize" value="{$boardurl}?fromuid={$discuz_uid}"></input>
  21.    </div>
  22.   </td></tr>
  23.   <tr><td align="center">点击按钮即可复制推广链接地址</td></tr>
  24.   </table>
  25. </div><br>
  26. <!--{/if}-->
复制代码
是推广连接可以放到任何位置
Discuz!7.0.0正式版发布时间
沙发啊。。。。。。。。。。。。。。。。。。

每次都看到虎哥兢兢业业 辛苦工作
并为你的技术的钦佩之情犹如黄河泛滥 一发不可收拾。。。

[ 本帖最后由 流星雪影 于 2007-1-9 08:59 编辑 ]
淘宝网上淘宝网ShangTaoBao.Com您的网上开店指导专家!!!
我的也加上了 呵呵 不过是帖子底部
http://www.027cool.com/bbs/index.php
淘宝网上淘宝网ShangTaoBao.Com您的网上开店指导专家!!!
把那段代码放到viewthread.htm就是在帖子页面了
Discuz!7.0.0正式版发布时间
占!               
 
好东西好东西好吖好东西.
 
看看猫猫....
简单实用非常好啊
啦啦
支持
http://is28.eb.cn
演示
前排支持,娃咔咔
返回列表