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 Uploader with Pupload and pagelines
Avatar
pas4mobile
Rookie
Free Members
sp_UserOfflineSmall Offline
Jul 16, 2013 - 5:19 pm

Hello,

I have the same problem as:

https://simple-press.com/suppo.....esponsive/

https://simple-press.com/suppo.....ad-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

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 16, 2013 - 8:18 pm

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??

 

Avatar
pas4mobile
Rookie
Free Members
sp_UserOfflineSmall Offline
Jul 17, 2013 - 12:31 pm

I think not. Where can I change the order?

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

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/suppo.....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...

Avatar
pas4mobile
Rookie
Free Members
sp_UserOfflineSmall Offline
Jul 17, 2013 - 4:59 pm

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

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 17, 2013 - 5:04 pm

yeah!  glad its working... thanks for the update.

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