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 does not work.
Avatar
maxime zelis
Member
Free Members
sp_UserOfflineSmall Offline
Jun 28, 2014 - 4:31 am

My template is so complex, there are hundreds of php files. No one is called bootstrap.js or something. 

i can't start a forum without image upload. 

On the support forum of my template, some people ask the question too and someone fixe the problem with this code in his function.php : 

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

But it's not working for me. 

Can i give you an admin access to my site and/or ftp access to all my files, so you can look. i'm not in a hurry, you can take your time!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 28, 2014 - 4:39 am

Before we go there - and having admin access is not a great way to try and solve these sort of things - have you actually tried this - which is a fix for pagelines that has worked for others? -

https://simple-press.com/suppo.....s/#p128846

andy-signature.png
YELLOW
SWORDFISH
Avatar
maxime zelis
Member
Free Members
sp_UserOfflineSmall Offline
Jun 28, 2014 - 7:23 am

I tried this solution too, but i don't have action.site.php.

the solution you gave by the past are for Pagelines Framework, it's an old theme. I use Pagelines DMS2, wich is a totaly new theme. That's probably why all the solution doesn't work. 

in the new theme, i found 7 php files that have the word "bootstrap" in it. and also xml, js, less and css files. 

I will try to look and find which php files to modify and try the old solution, maybee...

Avatar
maxime zelis
Member
Free Members
sp_UserOfflineSmall Offline
Jun 28, 2014 - 7:43 am

IT WORK'S!!! 

In the file lib.head.php, i changed the line 

wp_enqueue_script( 'pagelines-bootstrap-all', PL_JS . '/script.bootstrap.min.js', array( 'jquery' ), '2.2.2', true );
by this line 
wp_enqueue_script( 'pagelines-bootstrap-all', PL_JS . '/script.bootstrap.min.js', array( 'jquery' ), '2.2.2', false );

and in the forum options, i checked "load javascript in the footer"

all the site look's to work fine, and now, i can load picture in the forum!

I'm not sure to understand what i've done exactly, do i disabled bootstrap on my site? or just the place where it loads? 

And a last question, when a new release of my template will be available, do i have to change the code again? Probably yes

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 28, 2014 - 9:34 am

yes, you are likely to have to change it in the theme again...  the wp devs have mentioned considering adding bootstrap to core in which case it would be easy for them to control the loading order... until then, theme authors who continue to bump against existing wp libraries will have this potential issue...

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