1. Upload the folder "fancybox" to forum root directory.
2. In Admin CP, Go to Style Manager --> Choose style --> Edit template --> "header" file
3. Add the following code at the top of the header file. Remember to change domain address and "fb_id with facebook page ID". Recommended to use CDN(Content Delivery Network) for pulling js & css files.
<!-- Facebook fancybox -->
<link rel='stylesheet' href='/fancybox/scs.css' type='text/css' media='all' />
<script type='text/javascript' src='/fancybox/jquery.js'></script>
<script type='text/javascript' src='/fancybox/scs.js'></script>
<script type='text/javascript' src='/fancybox/launch.js'></script>
<script type='text/javascript'>
var lb_l_ret = {"fb_id":"202949229819601","display_on_post":"1","show_once":"15","delay":"15000","display_on_page":"","fancybox":"","display_on_homepage":"","facebookheader":"","gaevent":"","eam":"","display_on_archive":"","hideonlike":""};
</script>
<!-- End of Facebook fancybox -->
4. To change the timing of inline facebook pop up, modify "delay":"15000" entry with necessary value. 1000 = 1 second. Here value 15000 means displaying the facebook pop up after 15 seconds.
Avoid using less than 5 to 10 seconds, who bothers to LIKE your facebook page without knowing you. Optimal & user friendly - 15/20/30 seconds.
* Chý ý: Cách lấy ID của trang Facebook
- Vào trang facebook của bạn (VD: https://www.facebook.com/kenhdaihoccom)
- Chọn "Chỉnh sửa trang" -->Quản trị viên
- Bạn sẻ thấy link dạng (https://www.facebook.com/pages/edit/?id=202949229819601&sk=admin)
Không có nhận xét nào:
Đăng nhận xét