Mod Google Plus one +1 button
สวัดดีครับวันนี้ก่อมานำเสนอ วิธีการเพิ่ม ปุ่ม +1 ของ Google http://1.bp.blogspot.com/-7tYO0l0PzsE/TexUeL4QUPI/AAAAAAAAC4k/GvXicDjNcvs/blogger-google-plus-one-002.pngมาเริ่มกันเลยดีกว่า
1. ไปที่ youdomain.xxx/template/default/forum/ หรือyoudomain.xxx/template/สกินที่คุณใช้/forum
. แล้วไปที่ viewthread_node.htm ให้ทำการดาวโหลดมาลงที่เครื่อง แล้วกดคลิกขวาเลือก open with
> แล้วเลือก notepad หรือ notepad++ สำหรับคนที่มี
2. เมื่อเปิดไฟล์มาแล้วค้นหาโค๊ดต่อไปนี้<!--{if !empty($lastmod['modaction'])}--><div class="modact"><a href="forum.php?mod=misc&action=viewthreadmod&tid=$_G" title="{lang thread_mod}" onclick="showWindow('viewthreadmod', this.href)">{lang thread_mod_by}</a></div><!--{/if}-->
3.เมื่อเจอแล้ว นำโค๊ดนี้ไปไว้ด้านล่าง<!-- Place this tag where you want the +1 button to render -->
<g:plusone size="medium"></g:plusone>
<!-- Place this tag after the last plusone tag -->
<script type="text/javascript">
window.___gcfg = {lang: 'th'};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script'); s.parentNode.insertBefore(po, s);
})();
</script>
4.กด save อัพลงเว็บ อัพเดท แคช สงสัยตรงไหนสอบถามได้ในนี้เลยครับ หรือหน้าแชท ^^
ไวจริงนะ
ขอบคณครับ ^_^sm945dzsm945dz ขอบคุณค่ะ แล้วมันจะต่างจากปลั๊กอินที่มีแจกอยู่แล้วใหมค่ะ ่น่ารักที่ซู๊ด... ขอบคุณค่ะ
หน้า:
[1]