Hello there
I fail in inserting / embedding an m4v video into a forum posts. Posts show text and images as intended, but for videos, just the smart tag is shown:
[video width="640" height="640" m4v="video.m4v"][/video]
What am I doing wrong?
I run wordpress 4 and bbpress 2.5.4
Help is much appreciated.
– MannMitHund
Ok do to fix it i had to write that code in the actual funtions.php file of my main theme
So i made a new file called bbpress-functions.php and put this into it
<?php
//code to add tutor role
function add_apply_role( $bbp_roles )
{
/* Add a role called apply */
$bbp_roles['bbp_apply'] = array(
'name' => 'apply',
'capabilities' => custom_capabilities( 'bbp_apply' )
);
return $bbp_roles;
}
add_filter( 'bbp_get_dynamic_roles', 'add_apply_role', 1 );
function apply_role_caps_filter( $caps, $role )
{
/* Only filter for roles we are interested in! */
if( $role == 'bbp_apply' )
$caps = custom_capabilities( $role );
return $caps;
}
add_filter( 'bbp_get_caps_for_role', 'apply_role_caps_filter', 10, 2 );
function custom_capabilities( $role )
{
switch ( $role )
{
/* Capabilities for 'apply' role */
case 'bbp_apply':
return array(
// Primary caps
'spectate' => true,
'participate' => true,
'moderate' => false,
'throttle' => false,
'view_trash' => false,
// Forum caps
'publish_forums' => false,
'edit_forums' => false,
'edit_others_forums' => false,
'delete_forums' => false,
'delete_others_forums' => false,
'read_private_forums' => false,
'read_hidden_forums' => false,
// Topic caps
'publish_topics' => true,
'edit_topics' => true,
'edit_others_topics' => false,
'delete_topics' => false,
'delete_others_topics' => false,
'read_private_topics' => false,
// Reply caps
'publish_replies' => true,
'edit_replies' => true,
'edit_others_replies' => false,
'delete_replies' => false,
'delete_others_replies' => false,
'read_private_replies' => false,
// Topic tag caps
'manage_topic_tags' => false,
'edit_topic_tags' => false,
'delete_topic_tags' => false,
'assign_topic_tags' => true,
);
break;
default :
return $role;
}
}
I have no idea where i put this file in my site directory……
Any update to this? I, too, have a large bbPress forum and I see the following in my error log:
SlowTimer [6357ms] at runtime/ext_mysql: slow query: SELECT SQL_CALC_FOUND_ROWS wp_13_posts.ID FROM wp_13_posts INNER JOIN wp_13_postmeta ON (wp_13_posts.ID = wp_13_postmeta.post_id)\nINNER JOIN wp_13_postmeta AS mt1 ON (wp_13_posts.ID = mt1.post_id) WHERE 1=1 AND wp_13_posts.post_type = 'topic' AND (wp_13_posts.post_status = 'publish' OR wp_13_posts.post_status = 'closed') AND (wp_13_postmeta.meta_key = '_bbp_last_active_time'\nAND (mt1.meta_key = '_bbp_forum_id' AND CAST(mt1.meta_value AS SIGNED) != '133643') ) GROUP BY wp_13_posts.ID ORDER BY wp_13_postmeta.meta_value DESC LIMIT 0, 25
The issue is related to how wp4.0 looks at search and in particular at the ‘s’ parameter submitted to wp-query. wp4.0 does it differently and what didn’t look like a search to previous wp versions now does when sent from bbpress functions.
Hence why your $query->is_search was affected
I had the same problem. After upgrading to WP 4.0 only sticky topics were visible. I tried the patch/plugin “bbpress wp4 fix”. I could now see all topics, but when I clicked on any one of them only the first forum topic would open. The URL was correct, but the wrong topic appeared in the page. I deactivated the plugin and after some more research, found that I had a piece of code in my functions file that interfered with the topics showing. Here is the code that caused the problem:
//exclude from search results
function fb_search_filter($query) {
if ( !$query->is_admin && $query->is_search) {
$query->set('post_type', array('course_unit') ); // id of page or post
}
return $query;
}
add_filter( 'pre_get_posts', 'fb_search_filter' );
I don’t know why this code is a problem, but I no longer needed it. I deleted it and now my forums are working just fine.
ok, pasting urls into a page won’t really do it
you can either enter
[bbp-forum-index]
or if you are using custom menu’s you can enter the url as a menu item
@ricsca2
bbpress does have a css of its own as yiou found earlier, but tries to use much of the one from the host theme
I am trying to write a bbpress css plugin where you can set areas simply
eg
Header : Colour? size? etc.
but progress I slow whilst I work out what bits of the bbpress.css code do and when
Tell me which parts you are still having trouble with eg breadcrumb and I’ll try and help further
@robin-w With the code you’ve written now the various parts of the forum is bigger.
The problem is that I can not change manualente all parts of the theme.
The theme for bbPress does not have a css because it goes to get the css of wordpress theme right?
As ever with the theme HUEman this does not happen?
Very thanks
Without a url or screenshot I can’t really help further – there are several places where bbpress has font sizes eg
#bbpress-forums ul.bbp-lead-topic,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.bbp-search-results {
font-size: 12px;
}
#bbpress-forums .bbp-forums-list li {
font-size: 11px;
}
#bbpress-forums div.bbp-forum-title h3,
#bbpress-forums div.bbp-topic-title h3,
#bbpress-forums div.bbp-reply-title h3 {
font-size: 16px;
}
#bbpress-forums .bbp-forum-info .bbp-forum-content,
#bbpress-forums p.bbp-topic-meta {
font-size: 11px;
}
and lots more
I can only suggest you try some of the above in your custom css BUT put ‘!important’ after the px part to ensure that it is not overwritten eg
#bbpress-forums ul.bbp-lead-topic,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.bbp-search-results {
font-size: 12px !important;
}
Hello everyone!
Just spotted an issue with bbp_filter_modify_page_title(). It tried to fetch the current topic to add its title to <title> but uses post_status = ‘publish’. This fails if the topic is set to closed.
My suggestion is to change line 127 from:
'post_status' => 'publish',
to
'post_status' => 'any',
Best regards
not as such
There is a POT file
bbpress/languages/bbpress.pot
see
https://codex.wordpress.org/Translating_WordPress
so you could in theory translate bbpress into your words
Since you paid for a theme (and it has so much “we are great” on it’s website), suggest you raise this with them first to see if they can give you amended code
just resolve my problem!
this is what i do:
1. change my permalinks to “postname” just like robin suggested
2. i create “.htaccess” file (since i dont have that file)
this is how to create that file:
– simply open your notepad
– copy paste this code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
– save as “.htaccess” (you will get file with extension txt)
– copy file with FTP to sites/domain/www
– rename file, erase txt extension
DONE!
my child forum is active now!
Presuming you have default permalinks (don’t worry if you have no idea what this means) then it is a known issue with wordpress 4.0 and is in the queue for a fix on the next release.
in the meantime you can either
move you child themes up a level
or (better) change your permalinks to ‘pretty’ ones.
see https://codex.wordpress.org/Using_Permalinks for explanation of what a permalink is
go to
Dashboard>settings>permalinks and set them to ‘postname’
Hi all,
i’m totally not an IT guy, so i don’t know anything about coding. I learn to build website with WP by learning from internet.
this is my first time i use BBpress to build a forum website.
this is my web: http://www.buangstres.gratis/
i use WP version 4.0
i use theme Skeleton: http://themes.simplethemes.com/skeleton/
i use these plugins:
– akismet
– easy WP smtp
– simple local avatars
– simple shortcodes (reccomendation fro the theme)
– WP-members
– WP-pagenavi (reccomendation from theme)
i found that all my Child forums having problem: page not found
this is what i’ve already done:
– reset the permalinks
– deactivate all plugin (include bbpress), activate only bbpress
all isn’t working
need the solution desperately… anyone can help me? it will be a huge appreciation from me
hi, i have the same issue, but i already try to deactivate all plugins and the problem is still there…
this the plugins i use:
additional information, i use these plugins:
– akismet
– easy WP smtp
– simple local avatars
– simple shortcodes (reccomendation fro the theme)
– WP-members
– WP-pagenavi (reccomendation from theme)
any suggestion for me? i need help desperately…
these anti-spammer and security plugins look interesting too, but i have not tested them myself, they should work fine with bbpress but always test carefully for possible confilicts with other plugins you are using, especially plugins that have similar functionality
https://wordpress.org/plugins/avh-first-defense-against-spam/
and wordpress security is a bigger topic than just dealing with spammers, but sorting out the specifics is up to you 🙂
https://codex.wordpress.org/Hardening_WordPress
http://premium.wpmudev.org/blog/keeping-wordpress-secure-the-ultimate-guide/
https://wordpress.org/plugins/bulletproof-security/
https://wordpress.org/plugins/tags/security
https://wordpress.org/plugins/tags/wordpress-security
sam
Hi everyone,
I would like to disable completely the mentions feature in forums, even if someone put accidentaly a “@” before a username for exemple “jack” I don’t want the result “@jack” to link to jack profile.
I’ve got Buddypress and bbPress,
the code add_filter( 'bp_activity_do_mentions', '__return_false' ); disable BP mentions but not bbPress mentions, how can I do that?
[Edit] thanks to danbp, here is the solution: add_filter( 'bbp_find_mentions', '__return_false' );
Thank you very much for your help
Hi there,
I’m having a browser issue on a registration form that causes it not to work in safari or IE but it works fine in Chrome.. If you visit this page and without filling anything in, just hit ‘complete sign up’, in Safari nothing happens, but in Chrome the field errors are displayed as expected.. any ideas on this? I’m unable to successfully register in Safari.
In the code, the errors (e.g. <div class=”error”>This field is required.</div>) are never generated in Safari (to rule out a css issue)..
http://sapoa.staging.wpengine.com/bbpress-register/
Thanks, Jon
i added mine by copying loop-topics.php to my child theme and placing it above
<li class="bbp-header">
it looks like you want it to be above the header in loop-replies.php though.
@terriswiatekyahoocom you can create a simple href link to go back to the forums thats how ive done it before. i just did this before <a href="example.com/forums"></a>
@robin-w i think you can create a function using <?php echo site_url(); ?> and
<?php printf (bbp_get_root_slug() ); ?> , i suck at php so i ended up with this sloppy code
<a href="<?php echo site_url(); ?>/<?php printf (bbp_get_root_slug() ); ?>">Back to Forums</a>
css code:
.bbp-topics ul.status-closed {
display:none;
}
hi
I am getting this error.
[16-Oct-2014 11:17:02 UTC] PHP Notice: bbp_setup_current_user تمّ استدعائه بشكل غير صحيح. The current user is being initialized without using $wp->init(). المرجو مراجعة التنقيح في ووردبريس للمزيد من المعلومات. (هذه الرسالة تمّت إضافتها في النسخة 2.3.) in /home/turathal/public_html/wp-includes/functions.php on line 3370
I am using
Debug : True
Wordpress : 4
bbPress Version 2.5.4
pleas help mee