Search Results for 'is_bbpress'
-
AuthorSearch Results
-
December 21, 2013 at 2:23 pm #140556
In reply to: Widgets and Side Bar not showing in Forum
Robin W
Moderatorok, plan b
upload the “widget logic” plugin
This lets you set widgets to appear in certain conditions
Once uploaded, using your normal sidebar, you can set when a widget appears
You’ll see a new box appear when you add/edit each widget saying “widget logic”. if you want it to appear on a forum page type
is_bbpress()
If you want the widget to appear on other pages, but not obn the forum page type!is_bbpress()
so you login widget would have the logicis_bbpress()
and appear only on forum pagesIf you didn’t want search on the forum page, you’d put
!is_bbpress()
on that widget and it will not appearDecember 15, 2013 at 7:52 pm #140334In reply to: Sidebars in BBpress profile
Sloppy Buns
ParticipantI have worked part of this out and have implemented a is_bbpress format for forum pages so I can choose what sidebars to put on my forum pages however I am still not able to get sidebars to show up on profile or most popular topics.
What I require is the is_ codex for these pages so I can write a script to place sidebars on these pages, I have found that the User profile has these html body classes:
bbp-user-page single singular bbpress
is_bbpress() does not workand Most Popular Topics:
bbp-view bbpressThis should be is_bbpress() however is_bbpress() does not work.
Any help would be greatly appreciated.
December 12, 2013 at 4:39 pm #140187In reply to: "Link to existing content" reveals private pages
Lynqoid
ParticipantI’m not 100% on what is happening without seeing a site link, if you can find out where the coupons are being rendered then you could wrap them in
if(!is_bbpress()) { }December 10, 2013 at 8:56 pm #140121In reply to: Hide Sidebar
pmuktan
ParticipantI pasted this code under main wp-config.php and side is gone.
function disable_all_widgets( $sidebars_widgets ) {
if ( function_exists(‘is_bbpress’) ) {
if (is_bbpress()) {
$sidebars_widgets = array(false);
remove_all_actions(‘bp_register_widgets’);
unregister_sidebar( ‘bp_core_widgets’ );
}
}
return $sidebars_widgets;
}add_filter(‘sidebars_widgets’, ‘disable_all_widgets’, 1, 1);
My question is how do we remo Options like Topic Type and Topic Status ???
Thank you.
December 10, 2013 at 2:44 pm #140116In reply to: Hide Sidebar
Robin W
Moderatoryou can use ‘widget logic’ plugin to control what is shown in sidebars. for bbpress the logic is
is_bbpress()to display and
!is_bbpress()to hideor if you want a forum specific sidebar use ‘bbpress WP’ tweaks plugin.
Profile images use the gravatar image see http://en.gravatar.com/ for details
December 10, 2013 at 7:56 am #140091In reply to: Exclude WP plugin (page navi)
Stephen Edgar
KeymasterThe main bbPress conditional tag is
is_bbpressTry
<?php if ( !is_bbpress ) : ?>November 20, 2013 at 1:45 pm #139279In reply to: change forum sidebar
Robin W
Moderatorok, I can see your problem
Not sure why the plugin isn’t picking this up – would be worth a post on the authors support site
However lets also try a different approach.
Download “widget logic”
https://wordpress.org/plugins/widget-logic/
This plugin lets you specify conditions for when widget items are displayed.
You would then put all the widgets for both the blog page and the forum page in one sidebar
Against each of these you then specify whether you want it to appear on the forum page, on any page with a sidebar that is not the forum 9ie your blog), or on both forum and other sidebar pages.
you do this by putting the following code in the widget logoc box that you will see appears against each widget
For a forum sidebar you put :
is_bbpress()ie is this page a forum page
For any other sidebar you put :!is_bbpress()ie is this page NOT a forum page
For any item to appear on both, simply leave the logic blank.Give that a try and come back and let us know how it works
November 15, 2013 at 2:07 pm #139142In reply to: Losing Genesis Prose Sidebar
Robin W
ModeratorYes totally.
You can create a full width page forum if you wish – if your theme has a full width page option then just create a full width page, put the index shortcode within it
[bbp-forum-index].But it may be better to have a separate sidebar, so that you can have login and latest posts – see http://www.gospbc.co.uk/forums for an example.
Once you have installed bbpress, then install a plugin called bbPress WP tweaks. it gives you a forum specific sidebar, so you can add login and latest posts widgets
You can also use a plugin called “widget logic” with your normal sidebar to control what widgets are seen on what pages. For instance a widget will not appear if you use the logic
!is_bbpress()m or will appear if you useis_bbpress()November 11, 2013 at 1:05 pm #138986In reply to: is_bbpress() limitations / environment
Juan Aldasoro
ParticipantWell, 10 minutes after..I see there’s not much around. Went to the code and did a little tweak. I’m sharing this in case anybody need it:
add_filter( 'is_bbpress', 'my_bbpress_page' ); function my_bbpress_page( $retval = false ){ if ( is_page_template( 'my-template.php' ) ) { $retval = true; } return $retval; }I’ll try and see if I have some time to make some docs around this. Having documentation is the key to have more things around this plugin.
Best,
Juan.November 11, 2013 at 12:50 pm #138983Topic: is_bbpress() limitations / environment
in forum TroubleshootingJuan Aldasoro
ParticipantHello,
I’m using this function in order to enqueue some custom CSS when a forum related page is loaded.
The problem is for example, the “New Topic” page – Part of bbPress – gives FALSE when I call is_bbpress()
Is there any place where I can check about this function besides going through the core code? I’ve searched over the Documentation and couldn’t find anything.
Thanks,
Juan.November 10, 2013 at 5:15 am #138920In reply to: Limit search on forum
jodlajodla
ParticipantI found out that I misunderstood your post. I downloaded plugin that you suggested and checked the code. I remembered that I used is_bbpress() somewhere and that was the solution for my problem. There’s the snippet of code that I used in my theme in file functions.php:
/* Do not search pages, only posts and if there's a request from bbPress or Admin panel than ignore setting of post type */ function search_filter($query) { if ($query->is_search && !is_admin() && !is_bbpress()) { $query->set('post_type', 'post'); } return $query; } add_filter('pre_get_posts', 'search_filter');Thank you very much again! 🙂 🙂
October 31, 2013 at 4:29 am #138602In reply to: Remove Sidebar
Robin W
Moderatoryou can add this function to your functions.php
function disable_all_widgets( $sidebars_widgets ) { if ( function_exists('is_bbpress') ) { if (is_bbpress()) { $sidebars_widgets = array(false); remove_all_actions('bp_register_widgets'); unregister_sidebar( 'bp_core_widgets' ); } } return $sidebars_widgets; } add_filter('sidebars_widgets', 'disable_all_widgets', 1, 1);or this to your style.css
.bbPress #primary { display: none; }October 18, 2013 at 7:47 pm #138233In reply to: is_bbpress() isn't working for me
Keryn
ParticipantStill didn’t work for me, and I’ve had trouble with bbpress on other sites, so I’ve ditched it and gone with:
October 18, 2013 at 4:46 pm #138230In reply to: is_bbpress() isn't working for me
Robin W
ModeratorCan’t see anything wrong with your code
is_bbpress()works on my conditional statementsOctober 17, 2013 at 4:45 pm #138184Topic: is_bbpress() isn't working for me
in forum TroubleshootingKeryn
ParticipantI have some code to show the sidebar based on what page it is, and it works fine for the pages, but no sidebar shows on any bbpress pages:
if (is_page(79) || is_child(79) || is_ancestor(79) || is_bbpress()){
dynamic_sidebar(‘memberbar-sidebar’);
}October 9, 2013 at 1:18 pm #137921In reply to: php condition to detect that we are in the forum
niuserre
Participantcontent.php seems like a weird place to be swapping an image, is this a header image or something?
From the way you’ve worded it I think maybe you need an if else statement around the specific image?
if( is_bbpress() ) { // bbpress image } else { // default image }Is that the issue? If not, could you describe a bit more what you’re expecting to happen and what is happening instead please? It could also be that you actually need a BuddyPress if call rather than bb.
October 9, 2013 at 11:07 am #137916In reply to: php condition to detect that we are in the forum
TobiasHartmann
ParticipantHello,
I am using WordPress with bbPress(2.4) an buddyPress(1.8.1).
Trying to change the image when I am in the forum.
Trying it with :
<?php if ( is_bbPress() ) : ?>in my content.php under my theme…No effect !
Are there other ways to change the appearance?
Greetings,
TobiasSeptember 27, 2013 at 7:27 pm #137554In reply to: php condition to detect that we are in the forum
Stephen Edgar
Keymasteris_bbpress()is what your looking for.September 20, 2013 at 10:21 am #137307In reply to: Behavior problem with Title Tags
matt_peapod
ParticipantHey,
I found the same issue. In my case I patched bbPress to bail if the page isn’t a bbpress page. so in bbpress/includes/common/template.php line 2504 (include bbp_title() function, bbpress 2.4):
if (!is_bbpress()) { return $title; }This must be a bug. Where can I submit a patch for this, or check if it’s a known bug?
Thanks,
MattJuly 26, 2013 at 3:04 pm #135597Topic: Disable bbpress jquery/css loading when viewing the blog
in forum InstallationRicardo
ParticipantHi everyone
Is there a way of disabling bbpress jquery and css files loading when a user visits the blog?
upon installing bbpress the “weight/loading” of a blog page increases a bit, anyway of disabling it? Only loading when someone visits the forum?The following code disables the bbpress css, is there a way to disable the javascript/jquery?
Thanksfunction mp_deregister_bbstyles() { if ( function_exists( 'is_bbpress' ) ) { if ( !is_bbpress() ) { wp_deregister_style( 'bbp-default-bbpress' ); } } } add_action( 'wp_print_styles', 'mp_deregister_bbstyles', 100 );June 6, 2013 at 4:35 pm #134840In reply to: Issues Removing the Sidebar
Peter A. Gebhardt
ParticipantUse the “Widget Logic” PlugIn and put !is_bbpress() into the respective field of your widget(s).
You have to do it for all widgets though …
Best regards
June 4, 2013 at 11:37 am #134782John James Jacoby
KeymasterIn bbPress’s default configuration, this is by design to support styling for widgets, which can exist outside of bbPress’s standard page views. You’ll need to write a custom plugin to dequeue bbPress’s CSS when
! is_bbpress().April 29, 2013 at 7:28 pm #133838Jared Atchison
MemberI’d try contacting the developer, Yoast, and see if the can add a setting to disable the WP SEO plugins if bbPress is detected (
is_bbpress()), which would allow you bbPress to use its own breadcrumbs on bbPress pages and use WPSEO breadcrumbs on all other areas of the site.Alternative he could also make his plugin disable the bbPress breadcrumbs all together.
April 25, 2013 at 4:10 am #133668In reply to: Conditional enqueue in header
alexis.nomine
ParticipantAs is_bbpress() doesn’t work within the bbp_theme_compat_actions hook, the solution would be to conditionnaly remove bbp_head and bbp_enqueue_scripts. It’s a bit more extreme but it works:
`add_action( ‘wp_head’, ‘conditional_bbpress_head’, 9 );
function conditional_bbpress_head(){
if( !is_bbpress() )
remove_action( ‘wp_head’, ‘bbp_head’ );
}
add_action( ‘wp_enqueue_scripts’, ‘conditional_bbpress_scripts’, 9 );
function conditional_bbpress_scripts(){
if( !is_bbpress() )
remove_action( ‘wp_enqueue_scripts’, ‘bbp_enqueue_scripts’ );
}`April 22, 2013 at 2:17 pm #133568In reply to: Forum sidebar
Robin W
ModeratorI used “Bbpress wp-tweaks” it creates a bbpress sidebar that is used on the forum pages.
You could also use “Widget logic” – allows conditional statements on widgets to produce page or category specific sidebar content. Using the logic “is_bbpress()” allows sidebar specific content. “!is_bbpress()” excludes widgets from forum pages. -
AuthorSearch Results