Search Results for 'code'
-
Search Results
-
Hi Guys
A conflict exists with bbPress and the WooSidebars plugin –
The conflict causes the whole forum to return a 503 Error. After much digging found the problem comes from this bbPress function
bbp_get_topic_title() functionand is fixed by changing
$title = get_the_title( $topic_id )to
$topic = get_post( $topic_id ); $title = $topic->post_title;Hope you can add that fix to your next version update – Thank you – Steve
I want the users to get email alerts every time their forum role changes.
Namely, I want to notify users only if their role has changed to Participant.
I found a way to do this with standard WordPress roles, but it doesn’t work with bbPress roles.
I tried changing
if ($new_role == 'contributor')toif ($new_role == 'participant')and even to thisif ($new_role == 'bbp_participant')– nothing worked.WordPress version: 3.8.2
bbPress version: 2.5.3Topic: Profile Edit Page Broken?
The profile edit page seems to be broken. When I view it all I see is
Profile Topics Started Replies Created Favorites Subscriptions Edit Name Name First Name Last Name Nickname Display Name Seedsoms Contact Info Contact Info Website About Yourself About Yourself Biographical Info Account […]I assume I’m supposed to be able to edit a lot of these values, such as “Edit Name” or “About Yourself” but it’s all just static text. The […] you see above is linked, but linked back to the profile edit page I am already on.
Topic: Full Width Forum Help
Hey everyone,
I’m having a bit of trouble getting my Forum into full-width format. I’m using the Oxygen theme which by default has a left and right sidebar.
I’ve already copied my “page-template-fullwidth.php”, renamed it as “bbpress.php”, and installed bbPress WP Tweaks to make sure that bbPress is injecting itself into the “bbpress.php” template.
Given what I’ve read – this should’ve done the trick. I’m wondering if it’s something weird with Oxygen Theme’s templates. I’ve included the code of the Full Width Template i’m using here below. Does anyone see anything out of the ordinary that could be preventing me from getting full-width formatting?
<?php
/**
* Template Name: Full Width
*
* Full width page template with no sidebar.
*
* @package Oxygen
* @subpackage Template
*/get_header(); // Loads the header.php template. ?>
<div class=”aside”>
<?php get_sidebar( ‘primary’ ); // Loads the sidebar-primary.php template. ?>
</div>
<?php do_atomic( ‘before_content’ ); // oxygen_before_content ?>
<div class=”content-wrap”>
<div id=”content”>
<?php do_atomic( ‘open_content’ ); // oxygen_open_content ?>
<div class=”hfeed”>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php do_atomic( ‘before_entry’ ); // oxygen_before_entry ?>
<div id=”post-<?php the_ID(); ?>” class=”<?php hybrid_entry_class(); ?>”>
<?php do_atomic( ‘open_entry’ ); // oxygen_open_entry ?>
<?php echo apply_atomic_shortcode( ‘entry_title’, ‘[entry-title permalink=”0″]’ ); ?>
<div class=”entry-content”>
<?php the_content( __( ‘Continue reading <span class=”meta-nav”>→</span>’, ‘oxygen’ ) ); ?>
<?php wp_link_pages( array( ‘before’ => ‘<p class=”page-links”>’ . __( ‘Pages:’, ‘oxygen’ ), ‘after’ => ‘</p>’ ) ); ?>
</div><!– .entry-content –>
<?php echo apply_atomic_shortcode( ‘entry_meta’, ‘<div class=”entry-meta”>[entry-edit-link]</div>’ ); ?>
<?php do_atomic( ‘close_entry’ ); // oxygen_close_entry ?>
</div><!– .hentry –>
<?php do_atomic( ‘after_entry’ ); // oxygen_after_entry ?>
<?php do_atomic( ‘after_singular’ ); // oxygen_after_singular ?>
<?php endwhile; ?>
<?php endif; ?>
</div><!– .hfeed –>
<?php do_atomic( ‘close_content’ ); // oxygen_close_content ?>
</div><!– #content –>
<?php do_atomic( ‘after_content’ ); // oxygen_after_content ?>
<?php get_footer(); // Loads the footer.php template. ?>
On my local server search results URLs get pretty permalinks and search works. On my live server the query string is shown and no search results are returned.
I did a test by manually entering the search URL as it was prettyfied on my local server and surprisingly search works.
The search URL that bbPress returns looks like this and returns no results:
http://www.onedesigns.com/support/search?action=bbp-search-request&bbp_search=pinboardThe prettified link for the same search looks like this:
http://www.onedesigns.com/support/search/pinboardSo the search engine works and apparently it’s the permalinks that cause the issue. Changing or resaving WordPress’ permalink setting didn’t make any difference.
A
var_dumpforbbp_searchreturns NULL.The only difference between my local server and live server is that on my local server I use Apache and on my live serve nginx + Varnish.
Is there any incompatibility between bbPress and nginx or Varnish? Are there any permalink configurations I must apply?
Thank you
WP V. 3.9.1
bbPress v 2.5.4I’ve been banging my head against the wall on this one.
Here is what I need to do:
I have users who need to register for different forums. Each specific forum has restrictions. I am using the S2Member plugin. I can with their shortcodes restrict content within a page. I then can restrict a forum listing when I use a bbPress short code within a page.
The problem is that bbPress dynamically creates topic pages, thus I can not put any shortcode logic in to restrict who sees the topics.
S2Member has some code that works to restrict content with a function. However, using bbPress conditional tags don’t work. I can use the native conditional tags which do.
Below is my code that I can’t seem to get working:
add_action ("wp", "my_custom_capabilities"); function my_custom_capabilities () { if(bbp_is_topic_tag('Global')) { header ("Location: ".S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL); exit(); } }Ideas?!
Topic: HTML tags not workign
Topic: Latest 5 Topics?
I would like to display the latest 5 topics, exactly as displayed on the homepage of bbpress. How do I go about this, I can’t seem to see a shortcode that would work?
What does this insert in the db that I need to remove manually?
Because my blog messed up because of this plugin. It is poorly coded to deal with the following situation:
Owner doesn’t want to get hacked because he has user ID 1 so he creates a new admin account and changes his previous account data to the new one.
This the plugin does not handle well…
Now I got no forum rules tab in user list, all forum roles are loaded in the blog roles.
With the recent bbPress update, the way notification is sent is changed. Earlier individual emails are sent to each people, but now only one email is sent with all the email address in bcc. I guess this is done to prevent email bottleneck. But this seems to have caused a issue in my setup.
I use wpmandrill to send emails through the mandrill service. With the new change, the to and from address is changed to a default “do not reply” email address that is calculated using the current domain name. The code is present in the
bbpress/includes/common/functions.php
$do_not_reply = '<noreply@' . ltrim( get_home_url(), '^(http|https)://' ) . '>';
So it becomes <nobody@domain.com>
When this address is used as “to” address, the mandrill service thinks that it is an invalid email address because of the angle brackets.
I went through the code, but there is no filter to change the
$do_not_replyvariable.Hi There,
I’m working on my forum and i’m customizing my profile page(the one you can see other people’s reccords and number of posts)
the only thing i get to see are:
Forum Role
Topics Started
Replies Createdthe fields in the code look like:
<p class="bbp-user-forum-role"><?php printf( __( 'Forum Role: %s', 'bbpress' ), bbp_get_user_display_role() ); ?></p>i’m just wondering how to show first/lastname or only lastname.
hope you can help,
Best regards,
Kaluh