Poland
|
Edited by kaaleth at 2012-11-16 20:03
Nice. I tested this same plugin and this is my "vision":
1. Go to template\default\common\header.htm
2. Find (#34 line):
- <body id="nv_{$_G[basescript]}" class="pg_{CURMODULE}{if $_G['basescript'] === 'portal' && CURMODULE === 'list' && !empty($cat)} {$cat['bodycss']}{/if}" onkeydown="if(event.keyCode==27) return false;">
Copy the Code After this, add:
- <!-- facebook comment -->
- <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/pl_PL/all.js#xfbml=1";
- fjs.parentNode.insertBefore(js, fjs);
- }(document, 'script', 'facebook-jssdk'));</script>
- <!-- /facebook comment -->
Copy the Code 3. Save and clear template cache.4. Go to Extensions -> Site Advertising -> and choose one option (for example Forum/Group interthread)
5. Add new adv type and fill fields like you want.
6. For last field named as "code" add:
- <div class="fb-comments" data-href="http://localhost/dx25" data-num-posts="2" data-width="700"></div>
Copy the Code
Replace http://localhost/dx25 as your site and thats all! Additionality you can modyfiy width of div. If you want to get own code, go to facebook developer section.
Demo:
|
This post contains more resources
You have to Login for download or view attachment(s). No Account? Register
x
|