Support Forum

File Uploader with Pupload and pagelines

PM pas4mobile
pas4mobile
Member

Hello,

I have the same problem as:

https://simple-press.com/support-forum/sp5-plugin-topics/file-uploader-with-pupload-plug-in-not-responsive/

https://simple-press.com/support-forum/sp5-general-topics/cannot-upload-images/

Both solutions do not bring success.

With

  add_action( ‘wp_enqueue_scripts’, ‘deregister_pl_bootstrap’ );
2  
3 function deregister_pl_bootstrap() {
4     if(sp_is_forumpage()) {
5         wp_deregister_script(‘pagelines-bootstrap-all’);
6     }
7 }

I get a white background and the button “Add Topic” and “Add Reply” don’t work.

When I change

wp_register_script( ‘pagelines-bootstrap-all’, PL_JS . ‘/script.bootstrap.min.js’, array( ‘jquery’ ), ‘2.3.1’, false);

nothing happens.

Is there another solution?

Thanks

Meli

 

5 Answers

New Answer

MP Mr Papa
Mr Papa
Member

the real solution is for themes to not load a library known to conflict with js loaded by WP…

fixing the theme can be problematic since there are a bunch of options which could cause different sequencing per user…

in that first link, did you do the final solution which was to make sure wp jquery ui was loaded after bootstrap to keep it from stomping on the wp js??

 

MP Mr Papa
Mr Papa
Member

I have slept since then so dont remember the exact change and dont have access to that site anymore…

but think it was this change:

https://simple-press.com/support-forum/sp5-plugin-topics/file-uploader-with-pupload-plug-in-not-responsive/page-2/#p128084

to force bootstrap to load in header… then you have to force the forum js to load in the footer on the forum – integration – page and permalink panel…

PM pas4mobile
pas4mobile
Member

Now it works.

1. Edit in the action.sites.php, this line

    wp_register_script( ‘pagelines-bootstrap-all’, PL_JS . ‘/script.bootstrap.min.js’, array( ‘jquery’ ), ‘2.3.1’, false);

2. Set the parameter under “Forums->Integration->Page and Permalink->Integration Options->Load javascript in footer”

Thank you very much!

Meli

 

MP Mr Papa
Mr Papa
Member

yeah!  glad its working… thanks for the update.