Search Results for 'code'
-
Search Results
-
I have read the following explanation on using filters, and have become somewhat proficient on this. http://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-5/
I am having an issue, to which I believe there is probably a simple answer. I want to replace the word “Reply” with “Review This Book” in the admin links. Easy enough. But when I do that, there is no longer a link; I want to maintain the same link.
According to the tutorial I have been using (above link), I am supposed to use a function like this:
function jc_return_review( $args = array() ) { $args['reply_text'] = 'Review This Book'; return $args; }Then I implement the following:
add_filter( 'bbp_get_topic_reply_link','jc_return_review' );However, the above function causes the following error:
“Warning: Illegal string offset ‘reply_text’ in /homepages/../../../../wp-content/plugins/bp-custom.php on line 111
Ra href=”#new-post” class=”bbp-topic-reply-link”>Reply”But…, when using the following function
function jc_return_review() { return 'Review This Book'; }And the same filter above, the wording gets replaced just fine, but as I mentioned at the start of this post, there is no longer a link. In other words, without my filter, REPLY is a link that takes you to the reply window. When using my filter, Review This Book is present, but there is no link associated with Review This Book.
Thanks for any help here.
Topic: jQuery not loading correctly
Something is broken with my use of BBPress related to jQuery:
Using the jQuery selector does not work. For example:
$(".title") TypeError: undefined is not a functionHowever, using
jQuery(".title")does work. This is breaking other plugins and code I have on my site (http://www.wallyhood.org). I’ve tried disabling all other plugins except for BBPress, and the problem still occurs. I’ve tried enabling all plugins EXCEPT BBPress and the problem doesn’t occur. So it would seem that it must be BBPress causing the issue, except that I would assume lots of other people would be reporting it if that were the case.
Any help?
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?