PrestaShop Forums: [Solved] Help: How to open a ThickBox from a CSS page in 1.1? - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


[Solved] Help: How to open a ThickBox from a CSS page in 1.1?


[Solved] Help: How to open a ThickBox from a CSS page in 1.1?

#1 disarci

    PrestaShop Fanatic

  • 08 Sep 2008
  • Moderators
  • 1979 posts
  • Location:Dijon

Posted 14 January 2009 - 05:02 PM

Please,
I need to open a thickbox with images from a page create by css.
No problem in code, I can integrate in cms.php or cms.tpl,
but I can't call the thickbox.

Tks

PS I followed this post but don't work for me:
http://www.prestasho...iewthread/6133/

#2 vinoalvino

    PrestaShop Addict

  • 10 Aug 2008
  • Members
  • PipPipPip
  • 841 posts

Posted 14 January 2009 - 06:36 PM

in .php file:


$css_files = array(__PS_BASE_URI__.'css/thickbox.css' => 'all');
$js_files = array(__PS_BASE_URI__.'js/jquery/thickbox-modified.js');

/** BEFORE INCLUDE HEADER!!!! **/
include(dirname(__FILE__).'/header.php');


in .tpl file:


{include file=$tpl_dir./thickbox.tpl}


Calling cms.php:

{l s='(read)'}

Al mondo ci sono 11 tipi di persone: quelli che capiscono/non capiscono il codice binario e quelli che trovano tutti i moduli su prestamodules :P
-- Realizzo moduli e personalizzazioni per prestashop --

#3 Wallstyle.se

    PrestaShop Newbie

  • 23 Dec 2008
  • Members
  • Pip
  • 7 posts

Posted 16 April 2009 - 08:21 AM

I don't get it to work, what can I possibly do wrong?

#4 vinoalvino

    PrestaShop Addict

  • 10 Aug 2008
  • Members
  • PipPipPip
  • 841 posts

Posted 16 April 2009 - 08:38 AM

Is the file in the root dir?
Al mondo ci sono 11 tipi di persone: quelli che capiscono/non capiscono il codice binario e quelli che trovano tutti i moduli su prestamodules :P
-- Realizzo moduli e personalizzazioni per prestashop --

#5 Wallstyle.se

    PrestaShop Newbie

  • 23 Dec 2008
  • Members
  • Pip
  • 7 posts

Posted 16 April 2009 - 11:28 AM

The reason that I want to have the thickbox in cms is because I want a picture with thickbox popup when you click a text link. I do not know how I can do it correct.

#6 disarci

    PrestaShop Fanatic

  • 08 Sep 2008
  • Moderators
  • 1979 posts
  • Location:Dijon

Posted 16 April 2009 - 11:46 AM

Ok,
it's different:

you have to put (like Vino said)
in .php file:

$css_files = array(__PS_BASE_URI__.'css/thickbox.css' => 'all');
$js_files = array(__PS_BASE_URI__.'js/jquery/thickbox-modified.js');

/** BEFORE INCLUDE HEADER!!!! **/
include(dirname(__FILE__).'/header.php');
in .tpl file:

{include file=$tpl_dir./thickbox.tpl}

But you can't do it from the CMS page (html) because it will be filtered, you have to enter directly in sql:

example:

Plant 1


Plant 1 Plant 1 Plant 1


#7 Wallstyle.se

    PrestaShop Newbie

  • 23 Dec 2008
  • Members
  • Pip
  • 7 posts

Posted 16 April 2009 - 02:30 PM

Thank you all very much :D It's working great!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users