Jump to content
vekia

[module] HTML Box Pro - put the code anywhere you want - prestashop 1.7 / 1.6 / 1.5 / 1.4

Recommended Posts

 

 

- save and save and stay buttons. now when i save the box to view the changes on site i need to open it again and again. this will be helpfull

added to todo list :)

 

 

 

- multiple instances of all hooks. I want to make a two or more blocks separate from each other. on on the top of homepage, one on the middle and one at the bottom. Now its not possible. It is possible vek's ?  :)

unfortunately :( it's not possible, prestashop allows to use module in the hook only one time. It just mean that you can't attach module to one hook several times. This is in my opiniona little flaw in whole prestashop engine.

Maybe in the further prestashop releases, it will be a part of core, for now unfortunately it isn't :(

  • Like 1

Share this post


Link to post
Share on other sites
new version released!
i added possibility to display block only on selected category pages (see screenshot)

 

 

b7IBSMO.png

Share this post


Link to post
Share on other sites

Hello Vekia,
I updated module by replacing old files by new on htmlboxpro folder.
All seems work correctly, but when I used the new characteristic by editing an previously created block (asociating this block to the one category page) I get an error message (image attached)

 

Regards

post-752463-0-32303100-1395662374_thumb.png

Share this post


Link to post
Share on other sites

hello

you have to reinstall module

it's necessary due to the changes in the core and new features that i recently added.

 

don't worry, with reinstallation you will not lose any data.

  • Like 1

Share this post


Link to post
Share on other sites

hello,

 

it's available for 1.6? what is the last version?

 

yes, latest release works with prestashop 1.6

last version of module: 2.5.7

Share this post


Link to post
Share on other sites

hello

you have to reinstall module

it's necessary due to the changes in the core and new features that i recently added.

 

don't worry, with reinstallation you will not lose any data.

 

Right¡ thanks

Share this post


Link to post
Share on other sites

new version!

- module supports custom hooks.

- unlimited number of custom hooks

- automatically create new hooks in prestashop

- module change itself to support new hooks!

 

  • Like 1

Share this post


Link to post
Share on other sites

Hi Vekia, very insteresting characteristic¡

This time I have reinstalled¡  but  however I get two errors on BO:

 

 

Notice: Undefined property: htmlboxpro::$customhooks in C:\xampp\htdocs\xxxx\modules\htmlboxpro\htmlboxpro.php on line 749

Notice: Undefined variable: customhook_conf in C:\xampp\htdocs\xxxx\modules\htmlboxpro\htmlboxpro.php on line 1083

 

 

Regards

Share this post


Link to post
Share on other sites

Can i create menu with your modulE?

 

i bought your module how can i update my module?

Share this post


Link to post
Share on other sites

hello vekia not appear in version 1.4.10 the part of custom hooks, can you solve? or this is only for version 1.6?

 

https://dl.dropboxusercontent.com/u/62677780/F%C3%B3runs/Anexos/Prestashop/htmlboxpro%202.5.8.jpg

 

greetings

 

it's for 1.5.x and 1.6.x 

prestashop 1.4 and oldest uses different way to manage hooks and to handle them in the themes.

but of course I will add this feature

Share this post


Link to post
Share on other sites

Hi Vekia, very insteresting characteristic¡

 

This time I have reinstalled¡  but  however I get two errors on BO:

 

Regards

 

oops! i will release fix for this, gladly, these "errors" are only notices, they can't crash module/website etc.

but, of course, will eliminate the little problem as soon as possible

Share this post


Link to post
Share on other sites

Can i create menu with your modulE?

 

i bought your module how can i update my module?

 

hello

 

you can download new version from your customer account at mypresta.eu website in the same way as you downloaded it before.

then just upload it to your back office and reinstall it (this new version needs reinstallation)

  • Like 1

Share this post


Link to post
Share on other sites

This module is fantastic!

yea :D thank you for your kind words,

new version, especially with this custom hooks feature is amazing :D

  • Like 1

Share this post


Link to post
Share on other sites

it's for 1.5.x and 1.6.x 

prestashop 1.4 and oldest uses different way to manage hooks and to handle them in the themes.

but of course I will add this feature

hello, but use the 2.5.5 or 2.5.8 can I use?

worth installing the 2.5.8 has more improvements right?

Greetings

Edited by Speed2010 (see edit history)

Share this post


Link to post
Share on other sites

new version released!

added fix to new hooks visibility (under modules > positions tab in back office)

Share this post


Link to post
Share on other sites

hello vekia continues without custom hooks appear, can I use this version on prestashop 1.4.10, or is it better to use 2.5.5?
I await response
Greetings

Share this post


Link to post
Share on other sites

version 2.5.82 released

module supports feature to define & use custom hooks also in prestashop 1.4.x

Share this post


Link to post
Share on other sites

hello vekia continues without custom hooks appear, can I use this version on prestashop 1.4.10, or is it better to use 2.5.5?

I await response

Greetings

 

you can use it in 1.4.10,

in addition version 2.5.82 supports also this feature for 1.4.x :)

Share this post


Link to post
Share on other sites

Hello, now it works, thanks
I did a translation PT will update the module, then you can add in your module if you want.

another question, where you put the code in tpl file module, or somewhere else?

and if we want to erase the hook we create, how you doing? should have an X in order to erase.

 

https://dl.dropboxusercontent.com/u/62677780/F%C3%B3runs/Anexos/Prestashop/Htmlboxpro_v2.582_pt.php

Greetings

Share this post


Link to post
Share on other sites
another question, where you put the code in tpl file module, or somewhere else?

 

everything depends on where you want to add this new hook.

in fact, there is no limitations, you can use custom hook anywhere you want.

 

removing hooks it's a bit complicated (i suppose so) so i need a little more time to test this feature in various situations.

i will definitely add it in the future update.

 

thank you for translation! it will be also included in the nearest update

Share this post


Link to post
Share on other sites

hello, so we have to paste this code in place we want it to show, right? tpl file is not in the htmlbox module.

was a good update.

we are waiting.

Greetings

Share this post


Link to post
Share on other sites

yes, in ps 1.4 it works almost the same as in 1.5 and 1.6

the only one thing you have to do is to use code:

{Module::hookExec('MyNewHook')}

in any .tpl file you want.

Then script will generate blocks attached to this hook.

with this feature we have an unlimited possibilities of html box usage

im quite excited :D

  • Like 1

Share this post


Link to post
Share on other sites

ok, good module.
I look forward to actulização you said you were gonna do
Greetings

Share this post


Link to post
Share on other sites


new version released (2.5.83)

i added full featured tinyMCE rich text editor to this module



htmlboxpro-prestashop16-full-rich-text-e


Share this post


Link to post
Share on other sites

hello Vekia,

 

iam using version 2.5.83, but i got my featured tinyMCE rich text editor not like in new version (screenshot). 

 

Regards

 

 

post-487514-0-95450200-1397478059_thumb.jpg

Share this post


Link to post
Share on other sites

you use prestashop 1.5.x - your tinymce editor is extended. By default editor in ps 1.5.x looks like
t3xFQ8E.png

 

compare it with your image, you will see a lot of new features.

 

 

in prestashop 1.6 editor has got different layout, because layout depends on native prestashop admin template.

  • Like 1

Share this post


Link to post
Share on other sites

new version released!

- i added feature to display block only on selected manufacturer page

  • Like 2

Share this post


Link to post
Share on other sites
html block for #prestashop upgraded! 

- button to enable / disable editor works again in prestashop 1.6

- new menu items "settings" & "boxes"

- possibility to turn of tinyMCE rich text editor by default

Share this post


Link to post
Share on other sites

Is possible with this module add html code on "blockcmsinfo" ?

  • Like 1

Share this post


Link to post
Share on other sites

yes it is,

take a look on this video:

 

 

 

you can create hook named for example myBlockUserInfoHook and use it in blockuserinfo module

  • Like 1

Share this post


Link to post
Share on other sites

Hello Vekia

 

Yesterday, i've sent an email to support until now do not get any reply. Please check!

 

Regards

Share this post


Link to post
Share on other sites

Hello Vekia

 

Yesterday, i've sent an email to support until now do not get any reply. Please check!

 

Regards

yesterday i worked to 14;00 (it conference) - and yea im in work right now :) checked mailbox and replied :)

Share this post


Link to post
Share on other sites

new version released

you can define date for each of the block. 

block will be visible only on selected date period

html-box-date-period-prestashop.gif

  • Like 1

Share this post


Link to post
Share on other sites

Hi Vekia,

 

Thanks for a great module! I have a small problem/irritation. Whenever I try to edit an existing htmlbox content, it automatically adds extra \" and I don't see why this should occur. It results in links not working and eventually, after a few edits, I have to either manually edit every occurrence via html code directly, or re-install the module and start again.

 

Why do these extra slash marks and quotations appear? How do I get rid of them?

Share this post


Link to post
Share on other sites

your host uses depracated a long time ago magic_quotes or your host uses old outdated php version.

can you say something more about your host specification? (especially magic quotes + php version)

Share this post


Link to post
Share on other sites

Hi Vekia,

 

Thanks for your assistance! My host is running php version 5.3.23.

 

Here is the relevant code from my php.ini file on the host server. I'm guessing something here should be changed? Please advise.:

 

; Magic quotes for incoming GET/POST/Cookie data.

magic_quotes_gpc = On

 

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.

magic_quotes_runtime = Off

 

; Use Sybase-style magic quotes (escape ' with '' instead of \').

magic_quotes_sybase = Off

 

; Automatically add files before or after any PHP document.

auto_prepend_file =

auto_append_file =

 

; As of 4.0b4, PHP always outputs a character encoding by default in

; the Content-type: header. To disable sending of the charset, simply

; set it to be empty.

;

; PHP's built-in default is text/html

default_mimetype = "text/html"

;default_charset = "iso-8859-1"

 

; Always populate the $HTTP_RAW_POST_DATA variable.

;always_populate_raw_post_data = On

Share this post


Link to post
Share on other sites

if you are able to change settings, change this:

magic_quotes_gpc = On

to:

magic_quotes_gpc = Off

magic_quotes function is deprecated, and totally removed in php 5.4+

it's not worth to use it anymore, it can affect performance a little, so you can turn it off.

let me know what's going on then

Share this post


Link to post
Share on other sites

Hi Vekia,

 

I have now updated that file on my host server and it does seem to have done the trick!

Once again you have solved an irritating issue quickly and efficiently.

 

Many thanks!

Share this post


Link to post
Share on other sites

you're welcome :)

it's always worth to be "up to date" also with host configuration ;)

 

with regards,

Milos

Share this post


Link to post
Share on other sites

Hey! I´ve got a problem with this.

 

I use this code and then source code

 

<div style="width:30px; height:100px; display:block; position:fixed; right:0px; top:100px; background:none;">
<a href="http://www.facebook.com/MyPresta" style="background:none;" target="_blank">
<img src="http://mypresta.eu/content/uploads/2013/03/howtofacebookbutton.png" style="background:none;">
</a>
</div>

 

And get up like this code...

 

<pre><span><span><<a href="http://december.com/html/4/element/div.html"><span>div</span></a> <span>style</span><span>=</span><span>"width:30px; height:100px; display:block; position:fixed; right:0px; top:100px; background:none;"</span>></span></span>
<span>    <span><<a href="http://december.com/html/4/element/a.html"><span>a</span></a> <span>href</span><span>=</span><span>"http://www.facebook.com/MyPresta"</span> <span>style</span><span>=</span><span>"background:none;"</span> <span>target</span><span>=</span><span>"_blank"</span>></span></span>
<span>        <span><<a href="http://december.com/html/4/element/img.html"><span>img</span></a> <span>src</span><span>=</span><span>"http://mypresta.eu/content/uploads/2013/03/howtofacebookbutton.png"</span> <span>style</span><span>=</span><span>"background:none;"</span>></span></span>
<span>    <span><<span>/</span><a href="http://december.com/html/4/element/a.html"><span>a</span></a>></span></span>
<span><span><<span>/</span><a href="http://december.com/html/4/element/div.html"><span>div</span></a>></span></span></pre>
 
Why?
Edited by girlybox (see edit history)

Share this post


Link to post
Share on other sites
<div style="width:30px; height:100px; display:block; position:fixed; right:0px; top:100px; background:none;">
<a href="http://www.facebook.com/MyPresta" style="background:none;" target="_blank">
<img src="http://mypresta.eu/c...ebookbutton.png" style="background:none;">
</a>
</div>

copy code from above :)

and let me know whats going on.

Share this post


Link to post
Share on other sites

Copied your code. Used it in the editor. Source code.

Got a long code, copied it and pasted it.

 

Still come up as text, Not working.

 

Couldn´t paste the code into this reply since it just redirecting me to the prestashop homesite.

Edited by girlybox (see edit history)

Share this post


Link to post
Share on other sites

there is something wrong.

where you paste this code?

 

to the source code editr?

disable tinymce at all when you're dealing with code

 

what's goin on then?

Share this post


Link to post
Share on other sites

I pasted the code you linked to the editor inside Html box pro module.

I pressed source code. Copied that link and pasted it to the editor.

 

How to disable tinymce?

Share this post


Link to post
Share on other sites

what version of module you use? latest version has got feature to disable / enable tinymce with one mouse click

Share this post


Link to post
Share on other sites

Found the option. Did disable it. Pasted the link you gave me into "Code" and saved. 

 

Got no text on website but no box either. Diden´t happend anything

Share this post


Link to post
Share on other sites

and what kind of code you see in box after save? proper one or modified?

Share this post


Link to post
Share on other sites

Pasted your link. Now with that option disabled. Source code. Copy source code and pasted it back to the editor.

 

Nothing happend after I saved it. It got erased from the editor.

Share this post


Link to post
Share on other sites

its defintiely not default behaviour of this module. can i ask you for back office credentials to your shop? i want to inspect everything related to this problem

Share this post


Link to post
Share on other sites

thank you for credentials i added code without any problem .... 

Share this post


Link to post
Share on other sites

Hey! Its me again...

 

How do you position with html box?

I´ve tried..

 

<div style="width:72px; height:72px; display:block; position:absolute; left:10px;
top:250px; background:none;">
<a href="http://www.facebook.com/girlyboxx"><img title="Facebook" src="http://www.girlybox.se/img/FB-f-Logo__blue_72.png" alt="Facebook" style="background:none;" /></a>
</div>
 
But I´ve found out that the only position commandos that works is static and fixed. But Becouse I want to move it I need the absolute positioning.
 
Whats wrong with the code?

Share this post


Link to post
Share on other sites

Hello! I´ve done a "my account" icon my site with html box pro and intergrate it with the popup login module. The code look like this.

 

<span style="width:auto; height:auto; display:block;background:none;position:absolute; left:620px; top:35px;font-family: helvetica; font-size: 12pt;"><a href="http://www.girlybox.se/my-account" class="login"><img title="Icon" src="http://www.girlybox.se/img/Women-icon.png" style="margin-bottom: 13px;margin-right: 4px;" alt="Icon" width="25" height="25" >MITT KONTO</a></span>

 

But now I want to add so if Im logged in I dont want the popup login module to show up. Is it something like this?

 

<span style="width:auto; height:auto; display:block;background:none;position:absolute; left:620px; top:35px;font-family: helvetica; font-size: 12pt;"><a class="login" {if !$logged} href="http://www.girlybox.se/my-account><img title="Icon" src="http://www.girlybox.se/img/Women-icon.png" style="margin-bottom: 13px;margin-right: 4px;" alt="Icon" width="25" height="25" >MITT KONTO</a></span>

 

Or even better if you could do a code that is like.

Login - class="login"

And after login the name changes to

My account - Link to my account

Edited by girlybox (see edit history)

Share this post


Link to post
Share on other sites

Hi,

 

I has wrote letter , but not received answer  and can write here about problems.

 

Now I have some problems:

1. I can't translate content to other languages (don't save, saved nothing)
2. Now I has made HTML table with content and using this is block in CMS page ,  but he is show two more time.

 

Can you check ?  We using  Prestashop ver 1.6.0.6

Share this post


Link to post
Share on other sites

Hi,

 

I has wrote letter , but not received answer  and can write here about problems.

 

Now I have some problems:

 

1. I can't translate content to other languages (don't save, saved nothing)

2. Now I has made HTML table with content and using this is block in CMS page ,  but he is show two more time.

 

Can you check ?  We using  Prestashop ver 1.6.0.6

 

hello

can you send me PM with your email address ? 

Share this post


Link to post
Share on other sites

html box pro module upgraded to new version!.

On module configuration page, on settings tab you can define if you want to "prevent removing urls from images tag <img>". It's great feature for prestashop 1.6 to display uploaded pictures from media manager

  • Like 1

Share this post


Link to post
Share on other sites

Hey Vekia, 

 

I've just purchased a version for my second shop and I'm hitting some irritating issues. Every time I paste in the twitter widget code it's giving me the -

  This page is not available

We're sorry, but the Web address you've entered is no longer available.

To find a product, please type its name in the field below.

- page. I have tried deleting and reinstalling. Do you know any idea why this might be happening??

 

Kind Regards 

Joe 

Share this post


Link to post
Share on other sites

can you show code taht you're trying to use?

you see this error while you want to save block? or when you're trying to open product page?

Share this post


Link to post
Share on other sites

I'm just pasting the ordinary twitter widget code 

 

<a class="twitter-timeline" href="https://twttitter.com/PureKnowledgeUK" data-widget-id="473583660243759105">Tweets by @PureKnowledgeUK</a>
 
 
I have misspelled script to stop the code disappearing. 
 

 

Once I paste it in and hit save the whole page changes to the page not available page. 

When I click back into the module it hasn't saved anything. 

 

It's just odd, because this used to work really well. 

 

Cheers :)

Edited by notcrack (see edit history)

Share this post


Link to post
Share on other sites

The code won't paste properly into the forum. It's just the usual widget from twitter though. 

Share this post


Link to post
Share on other sites

thank you i received credentials

tried and... it just saved box correctly ;/ page also works well, both front and back office

 

perhaps i missed something? :/

Share this post


Link to post
Share on other sites

What browser are you using?? I tried it in internet explorer, chrome and chrome canary? It might be that causing the issue. Thank you for looking into it for me. 

Share this post


Link to post
Share on other sites

im on chrome! tried with ie - the same, it's okay

so strange :/

Share this post


Link to post
Share on other sites

I've just tried to replicate it working, but it's still not running for me in either browser. I don't know how to get the code over completely, but I'll try to break it up a little. 

 

<a class="twitter-timeline" href="https://twitter.com/PureKnowledgeUK" data-wid
get-id="473583660243759105">Tweets by @PureKnowledgeUK</a>
<script>!function(d,s,id){var js,fjs=d.getElementsB
yTagName(s)[0],p=/^http:/.test(d.loc
atform.twitter.com/widgets.js";fjs.parentNode.insertBe
fore(js,fjs);[spam-filter](document,"script","twitter-wjs");</script>
 
That is the code broken up, so the site won't attempt to run it. 

Is there something inherently wrong with it or am I being complete moronic lol. 

 

Sorry about this. 

Share this post


Link to post
Share on other sites

I have just looked at the code and it seems to be adding / to the code when I save it. Would that be the possible problem? I have disabled magic_quotes earlier, so I don't know if that is what's happening. 

Share this post


Link to post
Share on other sites
new version released!

- new version contains 2 new hooks in prestashop 1.6

  • Like 1

Share this post


Link to post
Share on other sites

Hello Vekia,

could i use your module in each shop of my 1.6 multistores site?: The module must be activate in some of the shops, and desactivate in some others shops.

 

thanks!

Share this post


Link to post
Share on other sites

Hello Vekia,

could i use your module in each shop of my 1.6 multistores site?: The module must be activate in some of the shops, and desactivate in some others shops.

 

thanks!

 

of course that you can :-)

module is multistore friendly ;) and me - customer friendly :P

  • Like 1

Share this post


Link to post
Share on other sites

Hello again Vekia

great module. I have some problems with his installation in multistore but nothing critical, if i don't find the solution today, i let you know.

Edited by bea77 (see edit history)

Share this post


Link to post
Share on other sites

new version released.

2.5.89 contains fix related to editing contents of blocks without tinymce editor

  • Like 1

Share this post


Link to post
Share on other sites
html box pro upgraded

We added fix to </> (custom code) feature in prestashop 1.6

Share this post


Link to post
Share on other sites
new version available

- added fixes related to module installation in prestashop 1.6.0.7 and prestashop 1.6.0.8

  • Like 1

Share this post


Link to post
Share on other sites
nueva versión liberada! 

- Se puede mostrar el contenido sólo se especifique url ahora (nueva característica en la página posterior configuración del módulo de oficina)

Share this post


Link to post
Share on other sites

What a bad luck, I recently upgraded to 1.6 ps and upgrade time is over.

Share this post


Link to post
Share on other sites

What a bad luck, I recently upgraded to 1.6 ps and upgrade time is over.

 

hello

please send email to support[at]mypresta[dot]eu with email address that you use in my store

i will solve your problem ;-)

Share this post


Link to post
Share on other sites

Hello, Vekia!  :) 

I created custom hook in the left column.

How can I add here Tabs from product page, which contains More Info (Description of the product) and Reviews of the Product?

Thanx
kirush_a
 

Share this post


Link to post
Share on other sites

hello

im affraid that your question is not related to module ;-)

in addition, contents you mentioned: 

- more info

 

is not a part of any module so it's not "hookable" ;)

 

only reviews,

if you want to move reviews there, you will need to modify reviews module, and create code to support hook you created

<