Hi,
Love Quick Tabs! Fast & clean...when I can see them. I'm just starting with Drupal so it's very possible that it is me.
I have Drupal 6.2, Quick Tabs 2008-Apr-24 and am using the Garland theme and am on Windows XP.
I've created a QT module with 4 tabs. In the tabs I have put Active Forum Topics, Recent Blog Posts, Recent Comments and Recent FAQs.
Sometimes the tabs show up and work fine but more often the tabs do not show and instead I see the tabs in a bullet list below that I will see a grouping of the contents of the first tab. Below that the contents of the second and so on.
I have tried viewing it in both IE and Firefox and have created a second QT module with different contents and get the same result.
Any ideas?
Thanks,
J
Comments
Comment #1
katbailey commentedHi there,
can you send me a screenshot of this. I haven't seen this behaviour and would suspect that some other jQuery code is interfering. What other modules are you using?
regards,
Katherine
Comment #2
j_boo commentedHi Katherine,
Thank you for looking at this. The Section that says Talk Talk Talk is the block and the bullets in that section are supposed to be the tabs. The sections below that are the contents of each tab.
Thanks again!
J
Comment #3
katbailey commentedHi there,
it seems like both the javascript and css are either missing or disabled in your browser. Can you provide a link to the page or is it just on your local machine? You will need to somehow ensure that quicktabs.css and quicktabs.js are both being loaded - in Firefox you can use Firebug to debug. Without being able to look at the source of the page I can't help to debug but hopefully this will help you.
Katherine
Comment #4
j_boo commentedHi Katherine,
Thank you for your time on this.
I have looked at the page in Firebug and I don't see quicktabs.css or quicktabs.js. How do I fix this? I'm also very confused as to how I can see the tabs sometimes but not other times. Are the .css & .js only loading sometimes?
Thanks,
J
Comment #5
dforge commentedI'm having a similar problem where it looks great when I'm logged in, but it does not appear for anonymous users.
Comment #6
jaydub commentedRegarding #5 I think this issue could be the answer to your
particular problem:
#262286: drupal_add_js undefined
Not sure how this relates to the D6 version however
Comment #7
Funkymoses commentedI'm seeing this too and think I can narrow it down: it never happens for me as an admin, but it does happen for anon or regular users when they are *not on the homepage.* It appears the quicktabs.js file is not getting included there for whatever reason. My workaround is to add in:
drupal_add_js(drupal_get_path('module', 'quicktabs') .'/js/quicktabs.js');...into the HEAD of my page.tpl.php. This might be less than ideal but my quicktabs appear on every page of my site so I'm okay with it.
Comment #8
Funkymoses commentedcorrection: that workaround functioned on my local test version but did not fly on the actual site. To get it working there I had to forcibly load the js without calling drupal_add_js, and now it's displaying sans css, which I haven't forced in a similar fashion. So... yeah.
Comment #9
boriso commentedHi !
I am having a very similar problem. The problem occurs only on IE7, on firefox3 everything is fine. IN IE7, when on the homepage the tabs are being shown allright, but when not on the homepage indeed the js file is not loaded. My solution was to have quicktabs only on the homepage... ! Probably there is a betting fix out there ;)
Comment #10
mmmweb commentedSame issue. When logged in the tabs are fine, but when logged out the content is stacked...looks terrible! I only have this showing on the front page too.
So we have an issue where css and js are not loading to anonymous users...did anyone figure out a fix for this yet? I'll be trying a few things, so I'll let y'all know if they work!
Comment #11
sclowry commentedDid this get worked out? I am having the same issue and I see there has not been any activity on this issue for a couple weeks.
Comment #12
pasqualleis it still a problem with the latest release?
Comment #13
druvision commentedIt seems to me as a duplicate of http://drupal.org/node/342459#comment-1202088 - where anonymous users can't see the tabs.
The attached patch solves it for the latest dev release as of today.
Comment #14
pasqualleAs I see there are 2 issues with this quicktabs.js not loaded problem.
1. anonymous user vs admin
2. firefox vs IE
The first issue is most probably a block caching issue. As i know setting cache to false in drupal_add_js does not solve this problem, but you can still convince me that it works..
The second issue. As I googled around, the defer parameter fixed some problems with javascript in IE for many people. I think setting this parameter makes no harm as quicktabs.js should not change the HTML at page load. But I am not convinced, because I still can not reproduce the problem with IE7, and I raised a question when I read the google results.
Is your page valid? please test it with http://validator.w3.org/ The interpretation of invalid pages in different browsers is quite "interesting"..
the other parameters to drupal_add_js() in the patch are set to default
Comment #15
yhager commentedFor me it was happenning for admin as well. After I disabled the block cache, it began working as expected.
I hope this will be fixed soon - the block cache is important for performance.
(I haven't used any patch)
Comment #16
joeyembers commentedI turned off block cache and the tabs showed up just fine for anonymous users.
Comment #17
katbailey commentedMarking as duplicate of #342459: Block cache problem (Not showing for anonymous or authenticated users).