Search Results for 'bbpress'
-
AuthorSearch Results
-
July 4, 2012 at 1:42 pm #114373
In reply to: Making bbpress 2.1 work with my custom theme
Lynq
ParticipantThis could be of help: https://codex.bbpress.org/home/step-by-step-guide-to-creating-a-custom-bbpress-theme/
July 4, 2012 at 1:24 pm #114365In reply to: First time using bbPress since it became a plugin…
Aadhaar Card
MemberI think you need to play with CSS to resolve your problem.
July 4, 2012 at 1:03 pm #114364In reply to: First time using bbPress since it became a plugin…
Jim R
ParticipantIt would be super if there was a way to have layout options.

How tough would it be to port over the layout? Is the code similar enough in terms of functions?
July 4, 2012 at 5:43 am #114326In reply to: bbPress 2.1, is single-forum-edit.php necessary?
tungdo
MemberI tried testing the single-forum-edit.php template, but couldn’t find where to. I have two separate installs, one with bbPress alone and the other with BuddyPress + group forums + site-wide forum.
For the separate bbPress install, /edit returns 404. If BuddyPress uses single-forum-edit.php, where is the edit link supposed to be?
July 4, 2012 at 3:18 am #114226Pixeldrum
MemberNow I am getting confused. I could have sworn that I replied to your post John a few days ago… but I don’t see it.
Here it is again then, my apologies, I didn’t mean to transgress a forum convention. Still, if at all possible, I’d like some direction as to how I can block access via direct URL to user profiles. From user profiles someone can track back to posts attributed to the user and use and post via that ‘back door’.
I have bbpress installed and protected (I thought) behind the membership wpmudev.org membership plugin and want the forum area available for specific members only including the profile information. What files need to be customized to make this possible?
I can block posts and content in pages with short-codes from the membership plugin, but I don’t know where I would place those within the structure of bbpress. Is there a way, please? I am not a coder, but have friends who are I just need to be pointed to the files that are involved in getting this done. Thanks for ANY help with this matter.
July 4, 2012 at 2:41 am #47015Topic: Forum link is not working
in forum InstallationHenrylam
MemberHi I am new to bbPress, I installed it last week, it was working fine.
But it is not working recently, I don’t even know since when, may be after I updated the bbPress Plugin to 2.0.3
All I want is just putting the [bbp-forum-index] in a WordPress page, so it can show all forum, topic and replies.
Now once I click to the forum that I have been set up, it don’t show any topic or replies.
Please see the page as below:
http://iconicbrand.com.au/pugglefm/communities/parent-forum/
July 4, 2012 at 2:24 am #47010Topic: Making bbpress 2.1 work with my custom theme
in forum Themeslusid
MemberHello,
This is my first time working with wordpress and bbpress so I am quite confused.
I understand that bbpress requires some tweaking in order for it to work with custom themes, but I really don’t know where to start. I’d be very grateful if anyone could point me in the right direction.
The website I’m working on is lightshow.me. I’d strongly prefer to stick with the current theme.
My goals for the website are simple:
-A video blog
-A clean forum where users can post and embed videos
Any help will be appreciated!
Thanks
July 3, 2012 at 11:44 pm #114325In reply to: bbPress 2.1, is single-forum-edit.php necessary?
tungdo
MemberThank you. That clears it for me.
July 3, 2012 at 10:41 pm #114030In reply to: Need to hire bbPress Programmer for a few hours
ksmithtn
MemberYou can email us here: admin@raptureintheairnow.com
July 3, 2012 at 9:00 pm #114247In reply to: Can anyone tell me how to correct this?
AAShepAA
ParticipantThe other was the functions.php that I had copied over to my child theme FROM bbPress plugin. This one is the one from the Myriad “mother” theme.
Again – thank you very much.
July 3, 2012 at 7:05 pm #46958Topic: Need My Topics section for Sitewide Forums
in forum TroubleshootingGeorge
ParticipantI need a section like there is on this forum, for MY TOPICS, where users can see the topics and replies they have posted, rather than searching through pages of posts. This is default in bbpress for group forums, but I have sitewide forums.
My members are complaining that they can’t find topics they participated in, or started. Ideally, I want two pages. One to show the user’s topics participated in, another to show a user’s topics started.
Any help would be greatly appretiated, and I can donate to anyone that helps via paypal for your time and effort.
July 3, 2012 at 6:58 pm #114246In reply to: Can anyone tell me how to correct this?
LabSecrets
ParticipantYou posted what appears to be the bbPress functions.php, which is not what I would need to see. I would need to see the functions.php from myriad parent, child, or perhaps any includes that have the function below:
In sum: your myriad parent has a function, on line 24 of the header.php
<body class="<?php mysite_body_class(); ?>">This function (mysite_body_class()) is what is generating the body class tags. It needs to be modified to allow for the creation of the necessary bbPress body tag for pages that contain bbPress.
July 3, 2012 at 6:36 pm #114233In reply to: register for the forum
John James Jacoby
Keymaster“Forum Moderator” is a role in bbPress. There is a ‘moderator’ capability you can map too, if you’re a developer also.
bbPress 2.2 will include more functionality in this regard.
You’ll need to write a plugin to prevent logged-out users from seeing the forums. You can also make each forum ‘private’ which will hide them from logged out users.
July 3, 2012 at 5:44 pm #114001In reply to: bbPress 2.0.3 and WordPress 3.4
Jared Atchison
MemberAny by RC2 he means RC4
July 3, 2012 at 5:42 pm #114363In reply to: First time using bbPress since it became a plugin…
Jared Atchison
MemberNo, not easily. You would have to create a custom theme.
This forum is built on an old version of bbPress. It’s actually going to be upgraded very soon and will look similar to what you see in 2.1 RC4.
July 3, 2012 at 4:24 pm #114362In reply to: First time using bbPress since it became a plugin…
Jim R
ParticipantI haven’t installed it yet, but is there a simple way to get the layout of this forum?
I appreciate your help with the recent build.
July 3, 2012 at 3:39 pm #114324In reply to: bbPress 2.1, is single-forum-edit.php necessary?
John James Jacoby
Keymastersingle-forum-edit.php is used by BuddyPress, for group forums. You can also do /edit on a forum, and it will use that template.
Twenty Ten missing the feedback-no-replies.php reference was an oversight, just fixed now. r4049
July 3, 2012 at 2:18 pm #114359In reply to: Is BBPress responsive?
LabSecrets
ParticipantYou can use bbPress with any theme. The trick is to implement some CSS and other formatting in a child theme to ensure it adopts the style of your underlying theme. We’ve been doing this globally for all the woothemes, and many others…it works well.
The CSS required will vary slightly, or greatly, depending on the theme you use. What are you using? Have a link?
July 3, 2012 at 10:46 am #114345In reply to: Need help with forum layout
Lynq
ParticipantGrab a standard bbPress theme like twentyten and then drop the CSS at the end of your style sheet, see what happens, you might have to make some changes.
If you stick it at the end of your style sheet as well you can always just delete the section that you copied in.
Good luck!
July 3, 2012 at 10:37 am #114358In reply to: Is BBPress responsive?
tulisan
ParticipantSo let me get this straightened out. I have a wordpress site that has bbpress integrated. Do I need to use a different theme – a responsive one? or could I just stylize the current bbpress theme to make it responsive?
July 3, 2012 at 7:12 am #114243In reply to: Can anyone tell me how to correct this?
AAShepAA
Participantfunctions.php are also standard twentyten:
<?php
/**
* Functions of bbPress’s Twenty Ten theme
*
* @package bbPress
* @subpackage BBP_Twenty_Ten
* @since Twenty Ten 1.1
*/
// Exit if accessed directly
if ( !defined( ‘ABSPATH’ ) ) exit;
/** Theme Setup ***************************************************************/
if ( !class_exists( ‘BBP_Twenty_Ten’ ) ) :
/**
* Loads bbPress Twenty Ten Theme functionality
*
* Usually functions.php contains a few functions wrapped in function_exisits()
* checks. Since bbp-twenty-ten is intended to be used both as a child theme and
* for Theme Compatibility, we’ve moved everything into one convenient class
* that can be copied or extended.
*
* See @link BBP_Theme_Compat() for more.
*
* @since bbPress (r3277)
*
* @package bbPress
* @subpackage BBP_Twenty_Ten
*/
class BBP_Twenty_Ten extends BBP_Theme_Compat {
/** Functions *************************************************************/
/**
* The main bbPress (Twenty Ten) Loader
*
* @since bbPress (r3277)
*
* @uses BBP_Twenty_Ten::setup_globals()
* @uses BBP_Twenty_Ten::setup_actions()
*/
public function __construct() {
$this->setup_globals();
$this->setup_actions();
}
/**
* Component global variables
*
* @since bbPress (r2626)
* @access private
*
* @uses plugin_dir_path() To generate bbPress plugin path
* @uses plugin_dir_url() To generate bbPress plugin url
* @uses apply_filters() Calls various filters
*/
private function setup_globals() {
global $bbp;
// Theme name to help identify if it’s been extended
$this->name = ‘bbPress (Twenty Ten)’;
// Version of theme in YYYMMDD format
$this->version = ‘20110921’;
// Setup the theme path
$this->dir = $bbp->themes_dir . ‘/bbp-twentyten’;
// Setup the theme URL
$this->url = $bbp->themes_url . ‘/bbp-twentyten’;
}
/**
* Setup the theme hooks
*
* @since bbPress (r3277)
* @access private
*
* @uses add_filter() To add various filters
* @uses add_action() To add various actions
*/
private function setup_actions() {
// Add theme support for bbPress
add_action( ‘after_setup_theme’, array( $this, ‘add_theme_support’ ) );
// Enqueue theme CSS
add_action( ‘bbp_enqueue_scripts’, array( $this, ‘enqueue_styles’ ) );
// Enqueue theme JS
add_action( ‘bbp_enqueue_scripts’, array( $this, ‘enqueue_scripts’ ) );
// Enqueue theme script localization
add_filter( ‘bbp_enqueue_scripts’, array( $this, ‘localize_topic_script’ ) );
// Output some extra JS in the <head>
add_action( ‘bbp_head’, array( $this, ‘head_scripts’ ) );
// Handles the ajax favorite/unfavorite
add_action( ‘wp_ajax_dim-favorite’, array( $this, ‘ajax_favorite’ ) );
// Handles the ajax subscribe/unsubscribe
add_action( ‘wp_ajax_dim-subscription’, array( $this, ‘ajax_subscription’ ) );
}
/**
* Sets up theme support for bbPress
*
* Because this theme comes bundled with bbPress template files, we add it
* to the list of things this theme supports. Note that the function
* “add_theme_support()” does not /enable/ theme support, but is instead an
* API for telling WordPress what it can already do on its own.
*
* If you’re looking to add bbPress support into your own custom theme, you’ll
* want to make sure it includes all of the template files for bbPress, and then
* use: add_theme_support( ‘bbpress’ ); in your functions.php.
*
* @since bbPress (r2652)
*/
public function add_theme_support() {
add_theme_support( ‘bbpress’ );
}
/**
* Load the theme CSS
*
* @since bbPress (r2652)
*
* @uses wp_enqueue_style() To enqueue the styles
*/
public function enqueue_styles() {
// Right to left
if ( is_rtl() ) {
// TwentyTen
wp_enqueue_style( ‘twentyten’, get_template_directory_uri() . ‘/style.css’, ”, $this->version, ‘screen’ );
wp_enqueue_style( ‘twentyten-rtl’, get_template_directory_uri() . ‘/rtl.css’, ‘twentyten’, $this->version, ‘screen’ );
// bbPress specific
wp_enqueue_style( ‘bbp-twentyten-bbpress’, get_stylesheet_directory_uri() . ‘/css/bbpress-rtl.css’, ‘twentyten-rtl’, $this->version, ‘screen’ );
// Left to right
} else {
// TwentyTen
wp_enqueue_style( ‘twentyten’, get_template_directory_uri() . ‘/style.css’, ”, $this->version, ‘screen’ );
// bbPress specific
wp_enqueue_style( ‘bbp-twentyten-bbpress’, get_stylesheet_directory_uri() . ‘/css/bbpress.css’, ‘twentyten’, $this->version, ‘screen’ );
}
}
/**
* Enqueue the required Javascript files
*
* @since bbPress (r2652)
*
* @uses bbp_is_single_topic() To check if it’s the topic page
* @uses get_stylesheet_directory_uri() To get the stylesheet directory uri
* @uses bbp_is_single_user_edit() To check if it’s the profile edit page
* @uses wp_enqueue_script() To enqueue the scripts
*/
public function enqueue_scripts() {
if ( bbp_is_single_topic() )
wp_enqueue_script( ‘bbp_topic’, get_stylesheet_directory_uri() . ‘/js/topic.js’, array( ‘wp-lists’ ), $this->version );
if ( bbp_is_single_user_edit() )
wp_enqueue_script( ‘user-profile’ );
}
/**
* Put some scripts in the header, like AJAX url for wp-lists
*
* @since bbPress (r2652)
*
* @uses bbp_is_single_topic() To check if it’s the topic page
* @uses admin_url() To get the admin url
* @uses bbp_is_single_user_edit() To check if it’s the profile edit page
*/
public function head_scripts() {
if ( bbp_is_single_topic() ) : ?>
<script type=’text/javascript’>
/* <![CDATA[ */
var ajaxurl = ‘<?php echo admin_url( ‘admin-ajax.php’ ); ?>’;
/* ]]> */
</script>
<?php elseif ( bbp_is_single_user_edit() ) : ?>
<script type=”text/javascript” charset=”utf-8″>
if ( window.location.hash == ‘#password’ ) {
document.getElementById(‘pass1’).focus();
}
</script>
<?php
endif;
}
/**
* Load localizations for topic script
*
* These localizations require information that may not be loaded even by init.
*
* @since bbPress (r2652)
*
* @uses bbp_is_single_topic() To check if it’s the topic page
* @uses is_user_logged_in() To check if user is logged in
* @uses bbp_get_current_user_id() To get the current user id
* @uses bbp_get_topic_id() To get the topic id
* @uses bbp_get_favorites_permalink() To get the favorites permalink
* @uses bbp_is_user_favorite() To check if the topic is in user’s favorites
* @uses bbp_is_subscriptions_active() To check if the subscriptions are active
* @uses bbp_is_user_subscribed() To check if the user is subscribed to topic
* @uses bbp_get_topic_permalink() To get the topic permalink
* @uses wp_localize_script() To localize the script
*/
public function localize_topic_script() {
// Bail if not viewing a single topic
if ( !bbp_is_single_topic() )
return;
// Bail if user is not logged in
if ( !is_user_logged_in() )
return;
$user_id = bbp_get_current_user_id();
$localizations = array(
‘currentUserId’ => $user_id,
‘topicId’ => bbp_get_topic_id(),
);
// Favorites
if ( bbp_is_favorites_active() ) {
$localizations = 1;
$localizations = bbp_get_favorites_permalink( $user_id );
$localizations = (int) bbp_is_user_favorite( $user_id );
$localizations = __( ‘favorites’, ‘bbpress’ );
$localizations = __( ‘?’, ‘bbpress’ );
$localizations = __( ‘This topic is one of your %favLinkYes% [%favDel%]’, ‘bbpress’ );
$localizations = __( ‘%favAdd% (%favLinkNo%)’, ‘bbpress’ );
$localizations = __( ‘×’, ‘bbpress’ );
$localizations = __( ‘Add this topic to your favorites’, ‘bbpress’ );
} else {
$localizations = 0;
}
// Subscriptions
if ( bbp_is_subscriptions_active() ) {
$localizations = 1;
$localizations = (int) bbp_is_user_subscribed( $user_id );
$localizations = __( ‘Subscribe’, ‘bbpress’ );
$localizations = __( ‘Unsubscribe’, ‘bbpress’ );
$localizations = bbp_get_topic_permalink();
} else {
$localizations = 0;
}
wp_localize_script( ‘bbp_topic’, ‘bbpTopicJS’, $localizations );
}
/**
* Add or remove a topic from a user’s favorites
*
* @since bbPress (r2652)
*
* @uses bbp_get_current_user_id() To get the current user id
* @uses current_user_can() To check if the current user can edit the user
* @uses bbp_get_topic() To get the topic
* @uses check_ajax_referer() To verify the nonce & check the referer
* @uses bbp_is_user_favorite() To check if the topic is user’s favorite
* @uses bbp_remove_user_favorite() To remove the topic from user’s favorites
* @uses bbp_add_user_favorite() To add the topic from user’s favorites
*/
public function ajax_favorite() {
$user_id = bbp_get_current_user_id();
$id = intval( $_POST );
if ( !current_user_can( ‘edit_user’, $user_id ) )
die( ‘-1’ );
if ( !$topic = bbp_get_topic( $id ) )
die( ‘0’ );
check_ajax_referer( ‘toggle-favorite_’ . $topic->ID );
if ( bbp_is_user_favorite( $user_id, $topic->ID ) ) {
if ( bbp_remove_user_favorite( $user_id, $topic->ID ) ) {
die( ‘1’ );
}
} else {
if ( bbp_add_user_favorite( $user_id, $topic->ID ) ) {
die( ‘1’ );
}
}
die( ‘0’ );
}
/**
* Subscribe/Unsubscribe a user from a topic
*
* @since bbPress (r2668)
*
* @uses bbp_is_subscriptions_active() To check if the subscriptions are active
* @uses bbp_get_current_user_id() To get the current user id
* @uses current_user_can() To check if the current user can edit the user
* @uses bbp_get_topic() To get the topic
* @uses check_ajax_referer() To verify the nonce & check the referer
* @uses bbp_is_user_subscribed() To check if the topic is in user’s
* subscriptions
* @uses bbp_remove_user_subscriptions() To remove the topic from user’s
* subscriptions
* @uses bbp_add_user_subscriptions() To add the topic from user’s subscriptions
*/
public function ajax_subscription() {
if ( !bbp_is_subscriptions_active() )
return;
$user_id = bbp_get_current_user_id();
$id = intval( $_POST );
if ( !current_user_can( ‘edit_user’, $user_id ) )
die( ‘-1’ );
if ( !$topic = bbp_get_topic( $id ) )
die( ‘0’ );
check_ajax_referer( ‘toggle-subscription_’ . $topic->ID );
if ( bbp_is_user_subscribed( $user_id, $topic->ID ) ) {
if ( bbp_remove_user_subscription( $user_id, $topic->ID ) ) {
die( ‘1’ );
}
} else {
if ( bbp_add_user_subscription( $user_id, $topic->ID ) ) {
die( ‘1’ );
}
}
die( ‘0’ );
}
}
/**
* Instantiate a new BBP_Twenty_Ten class inside the $bbp global. It is
* responsible for hooking itself into WordPress where apprpriate.
*/
if ( ‘bbPress’ == get_class( $bbp ) ) {
$bbp->theme_compat->theme = new BBP_Twenty_Ten();
}
endif;
?>
July 3, 2012 at 7:04 am #114242In reply to: Can anyone tell me how to correct this?
AAShepAA
ParticipantSpence – I really do appreciate you trying to help me on this.
I am using a child theme >themes>>myriad-custom with myriad being in the same directory. There is no header.php in the child theme but this is the content of the header.php of “mother” theme myriad:
<?php
/**
* Header Template
*
* @package Mysitemyway
* @subpackage Template
*/
?><!DOCTYPE html>
<!–[if lt IE 7]> <html class=”ie ie6 lte9 lte8 lte7″ <?php language_attributes(); ?>> <![endif]–>
<!–[if IE 7]> <html class=”ie ie7 lte9 lte8 lte7″ <?php language_attributes(); ?>> <![endif]–>
<!–[if IE 8]> <html class=”ie ie8 lte9 lte8″ <?php language_attributes(); ?>> <![endif]–>
<!–[if IE 9]> <html class=”ie ie9 lte9″ <?php language_attributes(); ?>> <![endif]–>
<!–[if gt IE 9]> <html> <![endif]–>
<!–[if !IE]><!–> <html <?php language_attributes(); ?>> <!–<![endif]–>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
<title><?php mysite_document_title(); ?></title>
<link rel=”profile” href=”http://gmpg.org/xfn/11″ />
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />
<?php mysite_head(); ?>
<?php wp_head(); ?>
</head>
<body class=”<?php mysite_body_class(); ?>”>
<div class=”multibg”><div class=”multibg”></div></div>
<div id=”body_inner”>
<?php mysite_before_header();
?><div id=”header”>
<div id=”header_inner”>
<?php mysite_header();
?></div><!– #header_inner –>
</div><!– #header –>
<?php mysite_after_header();
?><div id=”content”>
<div id=”content_inner”>
<?php mysite_before_main();
?><div id=”main”>
<div id=”main_inner”>
<?php mysite_before_page_content(); ?>
As far as the setup pf bbPress – it is standard – all of the >plugins>bbPress>bbp-themes>bbp-twentyten “contents” copied over to the child theme of myriad-custom.
I hope that helps you enough to help me

Grateful!
Shep
July 3, 2012 at 6:47 am #114316In reply to: How install bbpress
Jared Atchison
MemberWordPress.com does not offer bbPress.
To use bbPress you need to be running WordPress stand alone install (from WordPress.org).
July 3, 2012 at 6:40 am #114360In reply to: First time using bbPress since it became a plugin…
Jared Atchison
MemberGive 2.1 RC4 a try. It does a pretty good job of just working out of the box.
July 3, 2012 at 5:38 am #114241In reply to: Can anyone tell me how to correct this?
LabSecrets
ParticipantTo make your forums full width, please add this to css:
.right_sidebar #main { width: 100%;}
.right_sidebar #main_inner {margin-right: 0;}
.right_sidebar #content {padding:10px;}The bigger issue, unfortunately, is that you don’t have the proper body class (the way you setup bbPress on this theme) to allow you to limit these css modifications to only bbPress pages. So these mods will apply on ALL pages of your site. This is the ideal way to ensure your mods won’t effect other template pages.
To get around this small issue, you should add some logic to your header.php to generate the proper class which you can then prefix on to your css above. For example, when done properly, you would have css of:
body.bbPress .right_sidebar #main { width: 100%;}
body.bbPress .right_sidebar #main_inner {margin-right: 0;}
body.bbPress .right_sidebar #content {padding:10px;}and this would limit all your styling to only bbPress pages. I don’t see any other body class tags that are limited to bbPress pages which we could use ;-(
Since I cannot see your header.php or functions.php, my guess is that you have some logic in there now which is generating the body classes, but filtering out the native .bbPress class (I can’t tell from outside how you setup your bbPress installation)
See: https://img.skitch.com/20120703-8m1xdyam239qxprwrfenry4qtk.jpg
Cheers!
Spence
-
AuthorSearch Results