bayyuPratama Posted February 25, 2014 Share Posted February 25, 2014 excuse me,..can anyone tell me how to set custom block and facebook social plugin for every page? like footer,.. thanks Link to comment Share on other sites More sharing options...
prestamax Posted February 25, 2014 Share Posted February 25, 2014 Where do you want to place it? The custom cms block can be hooked to the footer only. 1 Link to comment Share on other sites More sharing options...
DevNet Posted February 25, 2014 Share Posted February 25, 2014 Hi, If it's for all page, it's simply to put your script directly in the footer.tpl of your custom theme. Regards 1 Link to comment Share on other sites More sharing options...
vekia Posted February 25, 2014 Share Posted February 25, 2014 hello you already use some modules with: - social facebook like box plugin - custom html content block ? or you just looking for these modules? 1 Link to comment Share on other sites More sharing options...
bayyuPratama Posted February 25, 2014 Author Share Posted February 25, 2014 @prestamax and @devnet , yes i want to set in the footer, where i can find footer.tpl ? @vekia , what i must use custom html content block module? Link to comment Share on other sites More sharing options...
DevNet Posted February 25, 2014 Share Posted February 25, 2014 @prestamax and @devnet , yes i want to set in the footer, where i can find footer.tpl ? In your theme folder ./themes/[theme]/footer.tpl Regards Link to comment Share on other sites More sharing options...
bayyuPratama Posted February 25, 2014 Author Share Posted February 25, 2014 In your theme folder ./themes/[theme]/footer.tpl Regards must i call blockfacebook.tpl at footer.tpl? please help me with the script ? thanks Link to comment Share on other sites More sharing options...
vekia Posted February 25, 2014 Share Posted February 25, 2014 let's clarify. i have no idea what method you want to use you want to modify core of the template files, or you want to achieve it with modules? depending on what method you will use, we will help just clarify this one thing please Link to comment Share on other sites More sharing options...
bayyuPratama Posted February 25, 2014 Author Share Posted February 25, 2014 let's clarify. i have no idea what method you want to use you want to modify core of the template files, or you want to achieve it with modules? depending on what method you will use, we will help just clarify this one thing please i want to modify core of the template files, please help me? thanks vekia Link to comment Share on other sites More sharing options...
vekia Posted February 25, 2014 Share Posted February 25, 2014 ok, so in this case instead of installing modules, follow DevNet suggestions, i mean open file: footer.tpl from your theme directory path should looks like: /themes/YOUR_THEME/footer.tpl where YOUR_THEME is a name of your theme that you currently use in shop. Link to comment Share on other sites More sharing options...
bayyuPratama Posted February 25, 2014 Author Share Posted February 25, 2014 ok, so in this case instead of installing modules, follow DevNet suggestions, i mean open file: footer.tpl from your theme directory path should looks like: /themes/YOUR_THEME/footer.tpl where YOUR_THEME is a name of your theme that you currently use in shop. yes, i did it vekia and then what must i do ? Link to comment Share on other sites More sharing options...
vekia Posted February 26, 2014 Share Posted February 26, 2014 just enter there own content with custom block, and with social widget https://developers.facebook.com/docs/plugins/like-box-for-pages/ Link to comment Share on other sites More sharing options...
bayyuPratama Posted February 27, 2014 Author Share Posted February 27, 2014 just enter there own content with custom block, and with social widget https://developers.facebook.com/docs/plugins/like-box-for-pages/ oke vekia, thanks,.. and how to get the custom block code? Link to comment Share on other sites More sharing options...
vekia Posted February 27, 2014 Share Posted February 27, 2014 you have to create it by yourself <div class="myblock"> my block </div> then you can stylize it with css styles for example .myblock{ display:inline-block; float:left; width:200px; height:400px; background:red; color:#FFF; } 1 Link to comment Share on other sites More sharing options...
bayyuPratama Posted February 27, 2014 Author Share Posted February 27, 2014 you have to create it by yourself <div class="myblock"> my block </div> then you can stylize it with css styles for example .myblock{ display:inline-block; float:left; width:200px; height:400px; background:red; color:#FFF; } i must create new block? i can not copy code from the custom cms information block to the footer.tpl ? Link to comment Share on other sites More sharing options...
vekia Posted February 27, 2014 Share Posted February 27, 2014 it doesnt matter how you will achieve it, just create own code to display own block, no matter how Link to comment Share on other sites More sharing options...
bayyuPratama Posted February 28, 2014 Author Share Posted February 28, 2014 it doesnt matter how you will achieve it, just create own code to display own block, no matter how thanks vekia. its very helpful Link to comment Share on other sites More sharing options...
vekia Posted February 28, 2014 Share Posted February 28, 2014 if you aren't quite sure what code to use - let me know about your code, just paste it here, i will try it on my own and fix it for potential problems Link to comment Share on other sites More sharing options...
bayyuPratama Posted February 28, 2014 Author Share Posted February 28, 2014 if you aren't quite sure what code to use - let me know about your code, just paste it here, i will try it on my own and fix it for potential problems oke vekia , a have a problem, the facebook plugin cannot show for every page, just show in the home,.. this is code footer.tpl (i am sorry, my english is not good) {if !$content_only} </div> <!-- #center_column --> {if isset($right_column_size) && !empty($right_column_size)} <div id="right_column" class="col-xs-12 col-sm-3 column"> {$HOOK_RIGHT_COLUMN} </div> {/if} </div> <!-- .row --> </div> <!-- #columns --> </div> <!-- .columns-container --> <!-- Footer --> <div class="footer-container"> <div class="container"> <footer id="footer" class="row"> {$HOOK_FOOTER} <br> <br> <div class="fb-like-box" data-href="https://www.facebook.com/pages/BALU-OTO-WORK/149809748421638?fref=ts" data-colorscheme="light" data-show-faces="true" data-header="false" data-stream="false" data-show-border="true"> </div> </footer> <br><br> <p>Powered by <a href="#"> BaluTeam</a><br> Copyright © 2014 BALU ONLINE SHOP. All rights reserved.</p> </div> </div> <!-- .footer-container --> </div> <!-- #page --> {/if} </body> </html> Link to comment Share on other sites More sharing options...
vekia Posted February 28, 2014 Share Posted February 28, 2014 hello so, this is code that you added: <div class="fb-like-box" data-href="https://www.facebook...8421638?fref=ts" data-colorscheme="light" data-show-faces="true" data-header="false" data-stream="false" data-show-border="true"> </div> am i right? Link to comment Share on other sites More sharing options...
bayyuPratama Posted February 28, 2014 Author Share Posted February 28, 2014 (edited) hello so, this is code that you added: <div class="fb-like-box" data-href="https://www.facebook...8421638?fref=ts" data-colorscheme="light" data-show-faces="true" data-header="false" data-stream="false" data-show-border="true"> </div> am i right? yes vekia, you are right ,.. how i can solve my problem? Edited February 28, 2014 by bayyuPratama (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted February 28, 2014 Share Posted February 28, 2014 and what about other code necessary for this type of like box? Link to comment Share on other sites More sharing options...
bayyuPratama Posted March 3, 2014 Author Share Posted March 3, 2014 and what about other code necessary for this type of like box? i need code to show like box for every page,.. i add code "like box" to footer.tpl, but "like box" just show at the www.domain.com not the every page ,..? Link to comment Share on other sites More sharing options...
vekia Posted March 3, 2014 Share Posted March 3, 2014 hello but you used code based on html5 probably, you have to use also other code before/ right after <body> tag to include js libraries Link to comment Share on other sites More sharing options...
bayyuPratama Posted March 6, 2014 Author Share Posted March 6, 2014 hello but you used code based on html5 probably, you have to use also other code before/ right after <body> tag to include js libraries which files should be include js libraries? Link to comment Share on other sites More sharing options...
vekia Posted March 6, 2014 Share Posted March 6, 2014 let's clarify a little on facebook developers page, where you can define likebox code, Link to comment Share on other sites More sharing options...
bayyuPratama Posted March 6, 2014 Author Share Posted March 6, 2014 let's clarify a little on facebook developers page, where you can define likebox code, yes vekia,i use code from HTML5 ,.. am i wrong? Link to comment Share on other sites More sharing options...
vekia Posted March 6, 2014 Share Posted March 6, 2014 no, its ok, but read what you see below i mean this: Link to comment Share on other sites More sharing options...
bayyuPratama Posted March 7, 2014 Author Share Posted March 7, 2014 (edited) no, its ok, but read what you see below i mean this: I am confused on which file should be put, should I put in the index? Edited March 7, 2014 by bayyuPratama (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted March 7, 2014 Share Posted March 7, 2014 in header.tpl file paste this code between literal tags: {literal} CODE HERE {/literal} paste it right after <body> Link to comment Share on other sites More sharing options...
bayyuPratama Posted March 7, 2014 Author Share Posted March 7, 2014 Okay, this problem has been resolved, thank you very much vekia ,.. and then, i have other problem http://www.prestashop.com/forums/topic/311745-ask-show-product-with-4-column-at-the-categories/?do=findComment&comment=1577412 Link to comment Share on other sites More sharing options...
vekia Posted March 7, 2014 Share Posted March 7, 2014 ok, im going to mark this thread as solved thank you for your patience im going to check your another topics with regards Milos Link to comment Share on other sites More sharing options...
bayyuPratama Posted March 7, 2014 Author Share Posted March 7, 2014 ok, im going to mark this thread as solved thank you for your patience im going to check your another topics with regards Milos oke, you're welcome ,.. Link to comment Share on other sites More sharing options...
Recommended Posts