Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Warning: Cannot modify header information - headers already sent by (output started at /home/themes/public_html/forums/bb-includes/db-mysql.php:12) in /home/themes/public_html/forums/my-templates/kakumei-variant/rss2.php on line 1
ThemeShaper Forums Topic: JQuery compatibility http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Sat, 23 May 2015 16:25:04 +0000 72quadrat on "JQuery compatibility" http://forums.themeshaper.com/topic/jquery-compatibility#post-8027 Mon, 23 Nov 2009 21:20:36 +0000 72quadrat 8027@http://forums.themeshaper.com/ <p>O.K. I've a smilar Problem. Now i have a working Function in my functions.php. But it just works on FF, Safari and such but not on IE7 and IE6. I think it's because of the doubled jQuery.?!?<br /> <code><br /> function simplyread_head() {<br /> wp_deregister_script('jquery');<br /> wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', false, '1.3.2');<br /> //wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js');<br /> //wp_register_script('jquery', '/wp-content/themes/hoenerdruck_v3/js/jquery.easing.1.3.js');<br /> //wp_register_script('jquery', '/wp-content/themes/hoenerdruck_v3/js/jquery.coda-slider-2.0.js');<br /> wp_enqueue_script('jquery');<br /> $content .= "\t";<br /> $content .= '&lt;script type="text/javascript" src="/wp-content/themes/hoenerdruck_v3/js/jquery-1.3.2.min.js"&gt;&lt;/script&gt;';<br /> $content .= "\n\t";<br /> $content .= '&lt;script type="text/javascript" src="/wp-content/themes/hoenerdruck_v3/js/jquery.easing.1.3.js"&gt;&lt;/script&gt;';<br /> $content .= "\n\t";<br /> $content .= '&lt;script type="text/javascript" src="/wp-content/themes/hoenerdruck_v3/js/jquery.coda-slider-2.0.js"&gt;&lt;/script&gt;';</p> <p> $content .= "\n\t";<br /> $content .= '&lt;script type="text/javascript"&gt;';<br /> $content .= "\n\t\t";<br /> $content .= '$().ready(function() {';<br /> $content .= "\n\t\t";<br /> $content .= '$(\'#coda-slider-1\').codaSlider({';<br /> $content .= "\n\t\t";<br /> $content .= 'dynamicArrows: false,';<br /> $content .= "\n\t\t";<br /> $content .= 'autoHeightEaseDuration: 500,';<br /> $content .= "\n\t\t";<br /> $content .= 'slideEaseDuration: 800,';<br /> $content .= "\n\t\t";<br /> $content .= '});';<br /> $content .= "\n\t\t";<br /> $content .= '});';<br /> $content .= "\n\t";<br /> $content .= '&lt;/script&gt;';</p> <p> echo $content;<br /> };<br /> add_action('wp_head','simplyread_head',1);<br /> </code> </p> Chris on "JQuery compatibility" http://forums.themeshaper.com/topic/jquery-compatibility#post-4556 Mon, 15 Jun 2009 16:17:27 +0000 Chris 4556@http://forums.themeshaper.com/ <p>Take a look here: <a href="http://forums.themeshaper.com/topic/wordpress-28">WordPress 2.8</a> </p> hylopu on "JQuery compatibility" http://forums.themeshaper.com/topic/jquery-compatibility#post-4539 Sun, 14 Jun 2009 18:55:44 +0000 hylopu 4539@http://forums.themeshaper.com/ <p>Hi Guys - just an FYI for anyone finding this thread - I had a problem with posting content after I upgraded to WP 2.8 using the swap_jquery() function posted in this thread. </p> <p>Any content typed into the text area would disappear on saving, and I could no longer switch between the html and visual tabs (stuck in place). There may have been some other admin UI problems elsewhere, but those were the obvious ones. </p> <p>Once I removed swap_jquery() from my child theme's functions.php, normal functionality returned. Is WP 2.8 reliant on a different version of jquery or something? </p> Chris on "JQuery compatibility" http://forums.themeshaper.com/topic/jquery-compatibility#post-2665 Sat, 28 Mar 2009 20:13:17 +0000 Chris 2665@http://forums.themeshaper.com/ <p>Hey Danny,</p> <p>yes .. this code will run with WordPress &gt;= 2.8</p> <p>Cheers,</p> <p>Chris </p> dannydamnboy on "JQuery compatibility" http://forums.themeshaper.com/topic/jquery-compatibility#post-2664 Sat, 28 Mar 2009 19:53:42 +0000 dannydamnboy 2664@http://forums.themeshaper.com/ <p>Hey Chris, let me understand well:<br /> <pre><code>function swap_jquery() { wp_deregister_script(&#39;jquery&#39;); wp_register_script(&#39;jquery&#39;, (&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;), false, &#39;1.3.2&#39;); wp_enqueue_script(&#39;jquery&#39;); } add_action(&#39;init&#39;, &#39;swap_jquery&#39;);</code></pre> <p>does will work in 2.8 too? am I wrong? </p> Chris on "JQuery compatibility" http://forums.themeshaper.com/topic/jquery-compatibility#post-2437 Fri, 20 Mar 2009 14:41:45 +0000 Chris 2437@http://forums.themeshaper.com/ <p>Hey Bjoern,</p> <p>now I got it. The problem is caused by the differences between WP 2.71 and WP 2.8.</p> <p>In WP 2.71 the function wp_register_script will register the script and drop it into wp_head without any priority. That's why your function child_head is working (using priority 1).</p> <p>In WP 2.8 the function wp_register_script will only register the script. You still need the function wp_enqueue_script as a loader. And this loader uses priority 1 to put it into the first place of wp_head.</p> <p>And the missing function wp_enqueue_script (WP 2.71) doesn't create any error.</p> <p>Cheers,</p> <p>Chris </p> demetris on "JQuery compatibility" http://forums.themeshaper.com/topic/jquery-compatibility#post-2416 Thu, 19 Mar 2009 14:48:46 +0000 demetris 2416@http://forums.themeshaper.com/ <p>@ Anthrax: Sorry, Anthrax, I have no idea why this happens. But I use code exactly like this (deregister and then register) with Sandbox for the plugin WP Slimbox 2, and it seems to work fine. </p> Anthrax on "JQuery compatibility" http://forums.themeshaper.com/topic/jquery-compatibility#post-2413 Thu, 19 Mar 2009 13:08:50 +0000 Anthrax 2413@http://forums.themeshaper.com/ <p>@demetris... thanks for the hint but the Problem is:</p> <p>Dont work:<br /> <code><br /> <pre><code>function swap_jquery() { wp_deregister_script(&#39;jquery&#39;); wp_register_script(&#39;jquery&#39;,&#39;http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js&#39;); wp_enqueue_script(&#39;jquery&#39;); wp_register_script(&#39;scrolltop&#39;, get_bloginfo(&#39;stylesheet_directory&#39;) . &#39;/js/jquery.scroll.pack.js&#39;, array(&#39;jquery&#39;),&#39;&#39;); wp_enqueue_script(&#39;scrolltop&#39;); } add_action(&#39;init&#39;, &#39;swap_jquery&#39;);</code></pre> </code></p> <p>Work:<br /> <code><br /> <pre><code>function child_head() { ?&gt; &lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js&quot;&gt;&lt;/script&gt; &lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php bloginfo(&#39;stylesheet_directory&#39;);?&gt;/js/jquery.scroll.pack.js&quot;&gt;&lt;/script&gt; &lt;?php } add_action(&#39;wp_head&#39;, &#39;child_head&#39;,1); //THIS WORK !!!!!!!!!!!</code></pre> <p></code> </p> demetris on "JQuery compatibility" http://forums.themeshaper.com/topic/jquery-compatibility#post-2412 Thu, 19 Mar 2009 12:45:42 +0000 demetris 2412@http://forums.themeshaper.com/ <p>Google, nice JS libraries, and a free CDN: that’s a combination to fall in love with. :-D</p> <p>And also an easy way to serve gzipped javascript if you are on shared hosting (since gzippig is rare in shared-hosting environments).</p> <p>BTW, in the Google API you don’t have to specify the full version if you don’t need to. E.g., you can write:</p> <p><code>wp_register_script(&#39;jquery&#39;,&#39;http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js&#39;)</code></p> <p>and google will serve the latest version available at the specified version level, that is, currently, 1.3.2.</p> <p>In the same way, you can specify just <code>1.2</code>, and Google will serve 1.2.6 or whatever is the latest full version currently. </p> Chris on "JQuery compatibility" http://forums.themeshaper.com/topic/jquery-compatibility#post-2404 Thu, 19 Mar 2009 07:53:51 +0000 Chris 2404@http://forums.themeshaper.com/ <p>Hey Bjoern,</p> <p>this is something you could try:<br /> <pre><code>function swap_jquery() { wp_deregister_script(&#39;jquery&#39;); wp_register_script(&#39;jquery&#39;, (&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;), false, &#39;1.3.2&#39;); wp_enqueue_script(&#39;jquery&#39;); } add_action(&#39;init&#39;, &#39;swap_jquery&#39;);</code></pre> <p>Unfortunately both code snippets are running here without any problem, so it's pretty hard for me to find out what's happening on your system.<br /> The last code snippet might be better because it's using a more official way to trigger the function at the right time.</p> <p>Cheers,</p> <p>Chris </p> Anthrax on "JQuery compatibility" http://forums.themeshaper.com/topic/jquery-compatibility#post-2403 Thu, 19 Mar 2009 06:02:23 +0000 Anthrax 2403@http://forums.themeshaper.com/ <p>Good Morning Chris,</p> <p>thanks for the hint that they don't need a extra function.<br /> I tryied to copy your code in the functions.php without function but only the </p> <blockquote><p>`//echo '&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js"&gt;&lt;/script&gt;';<br /> };`</p></blockquote> <p>works ... </p> Chris on "JQuery compatibility" http://forums.themeshaper.com/topic/jquery-compatibility#post-2382 Wed, 18 Mar 2009 19:21:55 +0000 Chris 2382@http://forums.themeshaper.com/ <p>Just put these line into your functions.php ..<br /> <pre><code>wp_deregister_script(&#39;jquery&#39;); wp_register_script(&#39;jquery&#39;, (&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;), false, &#39;1.3.2&#39;); wp_enqueue_script(&#39;jquery&#39;);</code></pre> <p>.. no need to put it into a function.</p> <p>1st line will de-register the standard jQuery coming with WP.<br /> 2nd line will register jQuery 1.3.2 with WP<br /> 3rd line will enqueue jQuery into a loader script that will hook the script call into wp_head.</p> <p>Cheers,</p> <p>Chris </p> Anthrax on "JQuery compatibility" http://forums.themeshaper.com/topic/jquery-compatibility#post-2371 Wed, 18 Mar 2009 15:03:38 +0000 Anthrax 2371@http://forums.themeshaper.com/ <p>in tons of articles i read i didn't see this one ...but a lot of similar to this.</p> <p>This doesn't work:</p> <pre><code>function simplyread_head() { wp_deregister_script(&#39;jquery&#39;); wp_register_script(&#39;jquery&#39;, &#39;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&#39;, false, &#39;1.3.2&#39;); wp_enqueue_script(&#39;jquery&#39;); //echo &#39;&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js&quot;&gt;&lt;/script&gt;&#39;; }; add_action(&#39;wp_head&#39;,&#39;simplyread_head&#39;,1);</code></pre> <p>but if i insert the 'echo' it works fine.</p> <p>#there is no Thematic-Hook that works with it. I try 'thematic_before', 'thematic_aboveheader' and 'thematic_header'. </p> Chris on "JQuery compatibility" http://forums.themeshaper.com/topic/jquery-compatibility#post-2370 Wed, 18 Mar 2009 14:29:02 +0000 Chris 2370@http://forums.themeshaper.com/ <p>Hey Bjoern,</p> <p>have you seen this article: <a href="http://blog.fusi0n.org/coding/make-your-wordpress-plugins-use-a-different-version-of-a-bundled-javascript-library">Make your Wordpress plugins use a different version of a bundled JavaScript library</a>?</p> <p>Let me know if this works, haven't tested it.</p> <p>Cheers,</p> <p>Chris </p> Anthrax on "JQuery compatibility" http://forums.themeshaper.com/topic/jquery-compatibility#post-2368 Wed, 18 Mar 2009 14:16:47 +0000 Anthrax 2368@http://forums.themeshaper.com/ <p>I'm totally confused about jquery and how it is to use in different versions?</p> <p>Wordpress insert:<br /> <code>&lt;script type=&#39;text/javascript&#39; src=&#39;http://localhost/wordpress/wp-includes/js/jquery/jquery.js?ver=1.2.6&#39;&gt;&lt;/script&gt;</code> in the head.</p> <p>I actually need the Version 1.3.2 of Jquery. If i link it to a separate jqery132.js in my plugin folder all works fine.</p> <p>But if i replace the jqery.js in the wp-includes\js\jquery with the new Version it doesn't work?</p> <p>What is the best way to use a newer Version of JQuery without touching the original jquery.js in Wordpress? </p>