Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Start Upload button not working
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 8, 2014 - 10:06 pm

the theme or other is still loading a copy of bootstrap in the footer...

<script type='text/javascript' src='http://vapersplace.com/wp-content/themes/powermag/js/bootstrap.min.js?ver=2.0'></script>

which is well after jquery ui is loaded...  That will cause problems...  As discussed, its also loaded in the head before jquery ui...  so just remove the second loading in the footer...

I dont think js/cs order matters...

Avatar
Kevin Bowers
Member
Free Members
sp_UserOfflineSmall Offline
Jan 9, 2014 - 6:42 am

Mr Papa said
the theme or other is still loading a copy of bootstrap in the footer...

<script type='text/javascript' src='http://vapersplace.com/wp-content/themes/powermag/js/bootstrap.min.js?ver=2.0'></script>

which is well after jquery ui is loaded...  That will cause problems...  As discussed, its also loaded in the head before jquery ui...  so just remove the second loading in the footer...

I dont think js/cs order matters...

I removed the second loading in the footer and it still doesn't work.

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 9, 2014 - 8:44 am

Well - perhaps a double check is the most sensible thing. If you could remove - briefly for testing - ALL calls to load the bootstrap JS and then try the attachment dialog it will perhaps show one way or the other if this is still the cause. I think you would need to disable cloudflare as well which always gets in the way of any proper testing.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kevin Bowers
Member
Free Members
sp_UserOfflineSmall Offline
Jan 9, 2014 - 11:34 am

Yellow Swordfish said
Well - perhaps a double check is the most sensible thing. If you could remove - briefly for testing - ALL calls to load the bootstrap JS and then try the attachment dialog it will perhaps show one way or the other if this is still the cause. I think you would need to disable cloudflare as well which always gets in the way of any proper testing.

When I remove all calls to bootstrap nothing works at all. The Add Topic and Add Reply buttons don't work so I can't open anything.

This is very frustrating. I sent a message to the theme creator and told him about this issue. His response was it was an issue with the plugin and he doesn't provide support for plugins.

He is wrong. There is nothing wrong with this plugin. I've tried 5 different themes and the upload button works on all of them. There is an issue with his theme and the jquery somewhere in his theme is interfering with the upload button.

I might just have to eat the $60.00 I paid for the theme and purchase another one :(

I thank you guys for your help. The both of you have always been very helpful and offer fantastic support.

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 9, 2014 - 11:45 am

Yes - Bootstrap is NOT a supported WordPress library and it is known to just stomp all over jQuery which is.

I have a few minutes spare at the moment if you want to email me a copy of the theme I could perhaps take a quick look - 'andy at simple-press dot com'.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kevin Bowers
Member
Free Members
sp_UserOfflineSmall Offline
Jan 9, 2014 - 12:35 pm

Yellow Swordfish said
Yes - Bootstrap is NOT a supported WordPress library and it is known to just stomp all over jQuery which is.

I have a few minutes spare at the moment if you want to email me a copy of the theme I could perhaps take a quick look - 'andy at simple-press dot com'.

e-mail sent. Thanks so much Andy.

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 9, 2014 - 2:58 pm

Well I will be honest. After forcing Bootstrap.js to be loaded earlier than jQuery UI I had no problem with the attachments buttons. All seemed well.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kevin Bowers
Member
Free Members
sp_UserOfflineSmall Offline
Jan 9, 2014 - 3:26 pm

Yellow Swordfish said
Well I will be honest. After forcing Bootstrap.js to be loaded earlier than jQuery UI I had no problem with the attachments buttons. All seemed well.

Really? Maybe I was doing it wrong. Can you instruct me on how to do it?

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 9, 2014 - 3:40 pm

All I did was find the wo_enqueue_script() call for Bootstrap.js in the theme code and change the end 'true' to 'false' so that it loaded in the header. Then in the forum admin > integration > page and permalink panel I ensured that the SP javascript was being loaded in the footer.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kevin Bowers
Member
Free Members
sp_UserOfflineSmall Offline
Jan 9, 2014 - 3:51 pm

Yellow Swordfish said
All I did was find the wo_enqueue_script() call for Bootstrap.js in the theme code and change the end 'true' to 'false' so that it loaded in the header. Then in the forum admin > integration > page and permalink panel I ensured that the SP javascript was being loaded in the footer.

So change this:

wp_enqueue_script( 'bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array( 'jquery' ), '2.0', true );

To this:

wp_enqueue_script( 'bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array( 'jquery' ), '2.0', false );

 

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: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625