½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
happycgi
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > PHP > PHP ¼Ò½ºÃ¢°í > Ŭ·¡½º ¹× ÇÔ¼ö > »çÀÌÆ®¿¡ ÆäÀ̽ººÏ(facebook) ÁÁ¾Æ¿ä(like) ¹öÆ° ´Þ±â »ó¼¼Á¤º¸
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
ASP
CSS
html
mysql
jquery
image
API
Mobile
¸Þ´º
slide
°Ô½ÃÆÇ
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
»çÀÌÆ®¿¡ ÆäÀ̽ººÏ(facebook) ÁÁ¾Æ¿ä(like) ¹öÆ° ´Þ±â
¼Ò½ºÅë°èÁ¤º¸ ¿À·ù½Å°í ¹× ¹®ÀÇ
ÇØÇÇÆÀ
³×ƼÁð
Æ®À§ÅÍ·Î º¸³»±â ÆäÀ̽ººÏÀ¸·Î º¸³»±â
¼Ò½ººÐ·ù Ŭ·¡½º ¹× ÇÔ¼ö
´Ù¿î·Îµå Ƚ¼ö 1 ȸ
°£´Ü¼³¸í »çÀÌÆ®¿¡ ÆäÀ̽ººÏ(facebook) ÁÁ¾Æ¿ä(like) ¹öÆ° ´Þ±â
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
ȨÆäÀÌÁö¹Ù·Î°¡±â µ¥¸ð ¹Ì¸®º¸±â ½ºÅ©·¦Çϱâ

ÆäÀ̽ººÏÀÇ ÁÁ¾Æ¿ä ¹öÆ°À» »çÀÌÆ® ³»¿¡ ´Ù´Â ¹ýÀ» ¾Ë·Áµå¸®°Ú½À´Ï´Ù.

¹æ¹ýÀº ¾ÆÁÖ °£´ÜÇÕ´Ï´Ù.
¾Æ·¡ ¼ø¼­´ë·Î µû¶ó¸¸ ÇÏ½Ã¸é µË´Ï´Ù.


1.
¸ÕÀú ¾Æ·¡ÀÇ ¸µÅ©¸¦ Ŭ¸¯ÇÕ´Ï´Ù.
¾Æ·¡ÀÇ ¸µÅ©´Â ÆäÀ̽ººÏ¿¡¼­ ÁÁ¾Æ¿ä ¹öÆ°À» ¸¸µé¾î ÁÖ´Â °÷ÀÔ´Ï´Ù.

https://developers.facebook.com/docs/reference/plugins/like/



Çϳª¾¿ ¼³¸í µå¸®¸é

URL to Like
ÁÁ¾Æ¿ä ¹öÆ°À» ´Þ »çÀÌÆ® ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ½Ã¸é µË´Ï´Ù.

Send Button(XFBML Only)
üũ ½Ã [ÁÁ¾Æ¿ä] ¹öÆ° ¿·¿¡ [º¸³»±â] ¹öÆ°ÀÌ »ý±é´Ï´Ù.

º¸³»±â ¹öÆ°Àº Ä£±¸³ª ±×·ì, À̸ÞÀÏ·Î ¸µÅ© ÁÖ¼Ò¸¦ º¸³¾¼ö ÀÖ´Â ±â´ÉÀÔ´Ï´Ù.

Layout Style
3°¡ÁöÀÇ ÁÁ¾Æ¿ä ¸ð¾çÀÌ ÀÖ½À´Ï´Ù. ¾Æ·¡ À̹ÌÁö¸¦ Âü°íÇϼ¼¿ä.

standard


button_count


box_count


Width
ÁÁ¾Æ¿ä ¹öÆ° °¡·Î ÆøÀ» ¼³Á¤ÇÕ´Ï´Ù. Àû´çÈ÷ µÎ½Ã¸é µË´Ï´Ù.

Show Faces
ÁÁ¾Æ¿ä ¹öÆ°À» Ŭ¸¯ÇÑ »ç¶÷ÀÇ ½æ³×ÀÏ »çÁøÀ» ÇÏ´Ü¿¡ Ç¥½ÃÇØÁÙ °ÍÀÎÁöÀÇ ¿©ºÎ¸¦ ¼³Á¤ÇÕ´Ï´Ù.

Verb to display
Like ¹öÆ° ¸»°í Ãßõ ¹öÆ°À» »ç¿ëÇϽǷÁ¸é üũ ÇÏ½Ã¸é µË´Ï´Ù.

 

Color Scheme
¹è°æÀ» ¾îµÓ°Ô ÇϽǷÁ¸é Dark ·Î ¼±ÅÃÇÏ½Ã¸é µË´Ï´Ù.

Font
ÆùÆ®´Â ÇÑ±Û ÁÁ¾Æ¿ä ¹öÆ°¿¡¼­´Â º¯°æÇϼŵµ º° Â÷À̸¦ ´À³¢±â Èûµå´Ï Âü°íÇÏ½Ã¸é µË´Ï´Ù.


¸ðµç ¿É¼ÇÀ» üũÇϼÌÀ¸¸é, °¡Àå ¾Æ·¡ Get Code ¸¦ Ŭ¸¯ ÇÕ´Ï´Ù.


2.

Get Code ¸¦ Ŭ¸¯ ÇÏ½Ã¸é ¾Æ·¡¿Í °°ÀÌ Äڵ尡 ³ªÅ¸³³´Ï´Ù.

 

1 ¹ø ¼Ò½º´Â °øÅëÀûÀÎ ºÎºÐ¿¡ ³ÖÀ¸½Ã¸é µÇ¸ç

2 ¹ø ¼Ò½º´Â ÁÁ¾Æ¿ä ¹öÆ°À» Ãß°¡ÇÏ°í ½ÍÀº À§Ä¡¿¡ ³ÖÀ¸½Ã¸é µË´Ï´Ù.


3.

°£´ÜÇÑ ¿¹·Î ±×´©º¸µå¿¡ [ÁÁ¾Æ¿ä] ¹öÆ°À» ´Þ¾Æº¸°Ú½À´Ï´Ù.

±×´©º¸µå¸¦ ¼³Ä¡ÇÑ ·çÆ® Æú´õ¿¡ º¸½Ã¸é

head.sub.php ÆÄÀÏÀÌ ÀÖ½À´Ï´Ù.
(²À! À§ÀÇ ÆÄÀϸ»°íµµ °øÅëÀ¸·Î Æ÷ÇԵǴ ÆÄÀÏ¿¡ Ãß°¡ÇØ Áּŵµ µË´Ï´Ù.)


ÇØ´ç ÆÄÀÏÀ» ¿­¾î

°¡Àå ¸¶Áö¸·ÁÙ¿¡ 1¹ø ¼Ò½º¸¦ Ãß°¡ÇØ ÁÖ½Ã¸é µË´Ï´Ù.

<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/ko_KR/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


±×¸®°í ÁÁ¾Æ¿ä ¹öÆ°Àº °Ô½ÃÆÇ ±Û ³»¿ë ¾Æ·¡ÂÊ¿¡ ³Ö¾îº¸µµ·Ï ÇÏ°Ú½À´Ï´Ù.

skin Æú´õ¿¡ º¸½Ã¸é ±âº» ½ºÅ²¿¡ Çѹø ³Ö¾îº¸°Ú½À´Ï´Ù.

skin / board / basic Æú´õ¿¡ º¸½Ã¸é

view.skin.php ÆÄÀÏÀ» ¿©½Ã¸é µË´Ï´Ù.

<!-- ³»¿ë Ãâ·Â -->
<span id="writeContents"><?=$view[content];?></span>


³»¿ë Ãâ·Â À̶ó´Â ºÎºÐÀÌ ÀÖ½À´Ï´Ù.
À§ÀÇ ¼Ò½º°¡ °Ô½Ã±ÛÀÇ ±Û ³»¿ëÀÌ ³ªÅ¸³ª´Â ºÎºÐÀÔ´Ï´Ù.
±Û ³»¿ë ¾Æ·¡ÂÊ¿¡ ÀûÀýÈ÷ µðÀÚÀÎÀ» ÇÏ¿©

<div class="fb-like" data-href="http://happycgi.com/gnuboard4/board.php?bo_table=<?= $_GET['bo_table'] ?>&wr_id=<?= $_GET['wr_id'] ?>" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true" data-font="arial"></div>

2¹ø ¼Ò½º¸¦ Ãß°¡ÇÏ¿© ÁÝ´Ï´Ù.


Áß¿ä!!!

¿©±â¼­ 2¹ø ¼Ò½º¸¦ º¸½Ã¸é data-href= ¿¡´Â µµ¸ÞÀÎ ÁÖ¼Ò¸¸ ÀÖÀ» °ÍÀÔ´Ï´Ù.
À§ÀÇ ¼Ò½º´ë·Î ÇÏ¸é »çÀÌÆ® Àüü¿¡ ÁÁ¾Æ¿ä °¡ Çϳª¸¸ Àû¿ë µË´Ï´Ù.

¿øÇÏ´Â °ÍÀº »çÀÌÆ® °¢ °Ô½Ã¹° ¸¶´Ù µû·Î ÁÁ¾Æ¿ä ¹öÆ°ÀÌ µ¿ÀÛÇØ¾ß ÇϹǷÎ

data-href= À» °¢ °Ô½Ã¹°·Î º¯°æÀ» ÇØÁÖ¼Å¾ß ÇÕ´Ï´Ù.

±×´©º¸µå °°Àº °æ¿ì
À§¿Í °°ÀÌ

data-href="http://happycgi.com/gnuboard4/board.php?bo_table=<?= $_GET['bo_table'] ?>&wr_id=<?= $_GET['wr_id'] ?>"

·Î º¯°æÇØ ÁÖ½Ã¸é µË´Ï´Ù.

±âŸ °Ô½ÃÆÇÀ̳ª °¢ »óÇ°µî¿¡ °íÀ¯ÀÇ number °ªÀÌ ÀÖÀ»Å×´Ï
ÇØ´ç number °ªÀ¸·Î ÁÁ¾Æ¿ä ¹öÆ° ¼Ò½º¸¦ ±¸ºÐ Áþµµ·Ï ¼öÁ¤ÇØ ÁÖ½Ã¸é µÇ°Ú½À´Ï´Ù.


³×ƼÁð ÀÇ°ß   ÀÌ¿ëÇϽŠÀÚ·áÀÇ Èı⸦ ÀÚÀ¯·Ó°Ô ÀÛ¼ºÇϼ¼¿ä. (»ó¾÷ÀûÀÎ ±¤°í ¹× µµ¹è¼º ±Û µîÀº »çÀüÅ뺸¾øÀÌ »èÁ¦µÉ ¼ö ÀÖ½À´Ï´Ù.)
³»¿ë ¾ÆÀ̵ð ÀÇ°ß³²±â±â
:¿ÕÇÏÇÏ: :³×¸Â¾Æ¿ä: :Àá¿Í:
2014-06-06 19:35:04
asdfadsf
Âù¼º 65
¹Ý´ë 70
1
À̸§
³»¿ë
:³×¸Â¾Æ¿ä: :È­³ª´Â±º¿ä: :Àá¿Í: :¿ì¿ïÇØ: :À̰ǾƳÄ: :¿ÕÇÏÇÏ: ¿Õ¿ôÀ½~ ³î·¥~
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
µµ¹è¹æÁöÅ°
 42334913 º¸ÀÌ´Â µµ¹è¹æÁöÅ°¸¦ ÀÔ·ÂÇϼ¼¿ä.