Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Cannot upload images
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 1, 2013 - 6:37 am

Can we try a few things...

First - go to the forum admin > Integration > Page and Permalink panel. And turn ON the option to load Javascript in the footer. Empty the browser cache. Reload a topic to add a post and try the uploader...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Olivier Duong
Member
Free Members
sp_UserOfflineSmall Offline
Apr 1, 2013 - 5:39 pm

Nopes, not working. Do I remove the code you gave me previously?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 2, 2013 - 2:24 am

Shame. After research and trials I can see that if the uploader script and styling is loaded after the bootstrap code then things should work OK. The problem is with the bootstrap module. It overrides styling and code set up by the use of the jQuery UI components and WordPress supports the jQuery UI natively but not bootstrap.

You may as well leave that code in place as we need to get it working. What we need is to check that the tag for bootstrap that was in that forum post and that we used in the code is, actually correct. The theory is good and I have tested it here on my development sites.

So - do you know how to look through the code files of the theme to find things?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Olivier Duong
Member
Free Members
sp_UserOfflineSmall Offline
Apr 2, 2013 - 10:59 am

Yes sir! Let's do it!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 2, 2013 - 12:21 pm

Excellent. So you are looking for a line of code that uses the function wp_register_script() and another that uses the function wp_enqueue_script() and in both cases this will be using some passing some sort of tag name to represent the bootstrap library - so it will have the name of 'bootstrap' in there. We need to see those 2 lines of code...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 3, 2013 - 4:04 am

Try this variation. This definitely works for me by the way...

add_action('wp_enqueue_scripts', 'deregister_pl_bootstrap', 100);
function deregister_pl_bootstrap() {
    if(sp_is_forumpage()) {
        wp_dequeue_script('pagelines-bootstrap-all');
    }
}

so we will see...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Olivier Duong
Member
Free Members
sp_UserOfflineSmall Offline
Apr 5, 2013 - 9:55 am

Nope

Nopes....

Am I doing something wrong???

Might not matter but the PUUPLOAD does not have that rectangleUntitled-2.jpg buttons on mine...

It's just text...

 

 

 

Untitled-1.jpgImage Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 5, 2013 - 11:43 am

Yes the flat look and no buttons is exactly what Bootstrap does. Basically it stomps all over the jQuery UI. This is a problem as jQuery and the jQuery UI are the de facto recommended and supported libraries to use with WordPress but BootStrap is starting to crop up here and there.

Well I can see no reason why it should still load with that code in place and it certainly stops it from loading on my tests. The only difference I can see is that I put the code in the WP Theme functions.php NOT the in the SP theme but that really shouldn't make any difference.

Can anyone see anything I may have missed?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Olivier Duong
Member
Free Members
sp_UserOfflineSmall Offline
Apr 7, 2013 - 11:17 am
add_action( 'wp_enqueue_scripts', 'deregister_pl_bootstrap' );
 
function deregister_pl_bootstrap() {
 
// some logic needs to check if your in the forums!!
wp_deregister_script( 'pagelines-bootstrap-all' );
}
 
 
The code above in the function.php of the THEME, not the forum functions makes it work.
Thanks for your tremendous help, Swordfish, much appreciated
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 7, 2013 - 11:41 am

so there is a diff between the two functions files... interesting... 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: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625