collapsible.js not included for non-admins...
lenkkivihko - March 9, 2008 - 18:16
collapsible.js is not included in for non-admins. Admin get's it included. And all works fine.
Setup:
* 5.x
* j
For admin:
<style type="text/css" media="all">.mceEditor img { display: inline; }</style>
<link rel="shortcut icon" href="/files/favicon.GIF" type="image/x-icon" />
<style type="text/css" media="all">@import "/files/css/4264b907a1b1273b90af18ba2d611cc5.css";</style>
<script type="text/javascript" src="/misc/jquery.js"></script>
<script type="text/javascript" src="/misc/drupal.js"></script>
<script type="text/javascript" src="/modules/contrib/jstools/jstools.js"></script>
<script type="text/javascript" src="/modules/contrib/jstools/tabs/jquery.tabs.pack.js"></script>
<script type="text/javascript" src="/modules/contrib/jstools/jquery.history_remote.min.js"></script>
<script type="text/javascript" src="/modules/contrib/jstools/tabs/tabs.js"></script>
<script type="text/javascript" src="/modules/contrib/og/og.js"></script>
<script type="text/javascript" src="/modules/contrib/pathauto/pathauto.js"></script>
<script type="text/javascript" src="/modules/contrib/tinymce/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/misc/autocomplete.js"></script>
<script type="text/javascript" src="/misc/collapse.js"></script>
<script type="text/javascript" src="/misc/textarea.js"></script>
<script type="text/javascript" src="/modules/contrib/jstools/collapse.js"></script> <----------------------- included -----------------------
<script type="text/javascript">Drupal.extend({ settings: { "jstools": { "cleanurls": true, "basePath": "/" }, "tabs": { "slide": false, "fade": false, "speed": "slow", "auto_height": false } } });</script>
<script type="text/javascript">For non-admins:
<style type="text/css" media="all">.mceEditor img { display: inline; }</style>
<link rel="shortcut icon" href="/files/favicon.GIF" type="image/x-icon" />
<style type="text/css" media="all">@import "/files/css/4264b907a1b1273b90af18ba2d611cc5.css";</style>
<script type="text/javascript" src="/misc/jquery.js"></script>
<script type="text/javascript" src="/misc/drupal.js"></script>
<script type="text/javascript" src="/modules/contrib/jstools/jstools.js"></script>
<script type="text/javascript" src="/modules/contrib/jstools/tabs/jquery.tabs.pack.js"></script>
<script type="text/javascript" src="/modules/contrib/jstools/jquery.history_remote.min.js"></script>
<script type="text/javascript" src="/modules/contrib/jstools/tabs/tabs.js"></script>
<script type="text/javascript" src="/modules/contrib/tinymce/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/misc/autocomplete.js"></script>
<script type="text/javascript">Drupal.extend({ settings: { "jstools": { "cleanurls": true, "basePath": "/" }, "tabs": { "slide": true, "fade": true, "speed": "fast", "auto_height": true } } });</script>
<script type="text/javascript">
function mceToggle(id, linkid) {collapse.js ei ole mukana....

sorry for fast post...
So for some odd reason collapse.js get's not included.
Setup
* 5.x D
* jstools
* friendsforever -theme
I had a test site and all worked fine in there. But now in production the collapsible does not work...
Thanks for help!
Harjoituspäiväkirja - www.lenkkivihko.fi
Wait -- Explain More...
It sounds like your saying that "Collapsible Blocks" are not working on your site. Is the the case? If it is -- it's most likely because your using a theme that does not support Collapsible Blocks. I found this to be the case with bluemarine. If you are using a theme that does not support it -- my best advice is to look at the style-sheet for the Garland theme. I noticed that it does work for that theme and my suspicion is you just need to build your blocks like Garland does -- thus take a look at what classes (in the stylesheet) or id's (again in the stylesheet) are affecting the Garland blocks. This will give you insight into why it's not working. Unfortunately, I have never looked at this closely even though my intension was to use that feature.
Thanks GreenLED
Good guess, but I don't think that's the issue. As
* when logged as ADMIN collapsible works fine.
* when logged as non-admin collapsible does not work.
* Additionally in test server all works fine (same server, but a subfolder).
I wonder what is the setting that causes the production setup not to serve collapsible.js to non-admins....
Harjoituspäiväkirja - www.lenkkivihko.fi
Interesting... sounds like
Interesting... sounds like it's some function or something that JStools uses. I wouldn't even know where to look for such an answer. That's a tough one. Someone else should have a stab at this. I gave up on that feature and am not using it -- for the very fact that it did not work on my theme -- and I like to stay "close to home" -- if you know what I mean. I like things to work as close to core as possible -- that way I have less of a chance that they will NOT work later on. I hope you find your answer on this one.
» Respectfully, GreenLED
»