Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Toolset, Admin links TinyMCE problems
Avatar
grof
Member
Free Members
sp_UserOfflineSmall Offline
Dec 16, 2011 - 4:25 pm

I have problems with showing Post's toolset and Admin links jscript menus in WP 3.3 and SP 5.0. After showing these menus, they are immediately disappear from screen.

 

TinyMCE, when opened does not allow to write anything in the editor area.

Why? 

(you can try this on my test site: http://igranje-org.enc.com.hr/forum

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 16, 2011 - 5:06 pm

looks like js issue... and perhaps conflict with mootools which is known to be very problematic for wp since its js shares namespace with jquery...  its the blip slideshow plugin...

it that plugin really do anything on the forum page???  shouldnt be loaded if not, but too many plugins get lazy...

can you temp disable it, clear browser cache and see if it resolves it?

Avatar
grof
Member
Free Members
sp_UserOfflineSmall Offline
Dec 17, 2011 - 1:26 pm

Mr Papa said

looks like js issue... and perhaps conflict with mootools which is known to be very problematic for wp since its js shares namespace with jquery...  its the blip slideshow plugin...

it that plugin really do anything on the forum page???  shouldnt be loaded if not, but too many plugins get lazy...

can you temp disable it, clear browser cache and see if it resolves it?

Still does not work... maybe some other plugin makes trouble? I'll try to disable one by one in some days 😉

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 17, 2011 - 3:53 pm

actually, after another look, I bet its the theme...

looks like its including jquery ui from googleapis instead of using the jquery ui that ships with wp...  so you now have to versions loaded... and the one from googleapis is older (1.7.1) vs the version loaded by wp (1.8.16)...  and there were some major changes in between...

themes (and plugins) need to quit loading js that wp supplies... likely to cause issues like this...

you can test my theory by a quick switch to the wp default theme and see if it works... then fix the theme to use the wp api and enqueue js including jquery ui...

Avatar
grof
Member
Free Members
sp_UserOfflineSmall Offline
Dec 18, 2011 - 4:36 am

Mr Papa said

actually, after another look, I bet its the theme...

looks like its including jquery ui from googleapis instead of using the jquery ui that ships with wp...  so you now have to versions loaded... and the one from googleapis is older (1.7.1) vs the version loaded by wp (1.8.16)...  and there were some major changes in between...

themes (and plugins) need to quit loading js that wp supplies... likely to cause issues like this...

you can test my theory by a quick switch to the wp default theme and see if it works... then fix the theme to use the wp api and enqueue js including jquery ui...

You are right! With some other theme it's works! Maybe google+ widget force using that problematic jquery?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 18, 2011 - 5:01 am

You can tell what is loading it by either looking at the theme code or viewing the source after you load a page. It is almost certainly the theme. Some theme authors just write bad code and do not use the WP API riding roughshod over other plugins.

andy-signature.png
YELLOW
SWORDFISH
Avatar
grof
Member
Free Members
sp_UserOfflineSmall Offline
Dec 18, 2011 - 9:16 am

Yes, this is the theme's problem.

 

I found this inside script.php of my theme:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js"></script>
 <script type="text/javascript" src="<?php bloginfo('template_directory')?>/js/jquery.cycle.all.min.js"></script> 
 <script type="text/javascript" src="<?php bloginfo('template_directory')?>/js/jquery.easing.1.3.js"></script> 
 <script type="text/javascript" src="<?php bloginfo('template_directory')?>/js/superfish.js"></script>

So, may theme call googleapis instead WP jquery. I must see how can handle this...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 18, 2011 - 10:38 am

the proper way in wp to load js such as jquery:

http://codex.wordpress.org/Fun.....eue_script

so all four of those loads are wrong...  should just load the last three using wp_enqueue_script() with jquery as a dependency... then wp will load the version it ships with...

Avatar
grof
Member
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2011 - 4:12 am

Mr Papa said

the proper way in wp to load js such as jquery:

http://codex.wordpress.org/Fun.....eue_script

so all four of those loads are wrong...  should just load the last three using wp_enqueue_script() with jquery as a dependency... then wp will load the version it ships with...

I'm simply commented script line with googleapis and now all works perfectly (a little formatting issues are still here, but this is not problem linked to jquery. Internal frame of showing menu is a little too wide for external frame of menu...)

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2011 - 9:27 am

normally you shouldnt have to include jquery at all... just list as dependency, so just wish those theme authors doing it wrong would get with the times...

not sure I follow your last...  did you need help with something still?  if so, please be bit more specific or use a screenshot...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625