elpanda13 Posted November 11, 2013 Share Posted November 11, 2013 Hi,So i installed a plugin in a wordpress blog that had the option to actually use the same "plugin" in any website, (the plugin is the facebook lightbox promoter premium plugin). My question is: how could i adapt this code (which is the one you should use for external pages): <!-- begin facebook page promoter lightbox --> <script>var lb_l_ret = {"fb_id":"649923795034573","appid":"370706146385249","website":"http:\/\/fioridiloto.be-openminded.com","show_once":"0","delay":"3000","mab":"","facebookheader":"","fblocale":"it_IT","width":"500","height":"360","overlaycolor":"#A12083","overlayop":"0.7","extracss":"background:#FFFFFF;","fbcolorscheme":"light","hideonlike":"1","connect":"1","cmessage":"Sei gia' una fan?","gaevent":"","mobile":"1","loggedin":"","jqueryneed":"","noconflict":""}; </script><link rel='stylesheet' type='text/css' media='all' href='http://fioridiloto.be-openminded.com/ffpl-js/facebook-lightbox.css' /><script src='http://fioridiloto.be-openminded.com/ffpl-js/facebook-lightbox.js'></script> <!-- end facebook page promoter lightbox --> into the header of prestashop (or somewhere else), for it to work (i know if i just insert it, the page will just crash or won't show what it's supposed to)if it's impossible, could you recommend me a (preferably free) module that does the same thing as this plugin? (it's a pop-up facebook likebox) Thanks in advance, for your help. Link to comment Share on other sites More sharing options...
vekia Posted November 11, 2013 Share Posted November 11, 2013 hello open header.tpl file located in your theme directory and paste this code into the <head></head> section you code above use brackets { } so you need to use {literal}{/literal} tags 1 Link to comment Share on other sites More sharing options...
elpanda13 Posted November 13, 2013 Author Share Posted November 13, 2013 So the code would be like: <head> -------------code ------------------code-------- . . . {literal} <!-- begin facebook page promoter lightbox --> <script>var lb_l_ret = {"fb_id":"649923795034573","appid":"370706146385249","website":"http:\/\/fioridiloto.be-openminded.com","show_once":"0","delay":"3000","mab":"","facebookheader":"","fblocale":"it_IT","width":"500","height":"360","overlaycolor":"#A12083","overlayop":"0.7","extracss":"background:#FFFFFF;","fbcolorscheme":"light","hideonlike":"1","connect":"1","cmessage":"Sei gia' una fan?","gaevent":"","mobile":"1","loggedin":"","jqueryneed":"","noconflict":""}; </script><link rel='stylesheet' type='text/css' media='all' href='http://fioridiloto.be-openminded.com/ffpl-js/facebook-lightbox.css' /><script src='http://fioridiloto.be-openminded.com/ffpl-js/facebook-lightbox.js'></script> <!-- end facebook page promoter lightbox --> {/literal} </head> right? Link to comment Share on other sites More sharing options...
vekia Posted November 13, 2013 Share Posted November 13, 2013 So the code would be like: right? that's correct 1 Link to comment Share on other sites More sharing options...
elpanda13 Posted November 13, 2013 Author Share Posted November 13, 2013 (edited) Thank you very much! i tried it and it worked perfectly!, so is this all you have to do to add simple html code to the prestashop theme header? to add the literal tag?, i know this is a litte bit off-topic but where can i get this kind of information? does prestashop have some guide or something?and how can i mark this thread as solved? Edited November 13, 2013 by elpanda13 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 13, 2013 Share Posted November 13, 2013 hello i know this is a litte bit off-topic but where can i get this kind of information? does prestashop have some guide or something? it's not related to prestashop, it's a SMARTY, smarty is a template engine http://www.smarty.net/ you need to follow smarty standards to mark topic as solved: [sOLVED] TopicIf, after posting a topic, you find a solution to your problem, please indicate it in your post and describe the solution.Furthermore if you are the author of the topic for which a solution has been found, please edit your topic title to mark it as [sOLVED].To mark a topic as [solved] :- Edit the first post of your topic by clicking on the "Edit" button,- Click on the "Use full editor" button,- Add the "[solved]" string at the beginning of your topic title and click on the "Submit Modified Post" button. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now