Hi to every drupaler;
I'm here now to tell you about a hudge problem about drupal system; this need to be solved as soon as possible.
please how can I transform this

  <script type="text/javascript" src="/misc/jquery.js?v"></script>
<script type="text/javascript" src="/misc/drupal.js?v"></script>
<script type="text/javascript" src="/misc/progress.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/nice_menus/superfish/js/superfish.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/nice_menus/superfish/js/jquery.bgiframe.min.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/nice_menus/superfish/js/jquery.hoverIntent.minified.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/nice_menus/nice_menus.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/panels/js/panels.js?v"></script>

<script type="text/javascript" src="/sites/all/modules/popup/popup.js?v"></script>
<script type="text/javascript" src="/misc/jquery.form.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/popups/popups.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/views_nivo_slider/js/jquery.nivo.slider.pack.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/views_nivo_slider/js/views_nivo_slider.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/views/js/base.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/views/js/ajax_view.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/quicktabs/js/quicktabs.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/lang_dropdown/lang_dropdown.js?v"></script>

<script type="text/javascript" src="/sites/all/modules/lang_dropdown/msdropdown/jquery.dd.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/ajax/jquery/jquery.a_form.packed.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/ajax/ajax.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/ajax/plugins/thickbox/ajax_thickbox.js?v"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/", "lightbox2": { "rtl": "0", "file_path": "/(\\w\\w/)sites/default/files", "default_image": "/sites/all/modules/lightbox2/images/brokenimage.jpg", "border_size": 10, "font_color": "000", "box_color": "fff", "top_position": "", "overlay_opacity": "0.8", "overlay_color": "000", "disable_close_click": 1, "resize_sequence": 2, "resize_speed": 400, "fade_in_speed": 2000, "slide_down_speed": 600, "use_alt_layout": 1, "disable_resize": 0, "disable_zoom": 0, "force_show_nav": 0, "show_caption": 1, "loop_items": 0, "node_link_text": "", "node_link_target": 0, "image_count": "", "video_count": "", "page_count": "", "lite_press_x_close": "press \x3ca href=\"#\" onclick=\"hideLightbox(); return FALSE;\"\x3e\x3ckbd\x3ex\x3c/kbd\x3e\x3c/a\x3e to close", "download_link_text": "", "enable_login": false, "enable_contact": false, "keys_close": "c x 27", "keys_previous": "p 37", "keys_next": "n 39", "keys_zoom": "z", "keys_play_pause": "32", "display_image_size": "original", "image_node_sizes": "()", "trigger_lightbox_classes": "", "trigger_lightbox_group_classes": "", "trigger_slideshow_classes": "", "trigger_lightframe_classes": "", "trigger_lightframe_group_classes": "", "custom_class_handler": 0, "custom_trigger_classes": "", "disable_for_gallery_lists": true, "disable_for_acidfree_gallery_lists": true, "enable_acidfree_videos": true, "slideshow_interval": 5000, "slideshow_automatic_start": true, "slideshow_automatic_exit": true, "show_play_pause": true, "pause_on_next_click": false, "pause_on_previous_click": true, "loop_slides": false, "iframe_width": 600, "iframe_height": 400, "iframe_border": 1, "enable_video": 0 }, "nice_menus_options": { "delay": 800, "speed": 1 }, "popup": { "effects": { "show": { "default": "this.body.show();", "fade": "\n        if (this.opacity){\n          this.body.fadeTo(\'medium\',this.opacity);\n        }else{\n          this.body.fadeIn(\'medium\');\n        }", "slide-down": "this.body.slideDown(\'medium\')", "slide-down-fade": "\n        this.body.animate(\n          {\n            height:\'show\',\n            opacity:(this.opacity ? this.opacity : \'show\')\n          }, \'medium\'\n        );" }, "hide": { "default": "this.body.hide();", "fade": "this.body.fadeOut(\'medium\');", "slide-down": "this.body.slideUp(\'medium\');", "slide-down-fade": "\n        this.body.animate(\n          {\n            height:\'hide\',\n            opacity:\'hide\'\n          }, \'medium\'\n        );" } }, "linger": "500" }, "popups": { "originalPath": "welcome", "defaultTargetSelector": "div.left-corner \x3e div.clear-block:last", "modulePath": "sites/all/modules/popups", "autoCloseFinalMessage": 1 }, "views_nivo_slider": { "views-nivo-slider-gallery_contents-block_1": { "startSlide": 0, "effect": "random", "slices": 15, "animSpeed": 500, "pauseTime": 3000, "directionNav": false, "directionNavHide": true, "controlNav": true, "controlNavThumbs": false, "controlNavThumbsFromRel": false, "keyboardNav": true, "pauseOnHover": true, "manualAdvance": false, "captionOpacity": 0.8 } }, "views": { "ajax_path": "/views/ajax", "ajaxViews": [ { "view_name": "gallery_contents", "view_display_id": "block_1", "view_args": "", "view_path": "welcome", "view_base_path": null, "view_dom_id": 1, "pager_element": 0 } ] }, "quicktabs": { "qt_1": { "tabs": [ 0, 0 ] } }, "langDropdown": { "jsWidget": { "languageicons": { "http://sms.demareuil.fr/": "/sites/all/modules/languageicons/flags/en.png", "http://sms.demareuil.fr/fr": "/sites/all/modules/languageicons/flags/fr.png" }, "visibleRows": "5", "rowHeight": "23", "animStyle": "slideDown" } } });
//--><!]]>
</script>

into this

  <script type="text/javascript" src="/misc/jquery.js?v"></script>
<script type="text/javascript" src="/misc/drupal.js?v"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/", "lightbox2": { "rtl": "0", "file_path": "/(\\w\\w/)sites/default/files", "default_image": "/sites/all/modules/lightbox2/images/brokenimage.jpg", "border_size": 10, "font_color": "000", "box_color": "fff", "top_position": "", "overlay_opacity": "0.8", "overlay_color": "000", "disable_close_click": 1, "resize_sequence": 2, "resize_speed": 400, "fade_in_speed": 2000, "slide_down_speed": 600, "use_alt_layout": 1, "disable_resize": 0, "disable_zoom": 0, "force_show_nav": 0, "show_caption": 1, "loop_items": 0, "node_link_text": "", "node_link_target": 0, "image_count": "", "video_count": "", "page_count": "", "lite_press_x_close": "press \x3ca href=\"#\" onclick=\"hideLightbox(); return FALSE;\"\x3e\x3ckbd\x3ex\x3c/kbd\x3e\x3c/a\x3e to close", "download_link_text": "", "enable_login": false, "enable_contact": false, "keys_close": "c x 27", "keys_previous": "p 37", "keys_next": "n 39", "keys_zoom": "z", "keys_play_pause": "32", "display_image_size": "original", "image_node_sizes": "()", "trigger_lightbox_classes": "", "trigger_lightbox_group_classes": "", "trigger_slideshow_classes": "", "trigger_lightframe_classes": "", "trigger_lightframe_group_classes": "", "custom_class_handler": 0, "custom_trigger_classes": "", "disable_for_gallery_lists": true, "disable_for_acidfree_gallery_lists": true, "enable_acidfree_videos": true, "slideshow_interval": 5000, "slideshow_automatic_start": true, "slideshow_automatic_exit": true, "show_play_pause": true, "pause_on_next_click": false, "pause_on_previous_click": true, "loop_slides": false, "iframe_width": 600, "iframe_height": 400, "iframe_border": 1, "enable_video": 0 }, "nice_menus_options": { "delay": 800, "speed": 1 }, "popup": { "effects": { "show": { "default": "this.body.show();", "fade": "\n        if (this.opacity){\n          this.body.fadeTo(\'medium\',this.opacity);\n        }else{\n          this.body.fadeIn(\'medium\');\n        }", "slide-down": "this.body.slideDown(\'medium\')", "slide-down-fade": "\n        this.body.animate(\n          {\n            height:\'show\',\n            opacity:(this.opacity ? this.opacity : \'show\')\n          }, \'medium\'\n        );" }, "hide": { "default": "this.body.hide();", "fade": "this.body.fadeOut(\'medium\');", "slide-down": "this.body.slideUp(\'medium\');", "slide-down-fade": "\n        this.body.animate(\n          {\n            height:\'hide\',\n            opacity:\'hide\'\n          }, \'medium\'\n        );" } }, "linger": "500" }, "popups": { "originalPath": "welcome", "defaultTargetSelector": "div.left-corner \x3e div.clear-block:last", "modulePath": "sites/all/modules/popups", "autoCloseFinalMessage": 1 }, "views_nivo_slider": { "views-nivo-slider-gallery_contents-block_1": { "startSlide": 0, "effect": "random", "slices": 15, "animSpeed": 500, "pauseTime": 3000, "directionNav": false, "directionNavHide": true, "controlNav": true, "controlNavThumbs": false, "controlNavThumbsFromRel": false, "keyboardNav": true, "pauseOnHover": true, "manualAdvance": false, "captionOpacity": 0.8 } }, "views": { "ajax_path": "/views/ajax", "ajaxViews": [ { "view_name": "gallery_contents", "view_display_id": "block_1", "view_args": "", "view_path": "welcome", "view_base_path": null, "view_dom_id": 1, "pager_element": 0 } ] }, "quicktabs": { "qt_1": { "tabs": [ 0, 0 ] } }, "langDropdown": { "jsWidget": { "languageicons": { "http://sms.demareuil.fr/": "/sites/all/modules/languageicons/flags/en.png", "http://sms.demareuil.fr/fr": "/sites/all/modules/languageicons/flags/fr.png" }, "visibleRows": "5", "rowHeight": "23", "animStyle": "slideDown" } } });
//--><!]]>
</script>
<script type="text/javascript" src="/misc/progress.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/nice_menus/superfish/js/superfish.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/nice_menus/superfish/js/jquery.bgiframe.min.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/nice_menus/superfish/js/jquery.hoverIntent.minified.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/nice_menus/nice_menus.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/panels/js/panels.js?v"></script>

<script type="text/javascript" src="/sites/all/modules/popup/popup.js?v"></script>
<script type="text/javascript" src="/misc/jquery.form.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/popups/popups.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/views_nivo_slider/js/jquery.nivo.slider.pack.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/views_nivo_slider/js/views_nivo_slider.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/views/js/base.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/views/js/ajax_view.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/quicktabs/js/quicktabs.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/lang_dropdown/lang_dropdown.js?v"></script>

<script type="text/javascript" src="/sites/all/modules/lang_dropdown/msdropdown/jquery.dd.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/ajax/jquery/jquery.a_form.packed.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/ajax/ajax.js?v"></script>
<script type="text/javascript" src="/sites/all/modules/ajax/plugins/thickbox/ajax_thickbox.js?v"></script>

because all javascript packages are bugging with the first configuration My website can't work .
I need jquery to work fine

I'm so stressed.

sorry for my english

Comments

nevets’s picture

What is the difference between the two configurations?

jaypan’s picture

Yeah, that's a little too much to go and visually compare. Why don't you tell us what the problem is first, it will make it easier to help.

Contact me to contract me for D7 -> D10/11 migrations.

kwemart’s picture

1-differences:
just look in the first configuration

the drupal configuration is after all javascript, packages. but in some of those javascript package surch as nice_menu.js you have this

2- the problem:

(function ($) {
  $(document).ready(function() {
   if(Drupal.settings){ $('ul.nice-menu').superfish({
      // Apply a generic hover class.
      hoverClass: 'over',
      // Disable generation of arrow mark-up.
      autoArrows: false,
      // Disable drop shadows.
      dropShadows: false,
      // Mouse delay.
      delay: Drupal.settings.nice_menus_options.delay,
      // Animation speed.
      speed: Drupal.settings.nice_menus_options.speed
    // Add in Brandon Aaron’s bgIframe plugin for IE select issues.
    // http://plugins.jquery.com/node/46/release
    }).find('ul').bgIframe({opacity:false});
    $('ul.nice-menu ul').css('display', 'none');
    }
  });
})(jQuery);

then you have this bug on all browser
Error : Drupal.settings.nice_menus_options is undefined
i think because the nice menu javascript is executed before the drupal setting script.
you also have many other script that can't be executed surch as the nivo_slider, quicktabs , textarea, fieldset etc.

thanks for helping the drupal community

jaypan’s picture

You have misdiagnosed your problems. Removing some lines of your script leaves you with this:

if(Drupal.settings){ $('ul.nice-menu').superfish({
      delay: Drupal.settings.nice_menus_options.delay,
     }
  });

You'll notice that Drupal.settings.nice_menus_options is inside a conditional that is checking to see if Drupal.settings is set. If Drupal.settings hadn't yet been initiated, Drupal.settings.nice_menus_options would never be reached, which means that you couldn't receive the error you did.

Unfortunately I can't see what your problem actually is, I can only tell you that it's not what you were thinking.

Contact me to contract me for D7 -> D10/11 migrations.

kwemart’s picture

I modified nice_menu.js adding that condition to check to see if drupal.settings is set before execution.
the original nice_menu.js does'nt have that

please go here www.mobicible.com ( sorry for ads ) if you have firefox, then look into your error console. you'll understand.

ps:the real url of the website where i'm working can be opened by right clicking on a link and opening it on a new tab.

my problem is that when you are looged in (after account creation) the nivo_slider won't work again . please make a little tour.

thanks

jaypan’s picture

Your problem is in the Nivo-slider script. Drupal 6 (which your site is built on) uses jQuery 1.2.6, but you the Nivo slider script uses .live(), which was not introduced until jQuery 1.3. Unfortunately, once that one error hits, all the rest of the javascript on your site fails as a result.

Remove the nivo slider, and your problem should go away.

Error:

$(".nivo-controlNav a", slider).live is not a function
http://sms.demareuil.fr/sites/all/modules/views_nivo_slider/js/jquery.ni...
Line 16

Contact me to contract me for D7 -> D10/11 migrations.

kwemart’s picture

So I have to install D7... I can't present this website without nino_slider...

I'll try D7 localy...

Cheer.

jaypan’s picture

Or you can use the jQuery update module, which brings you up to 1.3.

Contact me to contract me for D7 -> D10/11 migrations.