Forum Replies Created
-
hi, sorry for the late reply.
I tried both ways:
1) changing the Participant role directly
// Participant/Default
case bbp_get_participant_role() :
default :
$caps = array(// Primary caps
‘spectate’ => true,
‘participate’ => true,// Forum caps
‘read_private_forums’ => true,// Topic caps
‘publish_topics’ => true,
‘edit_topics’ => true,
‘delete_topics’ => true,// Reply caps
‘publish_replies’ => true,
‘edit_replies’ => true,
‘delete_replies’ => true,// Topic tag caps
‘assign_topic_tags’ => true,
);break;
}after I changed it, nothing happened :/
and
2) making custom role, but it says:Parse error: syntax error, unexpected ‘roles’ (T_STRING), expecting ‘(‘ in /home/gleam/public_html/wp-content/plugins/bbpress/includes/core/capabilities.php on line 216
216: function add_new roles( $bbp_roles ) 217: {
In reply to: Reduce size of embed MediaI also found the code is in
/public_html/wp-content/plugins/bbpress/templates/default/css/bbpress.cssI directly change the number of
#bbpress-forums div.bbp-topic-content img,
#bbpress-forums div.bbp-reply-content img {
max-width: 100%;
}However, no matter what number I change to, it still doesn’t work.
The width of the image still remain 100%In reply to: Reduce size of embed MediaThanks very much @Robkk!!
The youtube video worked!!! I have been looking for the solution for a long time, thanks!
The maximum width of youtube video works really well!!However, when I change the code to height, it doesn’t work 🙁
Also for the image, I edited the css
because I am using BBPress Default Theme, it doesn’t have a .css and tell me to edit function.php instead
And I paste the code into: /public_html/wp-content/themes/bp-default/functions.php#bbpress-forums div.bbp-reply-content img, #bbpress-forums div.bbp-topic-content img {
max-width: 100%;
height: auto;
}but no matter what I change the number, it is still set to 100%.
Did I add the code to the wrong place? or it’s not working?In reply to: How to remove "Change Topic"?bump please,
I tried but I cannot remove it, can you tell me which piece of code do I need to remove? Thanks
In reply to: Reduce size of embed Mediathanks,
no, what I mean is setting a stand size for ALL embed youtube videos in BBPress
In reply to: Reduce size of embed Mediaplease help!
In reply to: Error on Embing Mediaok, thanks 🙂
can you help me with the topic if you are free? thanks 🙂In reply to: Reduce size of embed MediaIn addition, how to set a maximum width for </img> images?
In reply to: How to remove "Change Topic"?bump
In reply to: How to add a notice when starting a topic?It’s fixed thanks 🙂
I changed
add_action( ‘bbp_theme_before_topic_form_notices’, ‘ntwb_custom_topic_form_notice’ );into
add_action( ‘bbp_theme_before_topic_form_notices’, ‘ntwb_custom_topic_form_notice’ );
add_action( ‘bbp_theme_before_reply_form_notices’, ‘ntwb_custom_topic_form_notice’ );In reply to: How to add a notice when starting a topic?thanks,
I saw the announcement in topic creation.
Can I make the announcement to be shown in topic creation, reply creation and also when editing reply?In reply to: How to remove "Change Topic"?@netweb I tried but I cannot remove it, can you tell me which piece of code do I need to remove? Thanks 🙂
In reply to: [GD bbPress Tools] Signature? Set maximum size?ok, I now switched the post in:
https://wordpress.org/support/topic/gd-bbpress-tools-signature-set-maximum-size?replies=1In reply to: How to add a notice when starting a topic?after putting the new code, it now says:
Fatal error: Cannot redeclare ntwb_custom_topic_form_notice() (previously declared in /home/gleam/public_html/wp-content/plugins/bbpress/includes/core/functions.php:633) in /home/gleam/public_html/wp-content/plugins/bbpress/includes/core/functions.php on line 627
I actually placed the code in bbpress/includes/core/functions.php
is it wrong?In reply to: Is there any Spoiler BBCode plugins available?yes, I searched for very long time but I could’t find any plugins about Spoiler
In reply to: How to add a notice when starting a topic?I put
function ntwb_bbp_theme_before_topic_form_notices() {
?>
<div class=”bbp-template-notice”>
<p>Something here…</p>
<p>Something else…</p>
</div>
<?php}
add_action( ‘bbp_theme_before_topic_form_notices’, ‘ntwb_bbp_theme_before_topic_form_notices’ );but then it says:
Fatal error: Cannot redeclare ntwb_bbp_theme_before_topic_form_notices() (previously declared in /home/gleam/public_html/wp-content/plugins/bbpress/includes/core/functions.php:634) in /home/gleam/public_html/wp-content/plugins/bbpress/includes/core/functions.php on line 628
In reply to: How to add a notice when starting a topic?where should I add the code to?
In reply to: How to add a @usernameThanks very much!! 🙂
It looks very pretty now 😛In reply to: How to remove "Change Topic"?Thanks, I found out how to remove it now!!!
Thank you very much!!! 🙂
In reply to: How to remove "Change Topic"?thanks! how do I change form-topic.php?
In reply to: How to remove "Change Topic"?but is it possible to disable topic moving for everybody by removing the list?
Because I even want to prevent Buddypress group forums admins to move the topic.Thank you very much! 🙂
In reply to: How to remove "Change Topic"?i have participant (bbpress)
and subscriber (wordpress)In reply to: How to add a @usernameThanks, where can I find custom css?
also, can I use;
add_action( ‘bbp_theme_after_reply_author_details’, ‘mentionname_to_bbpress’ );
function mentionname_to_bbpress () {
$user = get_userdata( bbp_get_reply_author_id() );
if ( !empty( $user->user_nicename ) ) {
$user_nicename = $user->user_nicename;
echo ‘<font class=bbp-user-nicename>’ ;
echo “@”.$user_nicename.'</font>’ ;
}
}use font instead of <p> ? because p will skip a line which makes the name and user role very far away
In reply to: How to remove "Change Topic"?I created a test account and created a topic, he can move the topic too :/
In reply to: How to add a @usernameIt works! And it looks really pretty now!! Thanks 🙂
how do I change the font colour of @username? (e.g. grey like BBPress forum)