Hello everybody,
first sorry for my english, i’m a french bbpress user then i don’t speak a very good english.
I’m trying to custimize the breadcrumb on my forum but i don’t succeed what i’m trying to do.
By default, the breadcrumb is like this :
Forum name >> Category name >> Forum name
What i want is to delete the “Category name” from the bbcrumb. Then i went into functions.bb-template.php file but don’t found the codeline i have to edit. I found the bb_get_forum_bread_crumb() function but don’t know how to do.
Does someone can help me ?
In resume, i’m trying to change :
Forum name >> Category name >> Forum name
to :
Forum name >> Forum name
on forum pages.
Last question, how to add “topic name” at the end of the bbcrumb on the topics page ?
Thanks in advance.
still struggling with this, I am sure I am being a numpty so any help welcome here
This seems to be resolving well here, except for the Widget Logic plugin that doesn’t work with this new beta version
Here is what I eventually figured out — it would be great if someone would let me know a) if there is an easier way to do this and b) if they see any security issues in here, since I am not a PHP programmer or frequently working with WP or bbpress. Thank you.
This replaces the breadcrumbs block between the comments
/** Current ***********************************************************/
and
/** Finish Up *********************************************************/
in bbp-common-template.php in the neighborhood of lines 1421 to 1428:
/** Current ***********************************************************/
// Add current page to breadcrumb
global $current_user;
get_currentuserinfo();
$bb2custom_user_is_logged_in = 'Welcome '.$current_user->user_login.'. You can log out <a href='.wp_logout_url( get_permalink() ).'>here</a>.';
$bb2custom_user_is_logged_out = "You aren't logged in. <a href=".wp_login_url( get_permalink() ).">Log in here</a> or <a href='http://www.example.com/wp-login.php?action=register'>register</a> if you don't have an account.";
if ( is_user_logged_in() ) {
$bb2custom_loginoutregister = $bb2custom_user_is_logged_in;
} else {
$bb2custom_loginoutregister = $bb2custom_user_is_logged_out;
}
if ( !empty( $include_current ) || empty( $pre_current_text ) )
$breadcrumbs[] = '<span class="bbp-breadcrumb-current">' . $current_text . '</span><p>' .$bb2custom_loginoutregister. '</p>';
/** Finish Up *********************************************************/
I think there is a bug in the bbp-twentyten files.
I’m talking about archive-forum.php
It calls bbp_get_template_part( 'bbpress/content', 'archive-forums' );
Notice the ‘s’ from archive-forums. That template part doesn’t exist, thus http://www.example.com/forums/ returns empty. (Also themes that don’t have support for bbpress don’t display anything for /forums/ url – is this default functionality?)
Thanks.
I’m using a child theme, bbpress v3327, copied the contents of bbp-twentytento the child theme directory, creted a page “forums” assigned bbpress index template to it but it doesnt show the forum index unless i use the shortcodes, created some forums and topics inside of them and it doesnt show either the forums when i click on them or the topics, individual links don’t work.
Forum index (shortcode enabled)
http://www.ricardouk.com/forums
Individual forum permalink (not working):
http://www.ricardouk.com/forums/forum/regras-de-utilizacao-do-forum
individual forum link (partially not working, just shows the content)
http://www.ricardouk.com/forums/topic/como-efectuar-o-registo-neste-forum
all of this was working with beta 2
Hello,
I have sorted out my migration from a standalone 1.0 installation in a separate db to a 2.0 plugin installation on my own, and now I would like to restore the functionality of bbpress 1.0 of having a log in/out link and a username for the logged-in user at the top of every forum page. I don’t want this at the top of every page on my site, just on every forum page. Here is the approximate code I would use if I were to add this to a WP header somewhere:
<?php if ( is_user_logged_in() ) { ?>
get_currentuserinfo();
<p>
echo ‘Welcome ‘ . $current_user->user_login . Click here to log out“n”;
</p>
<?php } else { ?>
<p>” title=”Login”>Log in to post if you are registered, or /wp-register.php”>register an account.</p>
<?php } ?>
Can someone help me integrate the same functionality into bbp-common-template.php or wherever it ought to go in order to be shown on every forum page but not on any pages that aren’t part of my forum? I would like it to appear right below the breadcrumbs on every page.
While I’m here, I’d like to strongly recommend building this functionality into the bbpress plugin, since there are probably many people other than me who don’t want to encourage login attempts (or use up primary menu navigation space) for any pages other than their dedicated forums.
Thank you!
Hi John, firstly, thanks so much for the work you’re doing. I think BBPress is a great product.
I’ve just installed Beta 3 and am getting the Forum breadcrumb link not working issue. I created a Forums page on our site and added the [bbp-forum-index] shortcode to the page. The page address is “?page_id=155”.
For the uninitiated, could you please give a dummies version of what I need to do to get the Forums link pointing back to that page.
Thanks heaps
Try this in your template’s topic.php:
<li><?php printf(__('Started %1$s by %2$s'), bb_datetime_format_i18n(get_topic_start_time(array('format' => 'timestamp'))), get_topic_author()) ?></li>
You can use “timestamp” but then you need to convert it from a Unix timestamp using bb_datetime_format_i18n.
Hope that helps.
Chris
Only noticed this since my test site got beta3 the other day.
http://beta.tartarus.co.nz/ is the WP, and /forum/ is a page that uses the [bbp-topic-index] and [bbp-forum-index] with default templating (ie: not Forum Index template).
I’ve got three screenshots which show the bbpress plugin settings for the slugs, the /forum/ “Recent Topics” page, the forums slug /forums/ page when you click Forums in the breadcrumb, and my work around to make it behave how I want it to behave (see the urls too).
So 1.png is the /forum/ page.
http://dump.master5o1.com/files/images/bbp/1.png
2.png is the /forums/ slug page as WP/bbp naturally does it.
http://dump.master5o1.com/files/images/bbp/2.png
3.png is done using /forums/index.php to redirect to /forum/.
http://dump.master5o1.com/files/images/bbp/3.png
If I made the /forum/ page slug be forums then it would show blank page probably because bbpress is getting in there first and showing the forum slug page which is blank -_-
I think that if bbpress returns a blank page, it should tell WP that it hasn’t found anything and for WP to continue to look for the page. But I don’t know how the plugin works much atm.
This seems to be resolving well.
And here. Update to beta-3 and suddenly Forum Index doesn’t display anything.
To clarify, this was a page with the template “bbPress – Forums (Index)”.
Adding a new page with the same template also failed to show the index.
However, adding the shortcode
[bbp-forum-index]
to the page content makes the forum index appear again.
I’ve been a little out of the loop so I don’t know if this is intentional – maybe the index template isn’t the way to do it now and we’re supposed to use the shortcode. Using the shortcode does have the advantage of being able to add text before and after the forum index. Other template pages seem fine though.
In any event, it’s simple to fix.
The email notification reply link is fixed in Beta 3. Thanks. A new bug though: that link only works if the reply is on the first of many pages.
For example, the latest reply was emailed to me with this link: http://devpress.com/forums/topics/new-design/#post-2119
Pagination puts that reply on page 2 which means that link doesn’t actually take me to the reply and I have to go to the next page manually.
This is the working link: http://devpress.com/forums/topics/new-design/page/2/#post-2119
Also, that link actually has another bug report
@Fartlek – The Akismet integration was largely contributed by cnorris23, and Nightgunner5. Props to them
DKB, doing this across multiple domains would be even awesomer! To enable something like this, can I get freelancers to do it for me for reasonable money? Or would that be so expensive that I’d be better of doing it myself. You say consult the docs (and thanks, Gautam) but I must stress I know nothing about codey stuff! Can anyone suggest a reliable WP/bbPress freelance coder?
Hi there,
first of all: thank you for this great Forum-Plugin!
I’ve got the standard installation by now and the shortcode [bbp-single-forum id="testforum1"] isn’t working for me.
Has anyone any idea what’s wrong?
[bbp-forum-index] on the same page works perfectly .. but i only want a single forum.
Thank you!
Originally we /really/ wanted a sexy p2 style theme for bbPress 2.0, but we scrapped it to focus on getting the foundation solid first. Long term we’d really like to have something ajax and fancy, so if any talented theme dev wants to step up and help build one, that would be swell.
@Patrick – Known issue. Will be fixed in Beta 3. 
@lamo21 – Doing it wrong. Check translate.wordpress.org for bbPress 2.0 translations.
http://www.mandressed.com/forums
… a few details on adding function support would be welcomed.
Is “fi” the exact language code you have set in your wp-config.php? It’s not “fi_FI” or “fi_SF” or whatever it might be?
I have the same problem right now with bbPress 1.0.3. If you’re interested, you can put this piece of code before the “if ( $relevant ) ” line:
<?php
foreach ( $relevant as $elementKey => $bb_post ) {
if(!($bb_post->post_text)) unset($relevant[$elementKey]);
}
?>
This deletes the relevant posts which are already in the recent posts, and so are broken.
Yes, you can get the standalone version to use the WP user tables and then also integrated the cookies for single log-on. Please consult the docs.
There are 2 ways of replying to topics in the bbPress plugin:
1) To go to the themed page and reply there in the box under the topic-creating 1st post. This works fine, but there are no buttons to easily embed images in your replies, so you have to create your html in a separate editor then paste the code into the reply. And worse, there is no upload buttons (I want my users to be able to upload images/vids to post into their replies).
2)You use the grey panel at the top with ‘Add’>’Reply’ and it takes you to the white, unthemed, admin-looking area (what is this area called please, just so i now!?!), where you do indeed have access to embed and upload buttons WHICH IS GREAT AND DOES INDEED UPLOAD AND EMBED….but, despite choosing the topic it is to link to in the top right dropdown named ‘Reply Attributes: Parent Topic’, doing it this way results in an orphaned reply which sits somewhere obscure on my webspace and does not appear under the topic it was meant for.
Is there a way to solve ‘2)’? Or will my users who i want to be able to put images and stuff in their topic replies have to stick to pasting in code? Have i broken my admin-looking area making it unable to link replies to topics? Could a conflicting plugin have caused this?
Please help!
Is <?php do_action( 'bbp_template_after_forums_index' ); ?> working for everyone else. I can’t find any other complaints about it.
The action is being called in archive-forum.php and should output the latest topic replies in chronological order of freshness.
http://devpress.com/forums/ <– no forum index appearing.