夜间模式
请选择 进入手机版 | 继续访问电脑版

BoonKiong.com2025™

人气 478

分享到 Facebook 的代码

文強已获得官方认证 2023-4-23 15:07



1、打开 template\default\common\header_common.htm ,查找·:

[CSS] 纯文本查看 复制代码
<meta http-equiv="MSThemeCompatible" content="Yes" />


在下边添加:

[CSS] 纯文本查看 复制代码
	<meta property="fb:app_id" content="#" />
        <!--{if false}-->OG META TAGS<!--{/if}-->
        $_G[tid]}-->
        <meta property="og:site_name" content="$_G['setting']['bbname']"/>
        <!--{if in_array('forum_viewthread', $_G['setting']['rewritestatus'])}-->
        <meta property="og:url" content="$_G[siteurl]thread-{$_G[tid]}-1-1.html"/>
        <!--{else}-->
        <meta property="og:url" content="$_G[siteurl]forum.php?mod=viewthread&tid=$_G[tid]"/>
        <!--{/if}-->
        <meta property="og:title" content="<!--{if !empty($navtitle)}-->$navtitle<!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname']<!--{/if}-->"/>
        <meta property="og:description" content="{if !empty($metadescription)}{echo dhtmlspecialchars($metadescription)} {/if}{if empty($nobbname)},$_G['setting']['bbname']{/if}" />
        <meta property="og:type" content="website" />
        
        <!--{eval $ogImageStop = false; $key = 0;}-->
        <!--{loop $postlist $post}-->
        <!--{loop $post['attachments'] $attachment}-->
        <!--{if $attachment['isimage']}-->
        <!--{eval $key++}-->
        <!--{if $key < 2}-->
        <meta property="og:image" content="$_G[siteurl]{$attachment['url']}{$attachment['attachment']}">
       <meta name="twitter:image"  content="$_G[siteurl]{$attachment['url']}{$attachment['attachment']}"/>
        <meta property="og:image:width" content="1200">
        <meta property="og:image:height" content="628">
        <!--{/if}-->
        <!--{eval $ogImageStop = true;}-->
        <!--{/if}-->
        <!--{/loop}-->
        <!--{/loop}-->
        <!--{/if}-->


2、到后台 → 营运\站点广告\论坛/群组 帖内广告 ,展现方式:代码

在广告 HTML 代码框里添加:

[CSS] 纯文本查看 复制代码
<a href="<a href="你的网站"    onclick="     window.open(
       'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href),
        'facebook-share-dialog', 
       'width=626,height=436'); 
     return false;"onclick="showWindow('sharethread', this.href, 'get', 0);" target="_blank" class="liks1" title=""><i><img src="facebook图标" alt="{lang thread_share}到 facebook" />Facebook</i></a>
<
您需要登录后才可以回帖 登录 | 立即注册

您还未登录

随手拍~~:

热门推荐~~:

论坛表情分享...

1、洋葱头 ...

Discuz! X3.5 解决小图标不显示的方法...

我发现大多数使用Discuz! X3.5 都有小图标不能显示的问题,提问的时候大家给的回答都是说跨域的问题, ...

如何在 discuz 帖子里添加 APlayer 音乐播...

1、首先将下边的 APlayer.css 和 APlayer.js 代码下载然后解压上传到服务器。 2、单曲音乐的代 ...

Discuz! 相关帖子功能修改随机显示不依赖标...

打开 sourcemoduleforumforum_viewthread.php 文件,查找: 换行添加: 再查找: 换行添 ...

Discuz! X3.5 手机版 logo 的路径...

打开以下的模板文件,搜索 logo_m.svg 1.template/default/touch/portal/index.htm 2.template/def ...

热度会员~~:

文強bkboonkiongadmin老谟深虑TaChuaekin海岛tiaoyaonanosifefei220088小甜天

免责声明~~:


本站内容来源于合作伙伴及网络搜集,版权归原作者所有。如有侵犯版权,请立刻和本站联系,我们将在三个工作日内予以改正。
Email:hsbk@hotmail.com

手机App~~:

服务与条款|隐私政策|免责声明|手机版|网站地图|友链申请| 文强阁

Powered by Discuz! X3.5|© 2001-2025 Discuz! Team. |本站总访问量已经运行: