Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
public-topic
File Uploader Plugin doesnt upload files
Avatar
Salle Carlzon
Member
Free Members
sp_UserOfflineSmall Offline
Nov 5, 2016 - 12:24 pm
sp_QuotePost Quote

Thanks for the response.

You are indeed right on the permissions. 

I can probably find it if you push me in the right direction where to find it.

I guess it is in one of the .php files of the theme but which one?

Thanks for your patience.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 5, 2016 - 1:21 pm
sp_QuotePost Quote

impossible to tell you which file... that is up to the theme author...  try searching the theme directory and subdirectories for bootstrap.js...

if you post a directory list for this theme, we can probably help drill down...

Avatar
Salle Carlzon
Member
Free Members
sp_UserOfflineSmall Offline
Nov 5, 2016 - 1:28 pm
sp_QuotePost Quote

View post on imgur.com

I hope that is what you meant 🙂

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 5, 2016 - 3:17 pm
sp_QuotePost Quote

yeah, but many choices there since they have many custom files (perfectly valid)...

i would start looking in base.php, loader.php and header.php...  again. looking for something related to bootstrap.js

Avatar
Salle Carlzon
Member
Free Members
sp_UserOfflineSmall Offline
Nov 5, 2016 - 3:29 pm
sp_QuotePost Quote

Thanks for continued patience.

Below is what I found and I just checked the major .php files but can go through each if necessary.

I also include the actual lines in each PHP file.

 

Base.php:

- Nothing

Loader.php:

/**

 

* Include Vafpress Framework

 

*/

 

//require_once 'vafpress/bootstrap.php';

 

Theme header.php:

'walker'=> new Bunch_Bootstrap_walker()

 

Theme functions.php:

//styles

wp_enqueue_style( 'dreamland_bootstrap', get_template_directory_uri() . '/css/bootstrap.css' );

and

wp_enqueue_script( 'dreamland_bootstrap', get_template_directory_uri().'/js/bootstrap.min.js', array(), false,

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 5, 2016 - 3:47 pm
sp_QuotePost Quote

so yeah, the last one...  except you didnt copy the whole line (likely ran to second line) try changing:

wp_enqueue_script( ‘dreamland_bootstrap’, get_template_directory_uri().’/js/bootstrap.min.js’, array(), false,

to

wp_enqueue_script( ‘dreamland_bootstrap’, get_template_directory_uri().’/js/bootstrap.min.js’, array('jquery', 'jquery-ui-core', 'jquery-ui-widget'), false,

and lets see what happens...

Avatar
Salle Carlzon
Member
Free Members
sp_UserOfflineSmall Offline
Nov 5, 2016 - 3:55 pm
sp_QuotePost Quote

I have noticed that most action for this particular theme happens in the functions.php file.

Just to be sure, and I include the full lines below, you want me to change from

Current line:

//scripts

wp_enqueue_script( 'jquery' );

wp_enqueue_script( 'dreamland_bootstrap', get_template_directory_uri().'/js/bootstrap.min.js', array(), false, true );

to:

//scripts

wp_enqueue_script( ‘dreamland_bootstrap’, get_template_directory_uri().’/js/bootstrap.min.js’, array('jquery', 'jquery-ui-core', 'jquery-ui-widget'), false, true );

Is that correct?

Avatar
Salle Carlzon
Member
Free Members
sp_UserOfflineSmall Offline
Nov 5, 2016 - 4:21 pm
sp_QuotePost Quote

Couldnt hold it so I went for it and it seems to work!

I will let you know if I run into problem after more testing the next few days but I would never have figured this out myself by far.

Excellent support and I hope that others can benefit from this thread.

Thanks again.

I will be back with more plugin purchases for sure.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 5, 2016 - 5:10 pm
sp_QuotePost Quote

good news!  thanks for the update...

Avatar
Salle Carlzon
Member
Free Members
sp_UserOfflineSmall Offline
Nov 5, 2016 - 6:59 pm
sp_QuotePost Quote

Well...spoke too soon I guess.

Just noticed that the top menu didnt work on mobile devices or if you shrink the screen to become menu that can be toggled.

Changed the code again and now the menu seem to work fine but puts me back to square one on the file uploader.

Any suggestions?

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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626