Hey there. I’m integrating a theme with BP and have gotten most stuff working except the blogs and member directory.
Focusing in on the blogs directory, I’m finding that the “blog directory” and “blog listing” code in the bp-blogs-directory-blogs.php file works fine. It’s the sidebar stuff that isn’t working.
Both the <?php do_action( ‘bp_blogs_directory_blogs_sidebar’ ) ?> and <?php wp_nonce_field(‘directory_blogs’, ‘_wpnonce-blog-filter’ ) ?> are at least seen by the system. But the whole “function bp_blogs_directory_blogs_sidebar” code isn’t beeing seen.
How do I know this? Well, if you look at http://doorqtech.com/blogs, I’ve stuck little notes in the source code that pop up on the screen, more or less telling me how far WP got in executing the php.
Since it all has to do with _sidebar code, am I somehow not registering the sidebar on that page? Or have I missed something somewhere else?
What version bp are you running?
The directories require two files in your theme folder plugin-template.php and plugin-sidebar.php
It doesn’t look like the sidebar is being generated at all. In firebug the div for it doesn’t exist. You’ve also got two ‘content’ divs that wrap the two directory widgets. Somehow you’ve got an extra one in there.
The sidebar is generated by the fn bp_blogs_directory_blogs_content() calling do_action() and triggering the sidebar function bp_blogs_directory_blogs_sidebar(). It doesn’t seem to be happening.
I’m running 1.02b… I was waiting for the official full release before upgrading…
Okay, I missed putting plugin-sidebar.php in the theme folder. I’ve added that in. The extra content div was from the theme integration with BP. I’ve pulled that out.
Nothing changed though. It’s still failing to call the sidebar functions. I too don’t even see them listed with firebug. It’s ending right after the directory script.
- The topic ‘bp-blogs-directory-blogs.php question’ is closed to new replies.