Difference between revisions of "เพิ่ม Bookmark Bar ในหน้ากระทู้ phpWind"

From P&T Knowledgebase
Jump to navigation Jump to search
(Created page with "Category:PhpWind 1.แก้ไขได้ที่ไฟล์ '''template/wind/read.htm''' 2.เสิร์ซหาโค๊ดก้อนนี้ <div id="checku...")
 
Line 26: Line 26:
 
   
 
   
 
  &lt;li class="smallfont" style="width:25%; min-width:160px; float:left; margin-top:6px"&gt;
 
  &lt;li class="smallfont" style="width:25%; min-width:160px; float:left; margin-top:6px"&gt;
  &lt;iframe src="http://www.facebook.com/plugins/like.php?href&amp;layout=button_count&amp;show_faces=true&amp;width=450&amp;action=like&amp;font&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"&gt;&lt;/iframe&gt;
+
  &lt;script src=&quot;http://connect.facebook.net/en_US/all.js#xfbml=1&quot;&gt;&lt;/script&gt;&lt;fb:like href=&quot;&quot; layout=&quot;button_count&quot; show_faces=&quot;false&quot; width=&quot;100&quot; action=&quot;recommend&quot; font=&quot;&quot;&gt;&lt;/fb:like&gt;
 
  &lt;/li&gt;
 
  &lt;/li&gt;
 
   
 
   

Revision as of 21:01, 29 March 2011

1.แก้ไขได้ที่ไฟล์ template/wind/read.htm

2.เสิร์ซหาโค๊ดก้อนนี้

<div id="checkurl" class="menu menu-post" style="display:none;">
	<div class="menu-b tac">
		<table width="280" cellspacing="0" cellpadding="0">
			<tr>
				<th class="h" colspan="2"><span id="suburl">$db_bbsurl</span></th>
			</tr>
			<tr>
				<td colspan="2">เช็คลิงก์ออก คุณแน่ใจแล้วหรือที่จะเข้าชมไซต์นี้</td>
			</tr>
			<tr>
				<td><a href="" target="_blank" onclick="closep();" id="trueurl">เข้าชมเว็บนี้</a></td>
				<td><a href="javascript:;" onclick="closep();">คลิกปิด</a></td>
			</tr>
		</table>
	</div>
</div>

3.เติม code html ของกล่อง Bookmark ที่ต้องการลงไป, ตัวอย่าง HTML

<table cellpadding="6" cellspacing="1" border="0" width="100%" class="tborder" align="center" style="margin:16px 0;"> <tbody><tr> <td class="thead h">Bookmarks</td> </tr> 
<tr class="vt"><td class="alt2" style="padding-top:0px"><div style="clear:both"></div>
<ul style="list-style-type:none; margin:0px; padding:0px">

<li class="smallfont" style="width:25%; min-width:160px; float:left; margin-top:6px">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1%22></script><fb:like href="" layout="button_count" show_faces="false" width="100" action="recommend" font=""></fb:like>
</li>

<li class="smallfont" style="width:25%; min-width:160px; float:left; margin-top:6px">
<!-- Compact Button -->
<a class="DiggThisButton DiggCompact"></a>
<script type="text/javascript">
(function() {
var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://widgets.digg.com/buttons.js';
s1.parentNode.insertBefore(s, s1);
})();
</script>
</li>

<li class="smallfont" style="width:25%; min-width:160px; float:left; margin-top:6px">
<img src="delicious.small.gif" height="10" width="10" alt="Delicious" />
<a href="http://www.delicious.com/save" onclick="window.open('http://www.delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false;"> Bookmark this on Delicious</a>
</li>

<li class="smallfont" style="width:25%; min-width:160px; float:left; margin-top:6px">
<script src="http://www.stumbleupon.com/hostedbadge.php?s=2"></script>
</li>

</ul><div style="clear:both"></div></td> </tr> </tbody></table>