Hi,
I am having a problem using Disclaimer with the Thickbox module. I installed both modules and configured it the Disclaimer to show just "Test" on the front page. When I go to the front page, the Thickbox keeps loading and never display my "Test" text.

Anyone experiencing the same issue?

CommentFileSizeAuthor
#3 Afbeelding 1.png176.8 KBknalstaaf

Comments

knalstaaf’s picture

Issue tags: +thickbox, +admin, +loading, +disclaimer

Subscribing. Having the very same issue.

Enabled both the modules, but can't access my Admin-section anymore. I can only see the overlay and an animated bar, with my admin-page in the background. So I can't even access the settings of THickbox nor Disclaimer anymore (unless I disable javascript in my browser).

knalstaaf’s picture

Priority: Normal » Major

I've de-installed both modules, and re-installed them (first Thickbox (6.x-1.6), then Disclaimer), but with the same result: a black transparent overlay with an animated bar which won't move away.

Apparently the disclaimer doesn't get loaded properly, eventhough I'm using a file named "page-disclaimer.tpl.php" (copy of page.tpl.php).

I've tried the second method described in the INSTALL.txt-file, with the NyroModal-script (2.0.0). The Disclaimer module finds the script and I can enable it in the settings of the Disclaimer module, but doesn't execute it, so there's no Disclaimer appearing on any page and visitors can browse the site all they want without agreeing with a disclaimer.

Have you got an idea what could be the problem here?

knalstaaf’s picture

It's also modifying my CSS during the overlay process. Can't tell what's causing all this...

mogtofu33’s picture

Status: Active » Needs review

Hi,

On a fresh install (drupal 6.20 - disclaimer 6.1.9 and thickbox 6.1.6) everything works fine.
Perhaps there is a problem from your theme, please copy page-disclaimer.tpl.php from the module to your theme/garland folder. Clear theme regisrty and activate garland default theme to see if module work.
If not, can you try to use a javascript debugger (like firebug) to see if there is a script error.

Regards.
Mog.

knalstaaf’s picture

Project: Disclaimer » Thickbox
Version: 6.x-1.9 » 6.x-1.6
Component: Miscellaneous » Code
Category: support » bug

Looks like it's a Thickbox 6.x-1.6 issue. Adding tb_setBrowserExtra(); on top of tb_position(); on line 269 of thickbox.js (in the Thickbox module folder) seems to solve the problem for me.

The code around that line looks like this now:

$('#TB_ajaxContent').load(url += '&random=' + (new Date().getTime()),function() { //to do a post change this load method
         tb_setBrowserExtra(); // problem solver
         tb_position();
          $('#TB_load').remove();
          Drupal.attachBehaviors('#TB_ajaxContent');
          $('#TB_window').css({display:'block', opacity: 0}).animate({opacity: 1}, 400);
        });
knalstaaf’s picture

Status: Needs review » Needs work

Hmm, however. Now it's ok in Firefox (3.6.16 on MacOSX 10.5.6), but in IE8 the Disclaimer dialog box is blinking / flashing endlessly. Removing that breaks it again in Firefox , but it keeps flashing / refreshing in IE8.

knalstaaf’s picture

Same issue in Chrome 10.0.648.151 (on MacOSX 10.5.6): blinking Disclaimer dialog box.

Edit: Flashing Disclaimer dialog box behaviour seems to have ceased on Chrome, not sure for what reason...

(P.S.: I took your advice of #4, but with no result.)

knalstaaf’s picture

Tried Thickbox 6.x-1.x-dev with no luck. Same behaviour persists in IE8.

frjo’s picture

Project: Thickbox » Disclaimer
Version: 6.x-1.6 » 6.x-1.x-dev

Please switch to the Colorbox module instead. It's a nicer and more modern solution. I'm the developer of both. Thickbox will have no D7 version while Colorbox already have one.

http://drupal.org/project/colorbox

mogtofu33’s picture

Hi,

I will switch to colorbox soon (if colorbox support modal functions)

Regards.
Mog.

frjo’s picture

Also checkout modals in Ctools. Especially with D7 more or less everyone will have Ctools installed since Views depends on it and it has a number of really cool features.

SewFresh’s picture

Hello,
I was having the same issues as above, but after following steps #4 and #5, it works for me! Both in IE and Firefox

gaxze’s picture

had a problem with this module using thickbox and IE8.

the disclaimer box would constantly flash in IE 8 only. however following the steps of #4 and #5 it worked.

however i edited the tpl template file and the problem came back.

so to fix this i used the template disclaimer page in /modules/disclaimer/page-disclaimer.tpl and copied that to my theme folder.

problem now solved with IE8's flashing.

shane birley’s picture

Issue summary: View changes
Status: Needs work » Closed (duplicate)

It appears that this may be fixed. As a feature request for Colorbox was made, this may be considered as a duplicate of this issue. It makes sense to centralize Colorbox related things to the other issue.

I will close this due to age and lack of activity.