Jump to content

Recommended Posts

hi there,

 

I like to add custom css class and cusotom js class, so I add without problem in autoload theme/folders and it works but my code dosen't work in the end as result, i think head of document dosen't see functions of javascript, this is example :

 

      <script type="text/javascript">
            $(document).ready(function() {
                $(window).scroll(function(){
                    $('*[class^=prlx]').each(function®{
                        var pos = $(this).offset().top;
                        var scrolled = $(window).scrollTop();
                        $('*[class^=prlx]').css('top', -(scrolled * 0.5) + 'px');            
                    });
                });
            });
        </script>

 

 

thx

Share this post


Link to post
Share on other sites
  • Replies 591
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Prestashop HTML Box module --- for free --- works with: 1.2.x + 1.3.x. + 1.4.x + 1.5.x + 1.6.x + 1.7.x   This module is great tool for adding to your shop widgets created by other

yes you can, today I will write tutorial how to add a free image slider with this module

module has been improved to version 1.2   This update improved the interpretation of the characters you have used in your code, such as the ENTER (newline) were changed <br/> marker which caus

Posted Images

  • 3 weeks later...

Hi erveryone, sorry about my english speling

 

I have issue with html box. I have an adsense code. after put it inside html box module nothing appear in front page? 

 

somebody can help me?

 

Here is my adsense code 

 

<script async src="//pagead2. googlesyndication.com/pagead/ js/adsbygoogle.js"></script>
<script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-xxxxxxxxxxxxxxxxxxx",
    enable_page_level_ads: true
  });
</script>
Edited by eyidival (see edit history)

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Hi,

 

when i applicated the module i have a 500 page with this error page:


Whoops, looks like something went wrong.
1/1 ContextErrorException in smarty_internal_templatebase.php(157) : eval()'d code line 68: Notice: Undefined index: page_name

    in smarty_internal_templatebase.php(157) : eval()'d code line 68
    at ErrorHandler->handleError('8', 'Undefined index: page_name', '/home/xzave/www/csp/vendor/prestashop/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code', '68', array('_smarty_tpl' => object(Smarty_Custom_Template))) in smarty_internal_templatebase.php(157) : eval()'d code line 68
    at content_58b6b12953bbd5_26188712(object(Smarty_Custom_Template)) in smarty_internal_templatebase.php line 188
    at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, true, false) in SmartyCustom.php line 317
    at Smarty_Custom_Template->fetch() in Module.php line 2217
    at ModuleCore->display('/home/xzave/www/csp/modules/htmlbox/htmlbox.php', 'html.tpl') in htmlbox.php line 514
    at htmlbox->hookheader(array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '5')) in Hook.php line 758
    at HookCore::coreCallHook(object(htmlbox), 'hookHeader', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '5')) in Hook.php line 725
    at HookCore::exec('displayHeader') in FrontController.php line 528
    at FrontControllerCore->initContent() in IndexController.php line 37
    at IndexControllerCore->initContent() in Controller.php line 201
    at ControllerCore->run() in Dispatcher.php line 366
    at DispatcherCore->dispatch() in index.php line 28


i don't understand because i have clear cache reinstall the module hook on header,

 

the module version is 1.6.5 for PS 1.7

 

thanks in advance,

 

Ornot

Share this post


Link to post
Share on other sites

 

Hi erveryone, sorry about my english speling

 

I have issue with html box. I have an adsense code. after put it inside html box module nothing appear in front page? 

 

somebody can help me?

 

Here is my adsense code 

 

<script async src="//pagead2. googlesyndication.com/pagead/ js/adsbygoogle.js"></script>
<script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-xxxxxxxxxxxxxxxxxxx",
    enable_page_level_ads: true
  });
</script>

 

 

if you want to use <script></script> tags remember to disable html purifier 

Edited by juweeltje5 (see edit history)

Share this post


Link to post
Share on other sites

i released new version of this free module

- added improvements related to prestashop 1.7.x

- module identifies logged / unlogged customers properly now

- module idientifies 'homepage' properly now

  • Like 1

Share this post


Link to post
Share on other sites

i released new version of this free module

- added improvements related to prestashop 1.7.x

- module identifies logged / unlogged customers properly now

- module idientifies 'homepage' properly now

 

Hard at work as usual, Vekia! :)

Share this post


Link to post
Share on other sites

Hi,

 

when i applicated the module i have a 500 page with this error page:


Whoops, looks like something went wrong.
1/1 ContextErrorException in smarty_internal_templatebase.php(157) : eval()'d code line 68: Notice: Undefined index: page_name

    in smarty_internal_templatebase.php(157) : eval()'d code line 68
    at ErrorHandler->handleError('8', 'Undefined index: page_name', '/home/xzave/www/csp/vendor/prestashop/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code', '68', array('_smarty_tpl' => object(Smarty_Custom_Template))) in smarty_internal_templatebase.php(157) : eval()'d code line 68
    at content_58b6b12953bbd5_26188712(object(Smarty_Custom_Template)) in smarty_internal_templatebase.php line 188
    at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, true, false) in SmartyCustom.php line 317
    at Smarty_Custom_Template->fetch() in Module.php line 2217
    at ModuleCore->display('/home/xzave/www/csp/modules/htmlbox/htmlbox.php', 'html.tpl') in htmlbox.php line 514
    at htmlbox->hookheader(array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '5')) in Hook.php line 758
    at HookCore::coreCallHook(object(htmlbox), 'hookHeader', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '5')) in Hook.php line 725
    at HookCore::exec('displayHeader') in FrontController.php line 528
    at FrontControllerCore->initContent() in IndexController.php line 37
    at IndexControllerCore->initContent() in Controller.php line 201
    at ControllerCore->run() in Dispatcher.php line 366
    at DispatcherCore->dispatch() in index.php line 28


i don't understand because i have clear cache reinstall the module hook on header,

 

the module version is 1.6.5 for PS 1.7

 

thanks in advance,

 

Ornot

 

hello

update module to version 1.6.6

it should be fine then

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Will this work good on 1.6.1.10 ? And are all the download links throughout this topic all up to date ? I could really use something like this!

Thank you!

 

it works with each release of 1.6.x,

official website of this free module always contains up to dated version of the module,

the second source is the first post in this topic 

  • Like 1

Share this post


Link to post
Share on other sites

Hi Vekia.

 

First: THANK YOU, THANK YOU, THANK YOU for such a great module. We really appreciate it-- especially to offer a free version.

 

I have one small problem that I hope you can help me with.

 

On full screen view on my laptop computer, your module looks great ("SHOP BY PRODUCT" in image below).

 

However, when I minimize my screen to see what it would look like on a mobile device, the arrow next to the module (SHOP BY PRODUCT) is not clickable, meaning that the dropdown menu to show the links does not work. (Photo #2).

 

Is there some html I can insert into your module to make the dropdown menu work when the screen is small?

 

Thank you very much.

 

e9avs2.png

 

23u9190.png

 

Share this post


Link to post
Share on other sites

Hi Vekia.

 

First: THANK YOU, THANK YOU, THANK YOU for such a great module. We really appreciate it-- especially to offer a free version.

 

I have one small problem that I hope you can help me with.

 

On full screen view on my laptop computer, your module looks great ("SHOP BY PRODUCT" in image below).

 

However, when I minimize my screen to see what it would look like on a mobile device, the arrow next to the module (SHOP BY PRODUCT) is not clickable, meaning that the dropdown menu to show the links does not work. (Photo #2).

 

Is there some html I can insert into your module to make the dropdown menu work when the screen is small?

 

Thank you very much.

 

e9avs2.png

 

23u9190.png

 

 

this is not a problem with module, its a matter of code that you use

it looks like some other element overlapping the arrow, so in effect it is not clickable.

Share this post


Link to post
Share on other sites

Hi Vekia,
First thanks for the great module. I am using it for a few years now. Today I upgraded from 1.6.1 to 1.6.1.12 and went to a new server running PHP 7.0. After that the module won't show some images anymore. If I right-click on the missing images and open the image link they show fine. I am not sure wether the problem is in the module or php7 or some where else.
Link is: https://chinarello.nl

Also is it not possible to start the tinymce editor in the backoffice. Clicking the on/off buttons next to "rich text editor" does nothing.

 

Thanks,

Roger 

 

Edit: I have a test server running on the old server with PHP56. It has the same config but is showing the images and the editor. So it seems to be a problem with php7 or something else on the new server.

Edited by 'Woger (see edit history)

Share this post


Link to post
Share on other sites
  • 3 weeks later...

Hi Vekia,

 

I am trying to implement Push Notification using this module but somehow it isn't working.

 

I have pasted the code in the header area and have also disabled the HTML purifier.

 

The code is <script type="text/javascript" id="infv_main" values="web=tbt&sourceName=website&domainURL=https://thebanyantee.com/home2/" src="https://www.informvisitors.com/resources/mainDedicated.js"></script>

 

Could you please help me out with it?

  • Like 1

Share this post


Link to post
Share on other sites

Hi, to allow different font in my template, I would like to add the following code to the header position:

 

<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Playfair+Display:400,700" rel="stylesheet">

 

The problem is, it keeps getting removed by HTML box editor.

Any way around this?

ps. I have html purifier off and allow iframes.

 

Thanks

Edited by web-design-milano (see edit history)

Share this post


Link to post
Share on other sites

Hi, wonderful module!! Is there any way to use it more than once? Or is there a Pro version that can do this? If so, where to get this? :)

 

hello

pro version is available here:

https://www.prestashop.com/forums/topic/189375-module-html-box-pro-put-the-code-anywhere-you-want/

it has a lot of features and you can create unlimited number of blocks

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Hi Vekia,

 

When I click save button it returns 404. My guess is it's due to MOD Security in the hosting.

 

For the time being, how can I edit it from phpmyadmin? What table do I need to look at? Thanks.

Edited by Ben90 (see edit history)

Share this post


Link to post
Share on other sites
  • 2 weeks later...

 

Prestashop HTML Box module

--- for free ---

works with: 1.2.x + 1.3.x. + 1.4.x + 1.5.x + 1.6.x + 1.7.x

This module is great tool for adding to your shop widgets created by other websites like twitter, facebook, pinterest, allegro, etc. Main feature in this module is an ability to add the "client side" code such like HTML, javascript, css for any place you want.

htmlbox-free-big.png

 

wait for tutorials about usage this module for adding facebook like box etc.

updates of the module

version | date

1.6.6 | 06.03.2017

1.6.5 | 25.11.2016

1.6.4 | 31.08.2016

1.6.3 | 24.06.2016

1.6.2 | 16.06.2016

..

..

1.5.6 | 18.06.2015

1.5.4 | 02.10.2014

1.5.3 | 03.09.2014

1.5.2 | 01.06.2014

1.5.1 | 19.05.2014

1.5.0 | 01.04.2014

1.4.9 | 10.03.2014

1.4.8 | 19.02.2014

1.4.7 | 18.12.2013

1.4.6 | 11.12.2013

1.4.5 | 30.10.2013

1.4.4 | 23.09.2013

1.4.3 | 27.08.2013

1.4.2 | 13.05.2013

1.4.1 | 29.04.2013

1.3.0 | 07.11.2012

 

 

download:

 

It doesn`t work for me. I can not install this mod. Prestashop 1.7

Edited by wgt (see edit history)

Share this post


Link to post
Share on other sites
  • 4 weeks later...

Great module, thanks!  I have installed ver 1.6.6 on ps 1.6.1.14 and the html editor doesnt seem to be working anymore. I click on the on and off button for it, but nothing happens.  ver 1.6.5 it worked fine.  Dunno if it's just me or...

  • Like 1

Share this post


Link to post
Share on other sites
  • 1 month later...

Great module, thanks!  I have installed ver 1.6.6 on ps 1.6.1.14 and the html editor doesnt seem to be working anymore. I click on the on and off button for it, but nothing happens.  ver 1.6.5 it worked fine.  Dunno if it's just me or...

 

I have the same problem, no more editor, nothing happens when clicking on the on and off button.

 

Also, I can't place the updated box where I used to place it (just underneath the 'featured items'.

Edited by WedunitJewels (see edit history)

Share this post


Link to post
Share on other sites

I have the same problem, no more editor, nothing happens when clicking on the on and off button.

 

Also, I can't place the updated box where I used to place it (just underneath the 'featured items'.

 

Great module, thanks!  I have installed ver 1.6.6 on ps 1.6.1.14 and the html editor doesnt seem to be working anymore. I click on the on and off button for it, but nothing happens.  ver 1.6.5 it worked fine.  Dunno if it's just me or...

 

module is available in two versions,

one dedicated for prestashop 1.7, second for older releases

it is very important to upload proper file, otherwise editor may not work properly.

 

 

Can we use this module for prestashop 1.7 and is this responsive ... ?

module is ready to work with prestashop 1.7 and it can work with responsive contents.

Responsivenes of contents depends on you.

Share this post


Link to post
Share on other sites

I am using HtmlBox and showing some image on my footer but i cannot see,I even tried installing new PS1.7.1 and HtmlBox7 locally and tried still cannot see 


 


I cleared cache 


 


As usual waiting for Vekia to reply as he is the only hope 


 


does this have any time limit that free module will expire or something 


Edited by varma dandu (see edit history)

Share this post


Link to post
Share on other sites

 

I am using HtmlBox and showing some image on my footer but i cannot see,I even tried installing new PS1.7.1 and HtmlBox7 locally and tried still cannot see 

 

I cleared cache 

 

As usual waiting for Vekia to reply as he is the only hope 

 

does this have any time limit that free module will expire or something 

 

 

 

I use PS version 1.6.1.9 and used the module for older releases. I deleted the model and downloaded the module for older versions, just to be on the safe side, but it's still the same problem

 

hello friends

i released 1.6.7 version of the module

i added some improvements to rich text editor

there is also new option to decide what editor to show

 

please try it, i think that this update will solve your issues.

after reinstallation of the module please refresh module configuration page with key combination ctrl+f5 (this is refresh with browser cache clear)

  • Like 1

Share this post


Link to post
Share on other sites

I'm having 2 basic difficulties with this module and I'm surprised this hasn't been brought up yet. I'm thinking it could be just be me...

I'm using Presta 1.7.

 

1) On debug mode the module triggers an error warning and I can't configure the module at all.

2) It seems like the text editor in the HTML blocks don't escape single quotes. If the text includes a single quote anywhere, it doesn't save..

 

Help please?

Edited by benEruch (see edit history)

Share this post


Link to post
Share on other sites

I'm having 2 basic difficulties with this module and I'm surprised this hasn't been brought up yet. I'm thinking it could be just be me...

I'm using Presta 1.7.

 

1) On debug mode the module triggers an error warning and I can't configure the module at all.

2) It seems like the text editor in the HTML blocks don't escape single quotes. If the text includes a single quote anywhere, it doesn't save..

 

Help please?

 

what module version you use?

Share this post


Link to post
Share on other sites

Sorry to bore with this problem again but I really don't know where to turn.

I used mypresta shop to see if adding amazon banner script would work and it displayed fine.

I paid for the pro version and do you think I can get the same code to display ?

 

As I paste the code in and click ok.

If I go back to the source code within the box of html box pro, it has been changed to CDATA.

 

I know a bit of HTML and tiny bit of coding but this has me baffled.

I am using prestashop v1.6.1.3

I am using HTML BOX PRO 3.1.0

 

I have turned off purifier.

I have tried editing the tinymce files as per various tutorials.

I have tried using the internal editor and tiny and anything else I can lay my hands on.

 

I don't know if I am allowed but the code I pasted in was

<script type="text/javascript">amzn_assoc_ad_type ="responsive_search_widget"; amzn_assoc_tracking_id ="mjc-dot-net-banners-21"; amzn_assoc_marketplace ="amazon"; amzn_assoc_region ="GB"; amzn_assoc_placement =""; amzn_assoc_search_type = "search_widget";amzn_assoc_width ="auto"; amzn_assoc_height ="auto"; amzn_assoc_default_search_category =""; amzn_assoc_default_search_key ="charms";amzn_assoc_theme ="light"; amzn_assoc_bg_color ="FFFFFF"; </script><script src="//z-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1&Marketplace=GB"></script>

What gets spat out or when i go back into the source editor is

<p></p>
<script>// <![CDATA[
amzn_assoc_ad_type ="responsive_search_widget"; amzn_assoc_tracking_id ="mjc-dot-net-banners-21"; amzn_assoc_marketplace ="amazon"; amzn_assoc_region ="GB"; amzn_assoc_placement =""; amzn_assoc_search_type = "search_widget";amzn_assoc_width ="auto"; amzn_assoc_height ="auto"; amzn_assoc_default_search_category =""; amzn_assoc_default_search_key ="charms";amzn_assoc_theme ="light"; amzn_assoc_bg_color ="FFFFFF"; 
// ]]></script>
<script src="//z-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1&Marketplace=GB"></script>

If no one wants to say directly then if you could point me in a polite direction, I would really appreciate it.

Love the addon for the other bits, but any help with this bit would save what little hair I have left.

Share this post


Link to post
Share on other sites

hello

i copy paste my reply:

Hello,

don't use code:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>

Your website already uses it, so usage of it one more time is against html standards and can cause issues. the proper code to use is:

<script>// <![CDATA[
amzn_assoc_ad_type ="responsive_search_widget"; amzn_assoc_tracking_id ="mjc-dot-net-banners-21"; amzn_assoc_marketplace ="amazon"; amzn_assoc_region ="GB"; amzn_assoc_placement =""; amzn_assoc_search_type = "search_widget";amzn_assoc_width ="auto"; amzn_assoc_height ="auto"; amzn_assoc_default_search_category =""; amzn_assoc_default_search_key ="charms";amzn_assoc_theme ="light"; amzn_assoc_bg_color ="FFFFFF";
// ]]></script>
<script src="//z-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1&Marketplace=GB"></script>

or

<script>
amzn_assoc_ad_type ="responsive_search_widget"; amzn_assoc_tracking_id ="mjc-dot-net-banners-21"; amzn_assoc_marketplace ="amazon"; amzn_assoc_region ="GB"; amzn_assoc_placement =""; amzn_assoc_search_type = "search_widget";amzn_assoc_width ="auto"; amzn_assoc_height ="auto"; amzn_assoc_default_search_category =""; amzn_assoc_default_search_key ="charms";amzn_assoc_theme ="light"; amzn_assoc_bg_color ="FFFFFF";
</script>
<script src="//z-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1&Marketplace=GB"></script>

dont worry about:

// <![CDATA[

this is how the editor works and javascript code with this code works well.

Share this post


Link to post
Share on other sites

Hi Vekia - Milos.

Thanks for replying.

The code you mentioned not to use was AUTO added once saved and source gone back into.

I thought it may be the amazon code that was a problem so I tried a different one.

<script type="text/javascript">amazon_ad_tag ="mjc-dot-net-banners-21"; amazon_ad_width ="120"; amazon_ad_height ="600"; </script><script src="http://ir-uk.amazon-adsystem.com/s/ads.js"></script>

But when I save the code and re-edit it is changed to

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<script>// <![CDATA[
amazon_ad_tag ="mjc-dot-net-banners-21"; amazon_ad_width ="120"; amazon_ad_height ="600";
// ]]></script>
<script src="http://ir-uk.amazon-adsystem.com/s/ads.js"></script>
</body>
</html>

I have tried switching the editor on and off in HTML Box Pro but appears to make no difference.

I tried installing TINYMCE and disabling and various tutorials to stop code being auto changed.

When I paste the original code into another of my websites that is hosted with EKM the code stays as original and displays correctly.

When I try the [CDATA] then it also still works on the other website.

Even the auto adjusted code above, pasted into the EKM site works and displays the Amazon ads.

 

So this leads me to think that it's something with my website itself not processing that code.

I have no idea about .htaccess and all those other bits but would anything from the above lead you to look at any other part.

I know I suppose I have proved myself that it's not Html Box or the editor but something with the website itself.

Any help would be much appreciated.

Kind regards Simon

Share this post


Link to post
Share on other sites

Just found a sort of solution if anyone is interested.

 

It has nothing to do with HTML BOX Pro, as that works great.

I tried some simple scripts and message boxes and they all worked fine.

I did a little digging and it appears due to SSL and HTTPS and mixed content that, that is why the widgets are not liked.

 

The solution appears to be https://engagedforums.com/discussions/Amazoncouk_Associates_Discussion_Board/Discussions/Is_anybody_else_having_problems_with_the_search_widget_not_showing/am-assocuk/3837.1?nav=messages

 

 

So if you're having the same problem you need to add 

&internal=1

To the end of the script source URL which is

//z-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1&MarketPlace=GB

So you end up with

<script src="//z-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1&MarketPlace=GB&internal=1"></script>

 

Anyway it worked for me on Firefox and Internet Explorer and Chrome.

I hope it helps someone.

Share this post


Link to post
Share on other sites
  • 4 weeks later...

hi,

 

Thank you for uploading this module! 

However I have a problem with the links that I insert in the pictures. I have 5 pictures of logos on my homepage and when I try to insert the link for each logo they don't work. 2 of them stay correct but the other links change. 

for example one link is nti.de, when I try to insert this link and press ok it changes to dentus.be/nl/adminXXX/nti.de 

(dentus.be is my website). 

Thank you! 

 

looking forward hearing from you guys! 

kind regards

brecht 

Share this post


Link to post
Share on other sites

Hi,

I'm using PS16116 with HtmlbBox plugin. Working great except the fact that I have to use a section tag.

If I disable Purifier, than my box shows correctly including the section tags.

If I keep Purifier, it doesn't keep the section tags so my box doesn't show correctly.
So is there a way for the module to keep section tags working correctly (it's not like using script tags) keeping Purifier unable ?
Thanks

Patrick

Edited by mylesk42 (see edit history)

Share this post


Link to post
Share on other sites

Hi,

I'm using PS16116 with HtmlbBox plugin. Working great except the fact that I have to use a section tag.

If I disable Purifier, than my box shows correctly including the section tags.

If I keep Purifier, it doesn't keep the section tags so my box doesn't show correctly.

So is there a way for the module to keep section tags working correctly (it's not like using script tags) keeping Purifier unable ?

Thanks

Patrick

 

It is not possible to use non-default html tags when purifier will be enabled.

your code, if purifier will be enabled,  will be removed. Not only from the module, but also from other things where you can define custom contents.

Share this post


Link to post
Share on other sites
  • 1 month later...
  • 1 month later...

Hello, I have used this module to create some responsive content and it works great. My problem is: I have added images that I have loaded on the site, but it is making my page unsecure. I used a mix of css and html in the html.tpl where I have added all the information, including images. I think it is a problem created by the code method, not by the module, but if anyone knows how to solve it, please tell me!

 
Loading mixed (insecure) display content “http://........./img/cms/html9.png” on a secure page[Learn More] www....................
 
 
 

Share this post


Link to post
Share on other sites
5 hours ago, c.m said:

Hello, I have used this module to create some responsive content and it works great. My problem is: I have added images that I have loaded on the site, but it is making my page unsecure. I used a mix of css and html in the html.tpl where I have added all the information, including images. I think it is a problem created by the code method, not by the module, but if anyone knows how to solve it, please tell me!

 
Loading mixed (insecure) display content “http://........./img/cms/html9.png” on a secure page[Learn More] www....................
 
 
 
 

solved the problem 

Share this post


Link to post
Share on other sites

Hello, I'm trying to install this module on PS 1.7.2.4 but it doesn't work. During the loading appears this message:

 The mime type of the file is invalid ("application/octet-stream"). Allowed mime types are "application/zip", "application/x-gzip", "application/gzip", "application/x-gtar", "application/x-tgz".

I don't know what it means, can someone help me. Thanks

Share this post


Link to post
Share on other sites

HI

I tried to insert a small text in "displayNav" with this module but it does not appear in the bar. Is it possible that it is because of the theme template?
In the footer block, if that works.

 

Thanks

Share this post


Link to post
Share on other sites

Hi there... I am very temped to get this in the pro version... will it work well on Prestashop 1.7.2? ...will it look good on the mobile front office?

I was just thinking on adding an html block with sellected reviews, all graphically cute, and maybe on cms pages have a banner too

Thanks!

Ana

Share this post


Link to post
Share on other sites
  • 4 months later...

Hello everyone,

I used HTML box to add another column of information pages next to the CMS ones, in the footer section.

Can anyone help me by providing a solution to adding links to internal pages? The pages are already created in the Preferences->CMS section but I want to disable them from the default location and split them (not to show them twice).

If I disable them, the links won't point correctly. Is there another way?

Thanks

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Hi :)

I am using the htmlbox module in my store. I pasted the 3d cube html code and everything works fine. However, I would like to see pictures of newly added products on the walls (that is, if I add a new product to the store, a picture is displayed on one of the cube walls). Is it possible to insert a path to a product image other than in html? How to do it? I am asking for quick help.

Share this post


Link to post
Share on other sites
On 11/24/2017 at 12:39 PM, Giulio89 said:

Hello, I'm trying to install this module on PS 1.7.2.4 but it doesn't work. During the loading appears this message:

 The mime type of the file is invalid ("application/octet-stream"). Allowed mime types are "application/zip", "application/x-gzip", "application/gzip", "application/x-gtar", "application/x-tgz".

I don't know what it means, can someone help me. Thanks

perhaps you unpacked the ,zip file and then packed it again?
simply saying do you uploaded the original .zip file?

Share this post


Link to post
Share on other sites
On 11/23/2017 at 11:12 AM, c.m said:

Hello, I have used this module to create some responsive content and it works great. My problem is: I have added images that I have loaded on the site, but it is making my page unsecure. I used a mix of css and html in the html.tpl where I have added all the information, including images. I think it is a problem created by the code method, not by the module, but if anyone knows how to solve it, please tell me!

 
Loading mixed (insecure) display content “http://........./img/cms/html9.png” on a secure page[Learn More] www....................
 
 
 
 

 

you can change the src="" of images to use the https:// instead, you can do it manually with code editor or during you include a picture (there is a field with path to picture)

Share this post


Link to post
Share on other sites
On 11/24/2017 at 8:23 PM, AnaClub said:

HI

I tried to insert a small text in "displayNav" with this module but it does not appear in the bar. Is it possible that it is because of the theme template?
In the footer block, if that works.

 

Thanks

 

if your theme does not have displayNav hook - the text will not appear there
so, my question is about the theme - does it use hook you mentioned?

Share this post


Link to post
Share on other sites
On 11/29/2017 at 11:23 AM, Anatchim said:

Hi there... I am very temped to get this in the pro version... will it work well on Prestashop 1.7.2? ...will it look good on the mobile front office?

I was just thinking on adding an html block with sellected reviews, all graphically cute, and maybe on cms pages have a banner too

Thanks!

Ana

 

Hello

module does not build any kind of contents,  the contents that module will show depends on you (simply saying module is a tool to insert own contents to the shop design).


So if your contents will be created in a proper way - these contents will look good also on mobile devices

Share this post


Link to post
Share on other sites
On 4/10/2018 at 11:21 AM, tinygirl said:

Hi :)

I am using the htmlbox module in my store. I pasted the 3d cube html code and everything works fine. However, I would like to see pictures of newly added products on the walls (that is, if I add a new product to the store, a picture is displayed on one of the cube walls). Is it possible to insert a path to a product image other than in html? How to do it? I am asking for quick help.

 

You can use javascript that will change the image src=""

$('.image-class').attr('src',variable_with_url);

variable_with_Url can be generated dynamically by some php scripts and included to the page as a javascript variable (with modification of controller / theme files)

Share this post


Link to post
Share on other sites

Hey :)

I have a question which was previously asked but not really answered.

I got the free HTML Box Module for Presta 1.7 and put some content in it, but now I'm struggling with it not being responsive. Which means it's resizing and all, but just to a certain point. In the browser everything looks alright, but on the mobile version it doesn't (pictures won't resize there). I kind of thought that everything I put in with the module will be responsive by default, too. :( 

I'm kind of a newbie with HTML and CSS so I don't really know about the possibilities to fix that problem, so far I've only changed some parts of the theme.css file but that was already a pain :D Is there any "easy" way to do it?

Share this post


Link to post
Share on other sites
  • 3 weeks later...

@vekia , Hi there. Newbie question. Any idea why this code shows like the java/css does not load?

 

<!-- Begin MailChimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" type="text/css">
<style type="text/css">
	#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }
	/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
	   We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
</style>
<div id="mc_embed_signup">
<form action="https://naturalchristmasdecorations.us18.list-manage.com/subscribe/post?u=b59c0b9ca7f43a6690f66d504&amp;id=aff69ac657" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
    <div id="mc_embed_signup_scroll">
	<h2>Subscribe to our mailing list</h2>
<div class="indicates-required"><span class="asterisk">*</span> indicates required</div>
<div class="mc-field-group">
	<label for="mce-EMAIL">Email Address  <span class="asterisk">*</span>
</label>
	<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
</div>
<div class="mc-field-group">
	<label for="mce-FNAME">First Name </label>
	<input type="text" value="" name="FNAME" class="" id="mce-FNAME">
</div>
<div class="mc-field-group">
	<label for="mce-LNAME">Last Name </label>
	<input type="text" value="" name="LNAME" class="" id="mce-LNAME">
</div>
<div class="mc-field-group size1of2">
	<label for="mce-BIRTHDAY-month">Birthday </label>
	<div class="datefield">
		<span class="subfield monthfield"><input class="birthday " type="text" pattern="[0-9]*" value="" placeholder="MM" size="2" maxlength="2" name="BIRTHDAY[month]" id="mce-BIRTHDAY-month"></span> / 
		<span class="subfield dayfield"><input class="birthday " type="text" pattern="[0-9]*" value="" placeholder="DD" size="2" maxlength="2" name="BIRTHDAY[day]" id="mce-BIRTHDAY-day"></span> 
		<span class="small-meta nowrap">( mm / dd )</span>
	</div>
</div>	<div id="mce-responses" class="clear">
		<div class="response" id="mce-error-response" style="display:none"></div>
		<div class="response" id="mce-success-response" style="display:none"></div>
	</div>    <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
    <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_b59c0b9ca7f43a6690f66d504_aff69ac657" tabindex="-1" value=""></div>
    <div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
    </div>
</form>
</div>

<!--End mc_embed_signup-->

It shows up like this:

image.png.896a46148ee525ea636924b981bfe548.png

Rather than this:

image.thumb.png.bf99a229fbb3b78acf50db2d5cc3d696.png

 

Thanks,

Gabe :)

 

Share this post


Link to post
Share on other sites
  • 1 month later...

Hello,

we purchased HTMLBOX a while back and I just wondered if it would do the below.

I did just submit this question below elsewhere in the forum, but then remembered HTMLBOX and wondered if it was possible through that.

============================

Hello,

we have PS 1.6.1.3.

We use it with fastbay to list on ebay.

One feature of fastbay is that you can have a template description to pass to ebay and add the PS description.

EG

====

HTML

HTML

{Description}

HTML

HTML

===

As I have html in all my descriptions on PS, is there a way I could have standard plain text but apply a frame - template to the PS descriptions, just for PS.

Then if I want to have a Christmas template, I change my HTML and all PS descriptions have the same text but with Christmas lights on etc.

I was looking for an easier way rather than adding code to the PS TPL files etc.

Any ideas would be appreciated.

Share this post


Link to post
Share on other sites
  • 1 month later...
On 7/25/2018 at 4:10 PM, markeymedia said:

Can this module be duplicated, eg: one for header one for footer?

 

if you've got technical development skills to duplicate an addon you can do it of course.
if you do not have such skills, you can use pro version ;) html box pro

Share this post


Link to post
Share on other sites

Re-added module's .zip files to first post of this message.

- released new version dedicated for prestashop 1.7.x, i removed support of non-existing hook displayNav and added support of new positions "displayNav1" and "displayNav2".

  • Thanks 1

Share this post


Link to post
Share on other sites
  • 2 months later...

I downloaded the 1.7.0 version from the website and it didn't work on my TB 1.07. Whatever settings I made - after I pressed the Save button the page was renewed with its default empty settings.

I went back to a 1.5.6 version that I still had and that works ok.

Did I do something wrong?

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • 1 month later...

@Vekia:

Strange behaviour, if I insert the Google Html code to verify the Google Search Console under the point "display header" (as a new entry), actually the html text will displayed in the header of the live webshop (frontend) and all theme formats will be lost. The only remaining, practical solution is to reinstall the data- as well as the website database.
Moreover, sometimes it happens, that I could not save the Google code, i.e., I insert the code and save the entries and if I go back to check the data, the html box is empty.

There is something very wrong there, but what is the issue?

Prestashop Vers. 1.7.4.4, as well I use the newest Html box pro Vers. 3.3.7.
I do not use the default prestashop theme.

Thanks in advance.

Share this post


Link to post
Share on other sites
  • 3 months later...

Hello guys, this is module is great. I have a question, anyone know is it possible to move HTMLbox to footer menu like in my screenshot? Thank you!

fot.png

Share this post


Link to post
Share on other sites

I have a problem with the module.

I found i popup code for verify pop up , the code display on homepage but the javascript not active on click

what can i do?

her is the code

<style><!--
#age-verify {
 position: fixed;
 z-index: 9997;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background-color: rgba(0, 0, 0, 0.8);
 transition: 500ms;
}
#age-verify .window {
 position: absolute;
 z-index: 9998;
 top: 50%;
 left: 50%;
 width: 400px;
 height: 250px;
 overflow: hidden;
 padding: 40px;
 margin-left: -200px;
 margin-top: -125px;
 background-color: #fff;
 border: 6px solid Red;
 box-sizing: border-box;
 box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
 transition: 500ms;
}
#age-verify .window span {
 display: block;
 text-align: center;
 margin-bottom: 10px;
 font-family: "Open Sans", sans-serif;
 font-size: 17px;
}
#age-verify .window span.title {
 color: Red;
 font-size: 24px;
}
#age-verify .window button {
 border: 0;
 margin: 0;
 padding: 0;
 width: 48%;
 height: 60px;
 color: #FFF;
 font-size: 18px;
 background-color: Red;
 margin-top: 20px;
 font-family: "Open Sans", sans-serif;
 transform: scale(1);
 transition: .2s;
}
#age-verify .window button.back {
 display: block;
 float: none;
 margin: auto;
 background-color: #fff;
 color: Red !important;
 margin-top: 20px;
}
#age-verify .window button.yes {
 float: left;
}
#age-verify .window button.no {
 float: right;
}
#age-verify .window button:hover {
 transform: scale(1.1);
 box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
 background-color: #ff3333;
}
#age-verify .window .underBox {
 position: absolute;
 width: 400px;
 height: 250px;
 padding: 40px;
 top: 100%;
 left: 0;
 right: 0;
 background-color: Red;
 transition: 500ms;
 box-sizing: border-box;
}
#age-verify .window .underBox * {
 color: #FFF !important;
}
#age-verify.hidden {
 opacity: 0;
 visibility: hidden;
}
#age-verify.hidden .window {
 transform: scale(0.5);
}
#age-verify.under .window .underBox {
 top: 0%;
}
.hiddenText {
 display: none;
}
--></style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>
<div id="age-verify">
<div class="window">
<div id="age-text"><span class="title">Are you over 21?</span> <span>You must be 21 to visit this website.</span></div>
<div id="under-age" class="hiddenText"><span class="title">Sorry!</span> <span>You need to be at least 21 to visit our website.</span></div>
<button id="yes" class="yes">Yes</button> <button id="no" class="no">No</button></div>
</div>
<script>// <![CDATA[
 $(document).ready(function(){

// if(document.cookie == 'age-verified') {
// $("#age-verify").addClass("hidden");
// }
 function getCookie(cname) {
 var name = cname + "=";
 var decodedCookie = decodeURIComponent(document.cookie);
 var ca = decodedCookie.split(';');
 for(var i = 0; i < ca.length; i++) {
 var c = ca[i];
 while (c.charAt(0) == ' ') {
 c = c.substring(1);
 }
 if (c.indexOf(name) == 0) {
 return c.substring(name.length, c.length);
 }
 }
 return "";
 }
 function checkCookie() {
 var user=getCookie("age-verified");
 if (user != "") {
 $("#age-verify").addClass("hidden");
 }
 }
 

 var yesEl = document.getElementById('yes');
 var noEl = document.getElementById('no');

 yesEl.addEventListener('click', function(){
 //document.cookie = 'age-verified; expires=1';
 $('#age-verify').addClass('hidden');
 function setCookie(cname,cvalue,exdays) {
 var d = new Date();
 d.setTime(d.getTime() + (exdays*1));
 var expires = "expires=" + d.toGMTString();
 document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
 }
 });

 noEl.addEventListener('click', function() {
 $('#age-text').addClass('hiddenText');
 $('#under-age').removeClass('hiddenText');
 $('#yes').addClass('hiddenText');
 });

 });
// ]]></script>

 

Share this post


Link to post
Share on other sites
  • 2 months later...

Dear Vekia
Please, let me know if this can be arranged.
When I add the HTML to the HTML-Box it looks fine, but as soon as i SAVE it,
the words 'vins, Boissons alcoholiques... etc.' are removed and listed/shown below the graphic.
 

image.png.7ac75ce5da295c58c410dfb2a5066f46.png

Edited by Cosmopolita (see edit history)

Share this post


Link to post
Share on other sites
On 4/25/2013 at 1:11 PM, vekia said:

Hello

what you mean by that?

you want to add own <style></style> tags ?

 

On 5/25/2013 at 2:35 AM, galactic said:

Does this HTMLbox can be attached to one position at a time, which was selected in module configuration, and then module can not be moved on different positions via translpant module?

Does it save all input html, js,css fully untouched, without stripping tags, so code remains completely unchanged? Where it store content?

Graphic explanation

image.thumb.png.4df0ecba3be6f339254fd860162f575b.png

Share this post


Link to post
Share on other sites
  • 2 months later...

problem solved, had to put this to the code in editor,

<div class="footer-block col-xs-12 col-sm-3" id="block_buyer_help_footer"> ....content ... </div>

this video helped me 

 

 

Share this post


Link to post
Share on other sites
  • 2 months later...

Hi Milos,

 

I have bought the pro version of the module. After using the module for a couple of days, I can't log into my back office page. I am not sure if this is related and whether I should delete the module.

Could you please kindly help? 

I can load the back office page but can't login with the credentials. The page times out. 

Quote

Request Timeout

This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase 'Connection Timeout'.

I contacted my hosting company and here are the error logs they sent through:

 

Quote

Warning: include_once(/home/infloori/public_html/tools/smarty/sysplugins/smarty_internal_data.php): failed to open stream: No such file or directory in /home/infloori/public_html/tools/smarty/Smarty.class.php on line 91

Warning: include_once(): Failed opening '/home/infloori/public_html/tools/smarty/sysplugins/smarty_internal_data.php' for inclusion (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/infloori/public_html/tools/smarty/Smarty.class.php on line 91
Warning: include_once(/home/infloori/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php): failed to open stream: No such file or directory in /home/infloori/public_html/tools/smarty/Smarty.class.php on line 92
Warning: include_once(): Failed opening '/home/infloori/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php' for inclusion (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/infloori/public_html/tools/smarty/Smarty.class.php on line 92
Warning: include_once(/home/infloori/public_html/tools/smarty/sysplugins/smarty_internal_template.php): failed to open stream: No such file or directory in /home/infloori/public_html/tools/smarty/Smarty.class.php on line 93
Warning: include_once(): Failed opening '/home/infloori/public_html/tools/smarty/sysplugins/smarty_internal_template.php' for inclusion (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/infloori/public_html/tools/smarty/Smarty.class.php on line 93
Warning: include_once(/home/infloori/public_html/tools/smarty/sysplugins/smarty_resource.php): failed to open stream: No such file or directory in /home/infloori/public_html/tools/smarty/Smarty.class.php on line 94
Warning: include_once(): Failed opening '/home/infloori/public_html/tools/smarty/sysplugins/smarty_resource.php' for inclusion (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/infloori/public_html/tools/smarty/Smarty.class.php on line 94
Warning: include_once(/home/infloori/public_html/tools/smarty/sysplugins/smarty_internal_resource_file.php): failed to open stream: No such file or directory in /home/infloori/public_html/tools/smarty/Smarty.class.php on line 95
Warning: include_once(): Failed opening '/home/infloori/public_html/tools/smarty/sysplugins/smarty_internal_resource_file.php' for inclusion (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/infloori/public_html/tools/smarty/Smarty.class.php on line 95
Warning: include_once(/home/infloori/public_html/tools/smarty/sysplugins/smarty_cacheresource.php): failed to open stream: No such file or directory in /home/infloori/public_html/tools/smarty/Smarty.class.php on line 96
Warning: include_once(): Failed opening '/home/infloori/public_html/tools/smarty/sysplugins/smarty_cacheresource.php' for inclusion (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/infloori/public_html/tools/smarty/Smarty.class.php on line 96
Warning: include_once(/home/infloori/public_html/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php): failed to open stream: No such file or directory in /home/infloori/public_html/tools/smarty/Smarty.class.php on line 97
Warning: include_once(): Failed opening '/home/infloori/public_html/tools/smarty/sysplugins/smarty_internal_cacheresource_file.php' for inclusion (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/infloori/public_html/tools/smarty/Smarty.class.php on line 97
Warning: include(/home/infloori/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php): failed to open stream: No such file or directory in /home/infloori/public_html/tools/smarty/Smarty.class.php on line 1680
Warning: include(): Failed opening '/home/infloori/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php' for inclusion (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/infloori/public_html/tools/smarty/Smarty.class.php on line 1680
Fatal error: Class 'Smarty_Internal_TemplateBase' not found in /home/infloori/public_html/tools/smarty/Smarty.class.php on line 105
Warning: require_once(/home/infloori/public_html/tools/smarty/Smarty.class.php): failed to open stream: No such file or directory in /home/infloori/public_html/config/smarty.config.inc.php on line 29
Fatal error: require_once(): Failed opening required '/home/infloori/public_html/tools/smarty/Smarty.class.php' (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/infloori/public_html/config/smarty.config.inc.php on line 29

---

Anyone knows how to resolve this issue? It is really frustrating. 

Share this post


Link to post
Share on other sites
  • 2 weeks later...