Hi,
I think I've managed to install everything OK, but the slider doesn't appear to become active when I setup an integer CCK.
I've installed the text slider module and jqp with the downloaded core and slider files. I've then added an integer field to a content type with the Slider as the widget. There's some text with "Set the width (in pixels) of the slider for this node type" but there doesn't appear to be an input box to the set the width
When I try and create some content the slider appears with + and - each end, but the slider is static and can't be moved. I've tried adding min and max figures to the give the slider top and bottom range (don't know if this is the right way of doing it) and I've also tried adding a list of numbers in the allowed values box, but the slider stays the same.
Am I doing something wrong, or is it a bug somewhere?
Thanks
Stu
Comments
Comment #1
skilip commentedHey Stu,
Your error seems to be caused by a javascript error and most likely because the required jQuery plugins aren't properly loaded. You need to make sure the plugins are present in the plugins folder and are named correctly. (jquery.ui.core.min.js and jquery.ui.slider.min.js). You also need to clear the jqp's cache. Please apply this patch #349091: Clear cache if a file doesn't exist, so the cache of jqp is cleared every time a plugin isn't found. Otherwise you need to clear this manually when a plugin isn't found.
Good luck
Comment #2
StuartDH commentedHi skilip,
Thanks for the info. I've checked sites/all/plugins and it's got:
jquery.ui.core.min.js (7,317 bytes)
jquery.ui.slider.min.js (11,844 bytes)
I've created a modules/jqp folder and I've added
jqp.module and jqp.info
from http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/jqp/jqp.mod...
then using your issues post http://drupal.org/node/349091 I've manualy changed the two lines (19 & 42) that were
if ($files[$file_name]) {
to
if ($files[$file_name] && file_exists($files[$file_name]->filename)) {
and I've added the following after the else line (24 & 48)
cache_clear_all('jqp_plugins', 'cache');
I don't know how to patch properly, so I've probably mucked up somewhere on that, but I've just tried the above a second time and it's still not working (I've also done the usual update.php after changing the jqp module). Is there anywhere that I could download a patched jqp.module?
I'll keep at it and see how I get on.
Stu
Comment #3
StuartDH commentedAs well as the JQP setup above, I've also got the jquery plugins module http://drupal.org/project/jquery_plugin
Would it be possible to call the plugins from that to see if that would work by adding the core and slider plugins in there.
Stu
Comment #4
skilip commentedHey Stu,
I deliberately switched from jquery_plugin to jqp. The module jqp was not intended to provide a home for jQuery plugins in cvs.drupal.org, not for all downloaded plugins. The jqp module however stores all requested plugins in cache. If the plugin isn't found the first time, there's currently no way the cache can be changed afterwards. I've posted a patch for this #349091: Clear cache if a file doesn't exist.
The problem you are experiencing is probably caused by a bug described here: #353542: slider js doesn't load. I'll port a BETA2 asap which will fix this.
Comment #5
skilip commentedJust ported the new release which fixes this.
Comment #6
skilip commented