Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 726 through 750 (of 6,774 total)
  • Author
    Search Results
  • davkim
    Participant

    All,
    I’m new to wordpress/bbpress, I’ve set my forum page to full-width… topics (list) are being shown as full-width. When I go into a specific topic, it’s not full-width. I have to manually change the topic attribute to full-width for each topic. It seems like when a topic is created, topic attribute is being defaulted to (default template) which is not full-width. Is there a way when a topic gets created, full-width template is used as default.

    Any help would be greatly appreciated.

    #211412
    scabbrox
    Participant

    Just as a query as it might be faster than manually fixing all the flags of old roles from each member but if I use the remap all users to default roles will this clear the database of all the flags in one go?

    I guess, it it safe is what I am asking, don’t want to inadvertently lose keymaster rights and be stuck.

    #211407
    scabbrox
    Participant

    Have sorted it for now by using default roles to give people access but would like the custom roles to be working again if possible.

    #211406
    scabbrox
    Participant

    The following is still in my functions.php file but whilst the custom roles show up under the “forum role” pull-down menu in the user profile, they cannot be saved and do not show under the Member roles list as ‘bbp_specialrolename’ versions, just as simple use roles (we have always had some duplicates for forum and non forum roles).

    function add_new_roles( $bbp_roles )
    {
    $bbp_roles[‘bbp_trial’] = array(
    ‘name’ => ‘Trial’,
    ‘capabilities’ => custom_capabilities( ‘bbp_trial’ )
    );

    $bbp_roles[‘bbp_warlord’] = array(
    ‘name’ => ‘Warlord’,
    ‘capabilities’ => custom_capabilities( ‘bbp_warlord’ )
    );

    $bbp_roles[‘bbp_general’] = array(
    ‘name’ => ‘General’,
    ‘capabilities’ => custom_capabilities( ‘bbp_general’ )
    );

    $bbp_roles[‘bbp_member’] = array(
    ‘name’ => ‘Member’,
    ‘capabilities’ => custom_capabilities( ‘bbp_member’ )
    );

    $bbp_roles[‘bbp_council_member’] = array(
    ‘name’ => ‘Council Member’,
    ‘capabilities’ => custom_capabilities( ‘bbp_council_member’ )
    );

    return $bbp_roles;
    }

    add_filter( ‘bbp_get_dynamic_roles’, ‘add_new_roles’, 1 );

    function add_role_caps_filter( $caps, $role )
    {
    if( $role == ‘bbp_trial’ )
    $caps = custom_capabilities( $role );

    if( $role == ‘bbp_warlord’ )
    $caps = custom_capabilities( $role );

    if( $role == ‘bbp_general’ )
    $caps = custom_capabilities( $role );

    if( $role == ‘bbp_member’ )
    $caps = custom_capabilities( $role );

    if( $role == ‘bbp_council_member’ )
    $caps = custom_capabilities( $role );

    return $caps;
    }

    add_filter( ‘bbp_get_caps_for_role’, ‘add_role_caps_filter’, 10, 2 );

    function custom_capabilities( $role )
    {
    switch ( $role )
    {

    /* Capabilities for ‘councilmember’ role */
    case ‘bbp_council_member’:
    return array(
    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => true,
    ‘throttle’ => true,
    ‘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’ => true,
    ‘read_hidden_forums’ => true,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => true,
    ‘delete_topics’ => true,
    ‘delete_others_topics’ => true,
    ‘read_private_topics’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => true,
    ‘delete_replies’ => true,
    ‘delete_others_replies’ => true,
    ‘read_private_replies’ => true,

    // Topic tag caps
    ‘manage_topic_tags’ => true,
    ‘edit_topic_tags’ => true,
    ‘delete_topic_tags’ => true,
    ‘assign_topic_tags’ => true,
    );

    /* Capabilities for ‘member’ role */
    case ‘bbp_member’:
    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’ => true,
    ‘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’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => false,
    ‘delete_replies’ => true,
    ‘delete_others_replies’ => false,
    ‘read_private_replies’ => true,

    // Topic tag caps
    ‘manage_topic_tags’ => false,
    ‘edit_topic_tags’ => false,
    ‘delete_topic_tags’ => false,
    ‘assign_topic_tags’ => true,
    );

    /* Capabilities for ‘warlord’ role */
    case ‘bbp_warlord’:
    return array(
    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => true,
    ‘throttle’ => true,
    ‘view_trash’ => true,

    // Forum caps
    ‘publish_forums’ => true,
    ‘edit_forums’ => true,
    ‘edit_others_forums’ => true,
    ‘delete_forums’ => true,
    ‘delete_others_forums’ => true,
    ‘read_private_forums’ => true,
    ‘read_hidden_forums’ => true,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => true,
    ‘delete_topics’ => true,
    ‘delete_others_topics’ => true,
    ‘read_private_topics’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => true,
    ‘delete_replies’ => true,
    ‘delete_others_replies’ => true,
    ‘read_private_replies’ => true,

    // Topic tag caps
    ‘manage_topic_tags’ => true,
    ‘edit_topic_tags’ => true,
    ‘delete_topic_tags’ => true,
    ‘assign_topic_tags’ => true,
    );

    /* Capabilities for ‘general’ role */
    case ‘bbp_general’:
    return array(
    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => true,
    ‘throttle’ => true,
    ‘view_trash’ => true,

    // Forum caps
    ‘publish_forums’ => true,
    ‘edit_forums’ => true,
    ‘edit_others_forums’ => true,
    ‘delete_forums’ => true,
    ‘delete_others_forums’ => true,
    ‘read_private_forums’ => true,
    ‘read_hidden_forums’ => true,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => true,
    ‘delete_topics’ => true,
    ‘delete_others_topics’ => true,
    ‘read_private_topics’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => true,
    ‘delete_replies’ => true,
    ‘delete_others_replies’ => true,
    ‘read_private_replies’ => true,

    // Topic tag caps
    ‘manage_topic_tags’ => true,
    ‘edit_topic_tags’ => true,
    ‘delete_topic_tags’ => true,
    ‘assign_topic_tags’ => true,
    );

    /* Capabilities for ‘trial’ role */
    case ‘bbp_trial’:
    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’ => true,
    ‘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’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => false,
    ‘delete_replies’ => true,
    ‘delete_others_replies’ => false,
    ‘read_private_replies’ => true,

    // Topic tag caps
    ‘manage_topic_tags’ => false,
    ‘edit_topic_tags’ => false,
    ‘delete_topic_tags’ => false,
    ‘assign_topic_tags’ => true,
    );

    break;

    default :
    return $role;
    }
    }
    // ==============================================================
    // Switch off bbPress Forum moderation
    add_filter( ‘bbp_bypass_check_for_moderation’, ‘__return_true’ );

    shonty
    Participant

    Hi there,

    When we receive notifications of topic replies. The Date Received field usually shows the time that has passed since the reply was posted. However, the text “Sometime Ago” is showing instead. This is happening for all bbPress notifications.

    It still occurs when we deactivate all plugins other than Buddypress and bbPress and use the default themes.

    Can anyone give any advice to fix this?

    redevelop
    Participant

    Yes – viewing the default pages & post was possible before creating the child theme…

    Robin W
    Moderator

    hmmm…ok bbpress can have issues on local sites, which is what I hoped then above would clear.

    so ‘Viewing the default pages and ‘Hello World’ post is OK though, if any help. ‘ is that same as before, or is helped by the above and was wrong before?

    redevelop
    Participant

    Thanks for the reply – sorry for the delay, had to remind myself of child themes setup 🙂
    Still the same error sadly…

    Viewing the default pages and ‘Hello World’ post is OK though, if any help.

    #211326
    hrithik951
    Participant

    When using this shortcode- [bbp-topic-form]

    It’s working.

    There are total 3 files named form-topic.php you would have to remove it from all three to remove (default forum). One is in the Bbpress plugin, other in the theme and one somewhere else (use Search function). It’s on line 128 in all three files if memory serves right.

    #211231
    Robin W
    Moderator

    ok, it is a site specific issue, and might (or might not) be related to the members plugin -I have no idea how that plugin works or how you view roles using it.

    so all I can say is it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    #211220

    In reply to: Adding roles

    zirow
    Participant

    I’ve added this reply like 3times and everytime i edit it it disappeared and when i try to re-paste it and submit i cant cuz i get a warning for duplication 😛

    I’m pretty sure theirs a better way of doing it but that’s how I did since its the only way I could figure it out

    Open Capabilities.php

    Under “function bbp_get_caps_for_role”
    Add this case along with the other cases

    case bbp_get_tutor_role() :
    $caps = array(

    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,

    // Forum caps
    ‘read_private_forums’ => true,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,

    // Topic tag caps
    ‘assign_topic_tags’ => true,
    );

    Under:

    function bbp_get_participant_role() {

    // Filter & return
    return apply_filters( ‘bbp_get_participant_role’, ‘bbp_participant’ );
    }

    Add:

    function bbp_get_tutor_role() {

    // Filter & return
    return apply_filters( ‘bbp_get_tutor_role’, ‘bbp_tutor’ );
    }

    Save and close Capabilities.php and open bbpress.php in the plugin directory not the one inside the theme.

    Search for:
    public function roles_init() {

    You will see this code:

    $keymaster = bbp_get_keymaster_role();
    $moderator = bbp_get_moderator_role();
    $participant = bbp_get_participant_role();
    $spectator = bbp_get_spectator_role();
    $blocked = bbp_get_blocked_role();

    // Build the roles into one useful array
    $this->roles[ $keymaster ] = new WP_Role( ‘Keymaster’, bbp_get_caps_for_role( $keymaster ) );

    $this->roles[ $moderator ] = new WP_Role( ‘Moderator’, bbp_get_caps_for_role( $moderator ) );
    $this->roles[ $participant ] = new WP_Role( ‘Participant’, bbp_get_caps_for_role( $participant ) );
    $this->roles[ $spectator ] = new WP_Role( ‘Spectator’, bbp_get_caps_for_role( $spectator ) );
    $this->roles[ $blocked ] = new WP_Role( ‘Blocked’, bbp_get_caps_for_role( $blocked ) );
    }

    So you just want to add these two codes in their:

    $tutor = bbp_get_tutor_role();

    $this->roles[ $tutor ] = new WP_Role( ‘tutor’, bbp_get_caps_for_role( $tutor ) );

    If u want to rename an existing role u added or bbpress default roles u can add this into your functions.php

    Add:

    function ntwb_bbpress_custom_role_names() {

    return array(

    // Keymaster

    bbp_get_keymaster_role() => array(

    ‘name’ => ‘Administrator’,

    ‘capabilities’ => bbp_get_caps_for_role( bbp_get_keymaster_role() )

    ),

    // Moderator

    bbp_get_moderator_role() => array(

    ‘name’ => ‘Moderator’,

    ‘capabilities’ => bbp_get_caps_for_role( bbp_get_moderator_role() )

    ),

    // Participant

    bbp_get_participant_role() => array(

    ‘name’ => ‘Member’,

    ‘capabilities’ => bbp_get_caps_for_role( bbp_get_participant_role() )

    ),

    bbp_get_tutor_role() => array(

    ‘name’ => ‘Member2’,

    ‘capabilities’ => bbp_get_caps_for_role( bbp_get_tutor_role() )

    ),

    // Spectator

    bbp_get_spectator_role() => array(

    ‘name’ => ‘Spectator’,

    ‘capabilities’ => bbp_get_caps_for_role( bbp_get_spectator_role() )

    ),

    // Blocked

    bbp_get_blocked_role() => array(

    ‘name’ => ‘Blocked’,

    ‘capabilities’ => bbp_get_caps_for_role( bbp_get_blocked_role() )

    )

    );

    }

    #211197
    yongceih
    Participant

    Hi all,

    I would like to know how to change topic slug from default to %parentforum%/%childforum%/topic from DEFAULT: topic.

    https://prnt.sc/sk3e2k

    #211196
    marbaque
    Participant

    I have been having an issue with my website, almost once a day the pages return broken links and 404 errors. I have to manually save the permalinks to fix it.

    I have tried a lot of ways like creating a default htaccess file, but nothing works. So I started deactivating plugins once this happens. When I deactivate bbPress everything works again, so I was wondering if somebody knows what can be causing the issue?

    It happens only to pages, not posts or archives.

    This is the website I am having problems with: https://academiamunicipal.uned.ac.cr/

    #211193

    Topic: login plugin

    in forum Installation
    momomoko
    Participant

    Hello there,

    I am stucked with this issue since some days : i am using the default bbpress connection widget (bpress version : 2.6.4) , but i am not satisfied by it behaviors such as redirect to wordpress admin login, the fact that the link on registration mail, bring the user again to wordpress back end, and also that email sender adress is the wordpress email (not mine !!) .. i had tried to change this last issue with this code in my functions.php :

     add_filter( 'wp_mail_from', 'your_email' );
    function your_email( $original_email_address )
    {
    	return 'myemail@domain.com';
    }
    
    add_filter( 'wp_mail_from_name', 'custom_wp_mail_from_name' );
    function custom_wp_mail_from_name( $original_email_from )
    {
    	return 'My Forum Name';
    }

    But instead i just received a “mail delivery failed”

    I have tried other plugins such as “weaver” or “bbPress login register link..” but still not found the “good one” (or surely didn’t know how to optimize it)

    Did someone know how to solve this problem ??

    #211064
    momomoko
    Participant

    I am looking for a way to change default adress (wordpress) for registration email . Is it possible ?

    #210984
    maznin
    Participant

    Hello everyone.
    I am noticing weird behavior when user clicks on activation link in email.
    Upon clicking user is sent to page with input field that contains random generated password and below that button that says “Reset Password”.
    Now this is somewhat confusing because some users might think that there is no need to click that button and just copy the password and proceed to login link bellow.
    After that password is not working and user must reset password and basically do activation process again.
    Is this how default WordPress registration works?

    Robin W
    Moderator

    so have you essentially done this

    find
    wp-content/plugins/bbpress/templates/default/bbpress/content-single-user.php

    transfer this to your pc and edit

    and save

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/content-single-user.php

    bbPress will now use this template instead of the original

    #210978
    Robin W
    Moderator

    bbpress just uses WordPress login, so if your users have WordPress access (eg subscribers), then they will get the bbpress default access (or you can manually set this up).

    you then set each forum as ‘private’ and it’s existence is then only seen by subscribers

    #210945
    Robin W
    Moderator

    by default bbpress does not require approval – they should just publish.

    So either you have another plugin doing this (eg bbpress notify) or your comment moderation is set to tight – look in

    dashboard>settings>discussion and check the befor a comment appears and the part below where the no. links allowed in a comment and the words that are allowed.

    #210884
    jazibsaeed
    Blocked

    Hello,

    I am using yoast SEO and bbpress forums on my website i.e. Tooth Republic. Unfortunaltely, i am unable to figure out how to change meta description of main page of forums i.e. https://toothrepublic.com/forums/

    Unlike other pages, edit button does not appear from yoast SEO plugin on this page. When i go to search appearance setting in SEO, it has a section to change default meta description for forums. Should i makes changes there?

    #210839
    Robin W
    Moderator

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    #210817
    gordnmclean
    Participant

    I’ve exported a forum from a website, and imported into the new one I’m building. All of the Forums, Topics, and Replies have come across and in the Dashboard it all looks good.

    However, on the live page – http://istc.ismysite.co.uk/our-community/discussion-forums/ – it looks like there are no Topics, and when I go into a Forum, it doesn’t show any topics at all.

    Looking at them in the Dashboard, all Topics are in the right forums.

    I’ve tried disabling this theme (going to the default WordPress Twenty Twenty) but still have the same issue.

    Any ideas? I tried some of the reset options but one of them wiped out all the reply > topic links so wary of having to reimport (again).

    Hayulp!

    g28f99
    Participant

    Hello, I am creating a specialized forum combining wordpress(5.4.1), bbpress(2.6.4) and buddypress(5.2.0). The website is exptoge.com. I have already created child thyme in the wp-content/themes/mytheme folder and used functions.php and style.css to make some customization. Now I need some help to personalize the forum new topic area and new reply area.

    1) New topic area, as shown in Fig 1,
    (please go to here to check all the figures ).
    For every new topic in this forum, I wish the following text appear in the “Topic content edit area” by default: “please clearly describe the place and time duration”. Once the user click in this area to input something, those text will disappear automatically.
    The google search box seems exactly demonstrate this effect as shown in Fig.2. Source of Fig 2, captured at chrome://newtab.

    2) New reply area, as show in Fig.3.

    For every new topic in this forum, I wish some text (e.g. “please select or input your selection” ) appear in the “Reply content edit area” and followed by a drop down selection list (similar to Fig. 4 or Fig.1 below part) by default.

    The selection list is composed of two parts. The first is designed to choose a color, red, blue or others. The second is designed to choose a shape, triangle, circle or others.
    If the users choose others, a new input box will appear so that they can input their other choice. Text “please input your choice” will appear in the input box with function similar to Fig. 2 (requirements of new topic area above).

    After the users make a choice or enter their choice, the choice result will exactly be the reply content. But, the above “please select or input your selection” text will be updated to be “I prefer” texts.

    I am not sure whether it is possible to achieve above functions through making modifications in my themes. Anyway, thanks a lot for your time and efforts. You can log in with username “Daniel” and password as “Daniel8” to test “new topic” and “new reply ” function in this website.

    deborahdavidson
    Participant

    Thank you so much for the plugin recommendation. It solved the problem (brilliant!) and then I started getting these error messages and the emails stopped sending again.

    EMAIL DELIVERY ERROR: the plugin WP Mail SMTP v2.0.0 logged this error during the last time it tried to send an email:
    Mailer: Default (none)
    PHPMailer was able to connect to SMTP server but failed while trying to send an email.
    Please review your WP Mail SMTP settings in plugin admin area. Consider running an email test after fixing it.

    Also “could not instantiate mail function” message appeared in the mail logs.

    Is it possible to point me in the right direction to resolve this? Many thanks.

    #210667
    Ellis Benus
    Participant

    Quick update. I used the CPT UI plugin to create a “Character” Custom Post Type.

    I modified form-reply.php to pull all these Characters and put those into a drop menu (select).

    Each of these CPT’s has their own Post ID, which I’m going to save as “d20_character” in the meta of the Reply.

    Question: Can you tell me the best way to modify the data saved for a reply when the user clicks “Submit”?

    Then in loop-single-reply.php I’m checking for the existence of the “d20_character” meta entry. If that entry exists for a reply, then I am pulling the Post Title of the Character Post by the ID, and the Post Thumbnail (Featured Image) to display that in the bbp-reply-author div instead of the default.

    Question: There are several actions in loop-single-reply.php. What’s the best way to modify those actions on an individual reply basis? I would like the use the same functionality those functions provide, but I need to tell them to use the ID of the Character post associated with the reply instead of the Reply WP User Author.

    Actions: bbp_theme_before_reply_author_details, bbp_reply_author_link, bbp_theme_before_reply_author_admin_details, bbp_theme_after_reply_author_admin_details, bbp_theme_after_reply_author_details

Viewing 25 results - 726 through 750 (of 6,774 total)
Skip to toolbar