first i install slider_text field module.
then i come to know that JQP module is also required for enable slider_text field module.
so i install that also.
i also created field using that.
but when i click on "create content" and select that particular type then it gives error like "Fatal error: Call to undefined function jqp_add_js() in ...\sites\all\modules\slider_textfield\slider_textfield.module on line 134.

CommentFileSizeAuthor
#5 slider_textfield.zip63.66 KBakaserer

Comments

dayanapatel’s picture

Priority: Minor » Normal
skilip’s picture

Priority: Normal » Critical

jQp has been updated several times since the latest release of slider_textfield. I'll fix this asap. I'm sorry for your inconvenience!

hefox’s picture

subscribe

The install txt will also need to be updated; till then perhaps update the project page to reflect that? (right now it mentions how jqp is in development).

akaserer’s picture

hi

i just changed the slider_textfield.module file - line 133 to use drupal standard the drupal_add_js function instead fo jqp_add_js.

and i copied the 2 JS files to the slider_textfield module folder.
not it seems to be ok

  //  Add the ui scripts
//  jqp_add_js('jquery.ui.core.min.js');
//  jqp_add_js('jquery.ui.slider.min.js');

  // Add our custom js and css
  $path = drupal_get_path('module', 'slider_textfield');
  drupal_add_js("$path/slider_textfield.js");
  drupal_add_js("$('.form-text.slider_textfield').css({'display':'none'});", 'inline', 'footer');
  drupal_add_css("$path/slider_textfield.css");

just use firebug to see if your JS file is loaded.

akaserer’s picture

StatusFileSize
new63.66 KB
Fidelix’s picture

So, i see the module does not currently work.

What can end users do about that? Just sit and wait or is there a patch or something?

Thank you for this awesome module.

Fidelix’s picture

Your pack worked for me. Thanx.

rooby’s picture

The patch in #434448-9: Why not use jQuery UI module' 'ui.slider' instead? fixes this issue.

I would imagine a version of that patch will eventually make it into the module so that should be the path to solving this one.