Active
Project:
Thickbox
Version:
6.x-1.6
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Jul 2010 at 23:58 UTC
Updated:
26 Jul 2010 at 16:49 UTC
On my front page, is it possible to call thickbox with some code, as in automatically, not as a class to an link? I'm trying to put a splash page in thickbox. I'm aware the splash module does this, but the code is incredibly buggy.
Thanks!
Comments
Comment #1
frjo commentedYou would need to write some custom jQuery (JavaScript) code to do this.
I would also suggest checking out the Colorbox, http://drupal.org/project/colorbox, module as a a more modern replacement for Thickbox.
When Colorbox has a stable release I will start actively recommend people to switch/upgrade from Thickbox to Colorbox. I'm the maintainer of Thickbox and a co-maintainer of Colorbox.
Comment #2
rc2020 commentedInteresting...do you have an example jquery code to launch the modal? I'm pretty good w/ php I just know zero js/jquery. I don't mind using either colorbox/thickbox I just need to load it as a splash/welcome message.
Thanks!
Comment #3
frjo commentedYou have this from thickbox.js:
Change the name, make it activate on the class/id that suit your needs and replace "click" with "load", or something like that.
I recommend you do this with Colorbox instead, you fins a similar function in "js/colorbox.js".
Thickbox will have no D7 version, Colorbox will be the recommended upgrade path.
Comment #4
rc2020 commentedAwesome, Thanks!