Leonyipa (@leonyipa)

Forum Replies Created

Viewing 25 replies - 26 through 50 (of 58 total)
  • @leonyipa

    Participant

    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: {

    @leonyipa

    Participant

    I also found the code is in
    /public_html/wp-content/plugins/bbpress/templates/default/css/bbpress.css

    I 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%

    @leonyipa

    Participant

    Thanks 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?

    @leonyipa

    Participant

    bump please,

    I tried but I cannot remove it, can you tell me which piece of code do I need to remove? Thanks

    @leonyipa

    Participant

    thanks,

    no, what I mean is setting a stand size for ALL embed youtube videos in BBPress

    @leonyipa

    Participant

    please help!

    In reply to: Error on Embing Media

    @leonyipa

    Participant

    ok, thanks 🙂
    can you help me with the topic if you are free? thanks 🙂

    Reduce size of embed Media

    @leonyipa

    Participant

    In addition, how to set a maximum width for </img> images?

    @leonyipa

    Participant

    bump

    @leonyipa

    Participant

    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’ );

    @leonyipa

    Participant

    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?

    @leonyipa

    Participant

    @netweb I tried but I cannot remove it, can you tell me which piece of code do I need to remove? Thanks 🙂

    @leonyipa

    Participant

    @leonyipa

    Participant

    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?

    @leonyipa

    Participant

    yes, I searched for very long time but I could’t find any plugins about Spoiler

    @leonyipa

    Participant

    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

    @leonyipa

    Participant

    where should I add the code to?

    In reply to: How to add a @username

    @leonyipa

    Participant

    Thanks very much!! 🙂
    It looks very pretty now 😛

    @leonyipa

    Participant

    Thanks, I found out how to remove it now!!!

    Thank you very much!!! 🙂

    @leonyipa

    Participant

    thanks! how do I change form-topic.php?

    @leonyipa

    Participant

    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! 🙂

    @leonyipa

    Participant

    i have participant (bbpress)
    and subscriber (wordpress)

    In reply to: How to add a @username

    @leonyipa

    Participant

    Thanks, 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

    @leonyipa

    Participant

    I created a test account and created a topic, he can move the topic too :/

    In reply to: How to add a @username

    @leonyipa

    Participant

    It works! And it looks really pretty now!! Thanks 🙂

    how do I change the font colour of @username? (e.g. grey like BBPress forum)

Viewing 25 replies - 26 through 50 (of 58 total)