Access to PrestaShop corporate website
Bonjour, Invité |
| S'inscrire
Se souvenir de moi Mot de passe oublié ?
Site Map Plan du site Contact us Contactez-nous
PrestaShop e-commerce software
  922 Membres en ligne
Forum  >  English Forum  >  Third party modules  >  Fil

 
Répondre
Nouveau sujet
[Solved] Help: How to open a ThickBox from a CSS page in 1.1?

offline
Publié : 14 Janvier 2009 07:02 PM   [ Ignorer ]
Partner
RankRankRankRankRank
Avatar

Messages :

  • au total : 1739
  • 7 derniers jours : 5
Inscrit: 2008-09-08

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.prestashop.com/forums/viewthread/6133/

 Signature 

First Italian PrestaShop Certified
servermac il primo server italiano con PrestaShop pre-installato da 5€/mese
xché disarci?

 
online
Publié : 14 Janvier 2009 08:36 PM   [ Ignorer ]   [ # 1 ]
V.I.P.
RankRankRankRank
Avatar

Messages :

  • au total : 987
  • 7 derniers jours : 0
Inscrit: 2008-08-10

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:

<a href="{$base_dir}cms.php?id_cms={$id_cms_document}&content_only=1&TB_iframe=true&width=450&height=500&thickbox=true" class="thickbox">{l s='(read)'}</a>

 Signature 

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 raspberry
-- Realizzo moduli e personalizzazioni per prestashop --

 
offline
Publié : 16 Avril 2009 11:21 AM   [ Ignorer ]   [ # 2 ]
Beginner
Rank

Messages :

  • au total : 10
  • 7 derniers jours : 0
Inscrit: 2008-12-23

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

 Signature 

Wallstickers

 
online
Publié : 16 Avril 2009 11:38 AM   [ Ignorer ]   [ # 3 ]
V.I.P.
RankRankRankRank
Avatar

Messages :

  • au total : 987
  • 7 derniers jours : 0
Inscrit: 2008-08-10

Is the file in the root dir?

 Signature 

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 raspberry
-- Realizzo moduli e personalizzazioni per prestashop --

 
offline
Publié : 16 Avril 2009 02:28 PM   [ Ignorer ]   [ # 4 ]
Beginner
Rank

Messages :

  • au total : 10
  • 7 derniers jours : 0
Inscrit: 2008-12-23

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.

 Signature 

Wallstickers

 
offline
Publié : 16 Avril 2009 02:46 PM   [ Ignorer ]   [ # 5 ]
Partner
RankRankRankRankRank
Avatar

Messages :

  • au total : 1739
  • 7 derniers jours : 5
Inscrit: 2008-09-08

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:

<p><a href="/web/upload/test-01.jpg"  class="thickbox"  rel="test"><img src="/web/upload/test-01.jpg" border="0" alt="Plant 1"></a></p>
<
div style="visibility: hidden;"><a href="/web/upload/test-02.jpg"  class="thickbox"  rel="test"><img src="/web/upload/test-02.jpg" border="0" alt="Plant 1" height="2"></a> <a href="/web/upload/test-03.jpg"  class="thickbox" rel="test"><img src="/web/upload/test-03.jpg" border="0" alt="Plant 1" height="2"></a> <a href="/web/upload/test-04.jpg"  class="thickbox"  rel="test"><img src="/web/upload/test-04.jpg" border="0" alt="Plant 1" height="2"></a></div>

 Signature 

First Italian PrestaShop Certified
servermac il primo server italiano con PrestaShop pre-installato da 5€/mese
xché disarci?

 
offline
Publié : 16 Avril 2009 05:30 PM   [ Ignorer ]   [ # 6 ]
Beginner
Rank

Messages :

  • au total : 10
  • 7 derniers jours : 0
Inscrit: 2008-12-23

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

 Signature 

Wallstickers

 
 
 
Réponse rapide
Nouveau sujet