Info
- 6 posts
- 3 voices
- Started 3 years ago by John James Jacoby
- Latest reply from John James Jacoby
- This topic is not resolved
JavaScript Broken - Integration Issue
-
- Posted 3 years ago #
In my WordPress functions.php file, I am queuing up jQuery for some interface objects I'm using.
wp_enqueue_script('jquery');It seems this messes with bbPress's javascript inclusion, causing none of the JS from bbPress ever to get loaded.
Because I am using jQuery also in bbPress, is there a way around this that anyone can think of?
-
- Posted 3 years ago #
Can't you do a check before the function to see if it's a WP or BB page? Then just don't call it on the BB pages.
-
- Posted 3 years ago #
Good call. That alleviates one problem.
On to the next... Now all of the JavaScript loads properly and when clicking the "add to favorites" link, the ajax kicks in and works as per normal and makes it look like the link was added. The link actually shows in the database as a favorite, but the theme fails to load them correctly.
I've tested this on the stock template also with the same results.
Removing the WordPress integration from the bb-config.php file brings everything back and they work just fine. Comparing with WinMerge the source of the same page with and without that integration, they are identical. So somewhere something is getting in the way.
-
- Posted 3 years ago #
Looks like a few changes might be needed unless I'm missing something along the way...
This makes the favorites load properly for me.
includes/functions.bb-users.php
line 221
FROM
if ( !empty($user->favorites) ) {
TO
if ( !empty($user->bb_favorites) ) {includes/class.bb-query
line 442
FROM
$where .= $this->parse_value( 't.topic_id', $f_user->favorites );
TO
$where .= $this->parse_value( 't.topic_id', $f_user->bb_favorites );line 559
FROM
$where .= $this->parse_value( 'p.topic_id', $f_user->favorites );
TO
$where .= $this->parse_value( 'p.topic_id', $f_user->bb_favorites );Basically, there are a few other places where
$user->favoritesneeds to be changed to$user->bb_favorites.So, I've got it up and working from doing the above. I've never needed to commit a change to the trac before. Should I just open a ticket, or can I change it directly?
-
- Posted 3 years ago #
You should add a ticket at trac and then attach your patch. I don't believe too many people have commit permission on the repository (i.e. mdawaffe and sambauers only, I think.) They will review the ticket and the patch and apply it if appropriate.
-
- Posted 3 years ago #
I get the feeling that this has more to do with slugs and attempted auto renaming and assignments than it does with hardcoding the value into each file, but hardcoding it works for now and brings the capability back.
-
You must log in to post.