Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Thickbox 3

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 07-04-2007, 10:10 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Thickbox 3

Thickbox 3 has been released

http://jquery.com/demo/thickbox/

Unfortunately, it's making a mess of my product pages -- formatting of the product description (html and css based) is essentially wiped out when the new Thickbox3 css is installed. It's as if ALL html and css is stripped from the product description field IF Thickbox3 is installed.

Oh, the way I installed Thickbox3 -- based on instructions here:

Quote:
Question - I am using an older version of ThickBox. How do I upgrade?Answer - I suggest stripping out the old CSS and JS and adding back in the new code created for the current version of ThickBox. If that is bad news, then hold tight - I have some good news, too. The way by which ThickBox is invoked has not changed. So, there is no need to change the HTML that invokes a ThickBox.
So, I simply replaced the css and js files. I do not like the new "loadingAnimation.gif" -- so I used the old one (but tried the new one). The "jquery-compressed.js" is new as well. BUT -- In testing, I determined it's the new "thickbox.css" that broke the old pages (the formating this is).

Why do I want to use Thickbox3? It now allows embedded pdf, html, iframed content, inline content, and AJAX content... Without any extra js code --

I would love to replace all my popups with thickbox (besides images)... and some of my popups are html. SO -- trying to get Thickbox3 to work!

Can someone who has Thickbox2 installed, simply replace the css and js and tell me what it does to your html formatted product descriptons? Is it just me?

A note to other forum mods: I am posting this in "Third Party" even though Thickbox is not really a 3rd party mod -- it's contributed code for any website distributed as open source under the GNU license. So no developer really owns this... and the code is not xcart specific, although it can easily be used in xcart. So is it 3rd party or is it a hack? At some point, this could be called a completed mod, but it's not ready-to-eat. Let's call it 3rd party for now?

PS -- in the new thickbox css, I see an entry:

Code:
* html #TB_overlay

I thought I knew some things about css... but have never seen a "* html" before an ID... what does the "* html" do to an id entry? This occurs 4 times, all related to IE6 hacks. Can someone explain?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #2  
Old 07-04-2007, 11:34 AM
 
dfawdon dfawdon is offline
 

Advanced Member
  
Join Date: Feb 2006
Location: UK
Posts: 82
 

Default Re: Thickbox 3

Quote:
Originally Posted by carpeperdiem
Can someone who has Thickbox2 installed, simply replace the css and js and tell me what it does to your html formatted product descriptons? Is it just me?

Same for me, the css file is stripping out <br> tags
__________________
X-Cart Gold 4.0.17
X-AOM
Safetynet DSEFU
Easy Checkout
_________________
Reply With Quote
  #3  
Old 07-04-2007, 11:43 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Thickbox 3

Upon further testing, it is also stripping out <ul> and <li> tags -- making html lists pretty U-G-L-Y.

While we're discussing Thickbox, can someone tell me why the 7Dana Thickbox code DOES NOT put the script into the header, rather, it embeds as-needed to the product page, calling, thickbox_include.tpl -- upon review of the include, I see the CSS is called by:

Code:
<style type="text/css" media="all">@import "{$SkinDir}/thickbox/files/thickbox.css";</style>

What does "@import" do here?

Is this a better way for the script to load than via the header (and thus available for all pages)?

If I want to use Thickbox throughout my site, am I better putting the script into the header code (home.tpl), then I can just call it from everywhere? Or is it better to call it as needed?

Thanks

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #4  
Old 07-04-2007, 11:47 AM
 
dfawdon dfawdon is offline
 

Advanced Member
  
Join Date: Feb 2006
Location: UK
Posts: 82
 

Default Re: Thickbox 3

Found it, comment out line 4 of the css file with a /
__________________
X-Cart Gold 4.0.17
X-AOM
Safetynet DSEFU
Easy Checkout
_________________
Reply With Quote
  #5  
Old 07-04-2007, 11:53 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Thickbox 3

Wow. Thanks for finding this. You wonder why there is a line of css that looks like this:

*{padding: 0; margin: 0;}

It really should be:
/*{padding: 0; margin: 0;} */

BUT THEN -- can you figure out what

* html

is doing before some of the new #TB entries?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #6  
Old 07-04-2007, 10:54 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Thickbox 3

Quote:
Originally Posted by carpeperdiem
Wow. Thanks for finding this. You wonder why there is a line of css that looks like this:

*{padding: 0; margin: 0;}

It really should be:
/*{padding: 0; margin: 0;} */

BUT THEN -- can you figure out what

* html

is doing before some of the new #TB entries?

* is a universal selector, its basically used as an IE hack for css

ie:
* html .blahblahblah
means for .blahblahblah in html in anything else
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #7  
Old 07-05-2007, 09:20 AM
 
exsecror exsecror is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,284
 

Default Re: Thickbox 3

* universal selectors are also used for CSS in true XHTML documents (e.g. documents that have both a document type of XHTML but also send as a content-type of application/xhtml+xml which X-Cart fails to follow in a standards requirement) as XHTML in itself is more anal about completness of tags and formatting. Because of this * has to be used in Internet Explorer because Microsoft does not follow the application/xhtml+xml spec which is ironic since the Internet Explorer development team also happens to be on the W3C Board
Reply With Quote
  #8  
Old 07-05-2007, 01:28 PM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default Re: Thickbox 3

Quote:
Originally Posted by carpeperdiem
Upon further testing, it is also stripping out <ul> and <li> tags -- making html lists pretty U-G-L-Y.

While we're discussing Thickbox, can someone tell me why the 7Dana Thickbox code DOES NOT put the script into the header, rather, it embeds as-needed to the product page, calling, thickbox_include.tpl -- upon review of the include, I see the CSS is called by:

Code:
<style type="text/css" media="all">@import "{$SkinDir}/thickbox/files/thickbox.css";</style>

What does "@import" do here?

Is this a better way for the script to load than via the header (and thus available for all pages)?

If I want to use Thickbox throughout my site, am I better putting the script into the header code (home.tpl), then I can just call it from everywhere? Or is it better to call it as needed?

Thanks

Jeremy

Jeremy, the only reason is to simplify the installation process for non-expert users....of course, if you know what you're are doing or if you plan to use the extended features of Thickbox script like iframed content, inline content, and AJAX content on other pages you can move the script to the header.
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:41 AM.

   

 
X-Cart forums © 2001-2020