開啟

template/default/forum/viewthread_node.htm,查詢:

  • <!--{if $post['invisible'] == 0}-->
  • <!--{if $post['first'] && $_G[uid] && $_G[uid] == $post[authorid]}-->
  • <a
    href="misc.php?mod=invite&action=thread&id=$_G[tid]"
    onclick="showWindow('invite', this.href, 'get', 0);">{lang
    invite}</a>
  • <!--{/if}-->

上面新增:(注意上面有個<p>)

 

  • <img
    src="http://v.t.qq.com/share/images/s/weiboicon16.png"
    align="absmiddle"/> <a href=""
    onclick="postToWb();"
    style="height:16px;font-size:12px;line-height:16px;"> 轉播到騰訊微博</a&
    gt;<script type="text/javascript">
  •         function postToWb(){
  •                 var _t = encodeURI(document.title);
  •                 var _url = encodeURIComponent(document.location);
  •                 var _appkey = encodeURI("39d5fc64bfd54c7b9507f846debda0f4");//你從騰訊獲得的 appkey
  •                 var _pic = encodeURI('');//(例如:var _pic='圖片 url1|圖片 url2|圖片 url3....)
  •                 var _site = 'http://www.yudi.tk/';//你的網站地址
  •                 var _u =
    'http://v.t.qq.com/share/share.php?title='+_t+'&url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic;
  •                 window.open( _u,'', 'width=700, height=680,
    top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes,
    resizable=no, status=no' );
  •         }
  • </script>

申請 AppKey 的辦法:

  1. 如需在騰訊微博顯示來源,需向騰訊官方申請 AppKey 。請透過郵件形式申請,傳送以下資訊:
  2. 1. 網站名稱;
  3. 2. 應用場景簡述;
  4. 3. 域名;
  5. 4. 需要顯示的來源欄位。
  6. 至郵箱 api_weibo@tencent.com,透過稽核後我們會郵件回覆 AppKey 。
  7. 說明:為了保證頁面顯示效果,請提供相對簡潔的來源欄位,不超過 8 個漢字。來源欄位將在申請成功後 1-2 個工作日內生效。