Hey bbpress people. I am having a trouble with my forum. The replies look like they are getting cut off. The original is fine. Take a look for yourself. Here is the URL of an example thread. http://www.calledoutracing.com/forums/Topic/cadillac-ats-choices/ . Please help me fix this. I cannot change my theme as it would hav a huge impact on my site. Thanks.
I’ve searched but not found a solution. I’m running the current version of WordPress on a multisite network with a new install of bbPress.
I’m the superadmin of the network and everything works great. However, when I try to give access to another user and give that user a keymaster role the links in the admin bar for Forums, Topics, and Replies is missing.
So far I’ve tried running the repair tool with no change. I can even access the tools with the login that doesn’t show the admin bar links. The forum is located here: q4intel.softwiredweb.net.
Hello to all
Could anyone say me why is not working “Submit button” of BBpress in my theme and why I can’t see manually created topics from the admin control panel?
The web is: http://probando555 DOT esy.es/forums/
Thanks a lot
I’ve been using bbpress plugin to set up forums for my website’s users. Originally there is no function when it comes to ‘counting views’ of each post. So I added some codes according to this website’s advice.
It works fine with general(sitewide) forums but when I made a group(buddypress function) and tried to integrate it with bbpress forum, the view count php code does not work in group forums. (Still, it works perfectly fine at sitewide forums)
this is my code right now (wp-content/plugins/bbpress/templates/default/bbpress/loop-single-topic.php)
<li class="bbp-topic-voice-count">
<?php
if( !function_exists('get_wpbbp_post_view') ) :
// get bbpress topic view counter
function get_wpbbp_post_view($postID){
$count_key = 'post_views_count';
$count = get_post_meta($postID, $count_key, true);
if($count==''){
delete_post_meta($postID, $count_key);
add_post_meta($postID, $count_key, '0');
return "0";
}
return $count;
}
function set_wpbbp_post_view($postID) {
$count_key = 'post_views_count';
$count = get_post_meta($postID, $count_key, true);
if( $count == '' ){
add_post_meta($postID, $count_key, '1');
} else {
$new_count = $count + 1;
update_post_meta($postID, $count_key, $new_count);
}
}
endif;
if( !function_exists('add_wpbbp_topic_counter') ) :
// init the view counter in bbpress single topic
function add_wpbbp_topic_counter() {
global $wp_query;
$bbp = bbpress();
$active_topic = $bbp->current_topic_id;
set_wpbbp_post_view( $active_topic );
}
add_action('bbp_template_after_single_topic', 'add_wpbbp_topic_counter');
endif;
echo get_wpbbp_post_view( bbp_get_topic_id() ); ?>
</li>
try the general issues troubleshooting from here
Before Posting
looking forward to your template or codex changes
I just updated the codex article and put an example template to look and study off of.
It is not just copy and pasting the template into a file and it working, you have to study it and read the comments in the code and find similarities in your index.php file. Then you can create a bbpress.php file from your index.php file.
If I add the short-code to a custom page using the page.php code it works
Yes I know but it is just that page, you need all of the bbPress forum pages. Using shortcodes like that means you would have to put a topic shortcode for every topic you have in a bunch of pages. And that is not what either of us are looking for , right??
It doesnt matter if the default forum uses index.php or page.php – it doesnt work.
Yes it does, and you have to edit the new bbpress.php file.
I have sequentially copied pages.php and index.php and made them bbpress.php and each time I can see that the default forum is using it, and each time it doesnt work
Its not as easy as just renaming it.
So i guess I need a generic index.php that will work (which I think you said you were producing) OR some workaround so the generic forums page doesnt appear in the directory path
Was busy with other stuff , but yes i uploaded an example template to look over and compare to your index.php. You cannot just copy and paste , you have to look at the simple code and read how it works in the comments i left in the code.
Hi,
I am using BBPRESS for my website, I checked this option from backend:
“Embed media (YouTube, Twitter, Flickr, etc…) directly into topics and replies”
but only administrator can embed youtube and other embed just reflect the IFRAME code.
can you help what I am missing, I need it to be allowed for CONTRIBUTORS to embed the youtube embed code.
Thanks Sanny
Hi there – thanks so much for your help so far. I did some more tests and I just cant get it to work (so looking forward to your template or codex changes.
To summarise:
1. I was only using WPtweaks to tell it which page to use as a template but no matter which one I told it to use – it didnt work. Have since de-activated
2. If I add the short-code to a custom page using the page.php code it works
3. It doesnt matter if the default forum uses index.php or page.php – it doesnt work.
4. I have sequentially copied pages.php and index.php and made them bbpress.php and each time I can see that the default forum is using it, and each time it doesnt work
So i guess I need a generic index.php that will work (which I think you said you were producing) OR some workaround so the generic forums page doesnt appear in the directory path
Using the newest versions of wordpress and bbpress 5/26/2015
Hi all!
After some search here on support forum and in bbpress itself (v2.5.7, wordpress 4.2.1), i dont find anything about this (only Multsite-related, which isn’t my case).
My question is: Is possible to bbpress use forums.example.org instead of example.org/forums ? I want to setup a small website consisting of a forum and a portal (blog), and i want to know if this is possible.
Thank you in advance
I’d like to have my bbpress sidebar on the right rather than the left, how can I do this? I’m using the travel blogger theme.
Thanks,
Sam
Hey @robkk –
We’re off the “staging” area now, so I’ve got the bbPress installed at:
http://www.theworshipcommunity.com/discuss/
The RSS feed for everything in the forum (new topics, replies, etc) is:
http://www.theworshipcommunity.com/discuss/feed/
However, when I try to do the /discuss/topics/feed it just says “comments on …” as if it would only be showing a comments feed. Nothing shows up there?
good, i will try using gd bbpress attachments. Will see how it goes.
Thank you!
Plus i basically just got this code from here
Resizing Avatars
use this PHP function to resize the small avatars
function my_bbp_change_avatar_size($author_avatar, $topic_id, $size) {
$author_avatar = '';
if ($size == 14) {
$size = 24;
}
$topic_id = bbp_get_topic_id( $topic_id );
if ( !empty( $topic_id ) ) {
if ( !bbp_is_topic_anonymous( $topic_id ) ) {
$author_avatar = get_avatar( bbp_get_topic_author_id( $topic_id ), $size );
} else {
$author_avatar = get_avatar( get_post_meta( $topic_id, '_bbp_anonymous_email', true ), $size );
}
}
return $author_avatar;
}
/* Add priority (default=10) and number of arguments */
add_filter('bbp_get_topic_author_avatar', 'my_bbp_change_avatar_size', 20, 3);
add_filter('bbp_get_reply_author_avatar', 'my_bbp_change_avatar_size', 20, 3);
The CSS you would have to use now is
#bbpress-forums .bbp-author-avatar .avatar-24 {
width: 24px !important;
height: 24px !important;
padding: 0 !important;
border: none !important;
}
and you can remove the first function i gave you to test with
Well the file you are suppose to copy and create a bbpress.php file from is index.php
And although putting the forum index shortcode in a page is “easier” in a sense , you will still come up with issues just like you are going through. This is why I have been editing the Codex for the last few days to hopefully fix these issues that users might come across.
As for that weird wp tweaks issue you have , I do not know how to fix that. if you are only using that plugin just for a bbPress specific sidebar there are better plugins than that one.
And it is not hard to manually create a bbPress specific sidebar too.
Thanks so much – although I am wondering if it is going to solve my problem (but please do!)
it might help a little, there is a bunch of post meta that you would have to remove for it to look correct.
You can also contact me later today through email, if you need help during the process.
Contact
#bbpress-forums .bbp-author-avatar .avatar-14 {
width: 24px;
height: 24px;
padding: 0;
border: none;
}
if that does not work try this
#bbpress-forums .bbp-author-avatar .avatar-14 {
width: 24px !important;
height: 24px !important;
padding: 0 !important;
border: none !important;
}
try this CSS code and hopefully this fixes your issue.
it looks too small at 14px so i bumped it up to 24px , you can change that back to 14 if you want.
#bbpress-forums img .avatar-14 {
height: 24px;
width: 24px;
padding: 0;
border: none;
}
Thanks so much – although I am wondering if it is going to solve my problem (but please do!)
The reason I say that is….
I downloaded ‘What the File plug in’ and looked at the forums page that isnt working (the default page). It ‘was’ using ‘index.php’ where as the page I built that does work uses ‘page.php’
So then I used ‘bbPRess wp tweaks to tell it to use ‘page.php’ for the non-working forums page
And now when I go to the non-working forums page, What That file tells me I am using ‘pages.php’ (same template that works on the other page) but as you can probably guess it still doesnt render!
It’s like listify is telling it to ignore whatever page I choose and just ‘don’t render it correctly!’
Another ‘not so good’ solution would be just to remove ‘forums’ from that path directory, or that entire directory (but I dont know if that can be done). While it reduce navigation for the site, at least it would remove a bogus link that doesnt work
@aaronos
I will edit the guide again to show how a generic template for bbPress should look later today.
did you use the What the File plugin and just get nothing??
i did – thanks. my problem is there isn’t any page theme/template in listify that works at all. I don’t have the skill base to write a page that would work from scratch, and it’s not like there is a listify template that is ‘almost’ working that I can modify.
Quite possibly a dumb question (apologies in advance) but is there such a thing as a dummy/generic bbpress template that I could upload that would work, and then I could modify it to look a bit more like my themes?
I have a very similar problem and I must admit I have posted it as a seperate topic, but you guys seem so close to the problem (and solving it) that I trust it’s ok to post here as well.
I am using the Listify Theme and there does not fundamentally seem to be a default template that will work with bbpress. No matter what template I choose and copy as the plugin-bbpress.php template for example – it won’t work. Here’s an example of the page not working – http://tattsamistake.com/forums/
So….I built a custom page and put the shortcode in it – and the page works. BUT when I click thru to a forum, I get my navigation path which links to the forums page that doesnt work – ie the path shown is … Tattoo Removal Australia › Forums › Tattoo Removal
and if i click on ‘forums’ it goes to the non-working page – http://tattsamistake.com/forums/
BUT if i go and change the slug from ‘forums’ to ‘Tattoo-forum’ (the customised page that does work) it goes and applies a non-working template to that page, so in effect killing the page.
I guess to solve it I need the following…
1. A way to tell it where the forum short-code is without over-writing the page template
2. This may sound very silly but is there such a think as a generic bbpress.php template that I can use and upload to my site? Sure it won’t look like my site, but it would be a starting block.
3. Can I just get rid of ‘forums’ in that path, or at a pinch just get rid of that path from displaying completely?
Any help much appreciated!
I am using the Listify theme at http://tattsamistake.com
For some reason none of the page themes will work with bbpress (if I am wrong would love to know!)
So I followed the instructions on building a new page and adding the forums short-code to it. Even then it isn’t ideal but it will just about do – you can see it at http://tattsamistake.com/tattoo-forum/
If I click on any forum I then get presented with a directory ‘path’ to go back one page ie – Tattoo Removal Australia › Forums › Caring for Tattoos
The problem is – if I click on ‘Forums’ I go to the ‘default’ forums page that doesn’t work, rather than the new forums page that I built (that mostly works)
If I go to settings and change the name ‘forums’ to the same name as my custom-made forums page, it then overwrites my page template choice with the template that doesn’t work for forums – so it breaks the page
So in short – how can I get that ‘path’ Tattoo Removal Australia › Forums › Caring for Tattoos
to point to my working forums page, rather than a non-working forums page?
Hope this makes sense!