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 on Image/File Uploader
Avatar
Maria Lehman
Member
Free Members
sp_UserOfflineSmall Offline
Jul 26, 2013 - 8:37 am

I switched the two lines so the bootstrap runs first. I don't think anything is broken. All seems to be working ok. But I still have the problem with the "Start Upload" button within the forum.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 26, 2013 - 1:05 pm

No, that wont do it... its jquery ui that needs to load after bootstrap... and right now, doesnt look like your theme is loading it...  so we can add it and just make a dependency... so something like

wp_enqueue_script('jquery-ui-core', '', array('jquery', 'sf-bootstrap-js'), '', true);

put it at the end of the wp enqueue statements...

Avatar
Maria Lehman
Member
Free Members
sp_UserOfflineSmall Offline
Jul 26, 2013 - 1:36 pm

I added that line of code at the end of the enqueue statements.

Still, the problem remains. I can't get the "Start Upload" button to work.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 26, 2013 - 2:34 pm

Is there any caching at work? WP caching plugins? Or simply the browser caching?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Maria Lehman
Member
Free Members
sp_UserOfflineSmall Offline
Jul 26, 2013 - 2:45 pm

No, there is no caching at work. No caching plugins and I checked the forum on a different computer and cleared browser cache on my computer --- and still, the "Start Upload" button doesn't work.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 26, 2013 - 3:08 pm

Ah - this shouod be it...

Go back to the file you edited earlier and find this line near the top:

wp_register_script('sf-bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', 'jquery', NULL, TRUE);

Can you change that true at the end to false?

 

andy-signature.png
YELLOW
SWORDFISH
Avatar
Maria Lehman
Member
Free Members
sp_UserOfflineSmall Offline
Jul 26, 2013 - 3:15 pm

I changed the line so it reads like this:

 wp_register_script('sf-bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', 'jquery', NULL, FALSE);

 

Is that correct? If so, the problem still persists --- the Start Upload button doesn't work.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 26, 2013 - 4:40 pm

Yes that was right but looking at the generated html source code on your site I see that the bootstrap file is STILL being loaded after jQuery UI. And I really am not sure why (Steve: Any ideas?) it is still doing that.

One last thing before we dig deeper. Go to the forum admin > Integration > Page and Permalink and turn on the option to 'Load javascript in footer'. Might just tip the balance...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Maria Lehman
Member
Free Members
sp_UserOfflineSmall Offline
Jul 26, 2013 - 4:46 pm

That's it! It worked!

Thanks so much to both of you for your help.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 26, 2013 - 5:15 pm

Sorry it took so long to figure it out!
meanwhile we just wish theme authors did not use these non-WP standard libraries which makes life a problem for their users.

andy-signature.png
YELLOW
SWORDFISH
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