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
File Upload Plugin problem
Avatar
Valerio Vassallucci
Member
Free Members
sp_UserOfflineSmall Offline
Nov 17, 2014 - 6:09 am

Hi,

I've installed this plugin and set the permission on the forum but, when i try to upload a document in a post, the upload doesn't start.

I can add one or more a document but, when click on upload, nothing happens.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 17, 2014 - 6:14 am

It sounds like your WP theme (or possibly another WP plugin) is loading the 'BootStrap' JavaScript library which is unsupported by WordPress and clashes with the WP standard and supported jQuery UI library.

See if that is the case in the generated HTML source.

There are many topics on this subject in the forums! It can be dealt with. The key is to ensure that jQuery Ui is loaded AFTER BootStrap...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Valerio Vassallucci
Member
Free Members
sp_UserOfflineSmall Offline
Nov 17, 2014 - 6:59 am

Thanks for your response, in the generated html source of the new post page of the forum, i find this in this order

<script type='text/javascript' src='http://www.laprocidachevorrei.it/wp-includes/js/jquery/jquery.ui.touch-punch.js?ver=0.2.2'></script>

<script src="http://www.laprocidachevorrei.it/wp-content/themes/blue-planet/js/bootstrap.min.js?ver=3.0.0" type="text/javascript"></script>

So the problem maybe what you said.

But now how i can solve the problem? Where i must go to modify the js load order?

 

Thanks in advance

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 17, 2014 - 8:01 am

No easy answer to that. Although if you search for 'bootstrap' on the forums here you will find several solutions. It so much depends upon the WordPress theme you are using and how it does things.

But for starters - if your WordPress theme has a custom admin panel for custom JS then you could try the soliution posted here:

https://simple-press.com/suppo.....g/#p146864

andy-signature.png
YELLOW
SWORDFISH
Avatar
Valerio Vassallucci
Member
Free Members
sp_UserOfflineSmall Offline
Nov 17, 2014 - 12:45 pm

I tried the solution of that post but it does not work, i tried also "load the javascript in the footer" option of simple press but nothing doesn't work.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 17, 2014 - 3:19 pm

Then the two options are either to talk to the author of the theme and ask them how to correct their use of a non-WP supported library. Or to find out where the code is being loaded in the theme and edit the loading sequence. As I said - there are various - probably half a dozen - examples in the forum threads from different themes where users have supplied code answers.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Valerio Vassallucci
Member
Free Members
sp_UserOfflineSmall Offline
Nov 18, 2014 - 11:34 am

Ok solved with help from the theme author (thanks a lot)

For who use the blue planet theme the solution is:

Bootstrap script is loaded in `blue_planet_scripts` function in functions.php. Unfortunately I forgot to make that function overridable from child theme. So you need to modify core file for now. In the future version, I will make this function overridable.

Around line 153, you can find statement to include bootstrap script. Replace that line with following.

 

wp_enqueue_script('bootstrap-script',get_template_directory_uri().'/js/bootstrap.min.js', array(),'3.0.0', FALSE);

Thanks for your support

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Nov 18, 2014 - 12:34 pm

Glad you got it resolved!

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