Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 3,651 through 3,675 (of 32,481 total)
  • Author
    Search Results
  • #201361
    techiebraj
    Participant

    Please visit the URL – https://staging.keeptaxisalive.org/forums/

    After looking into that URL, you will understand what I am asking. The forum page is not showing properly. I am using a shortcode on a page named /forum

    Thank you!

    #201355
    Robin W
    Moderator

    you will need to amend

    li.bbp-topic-voice-count {
        display: none !important;
    }
    
    li.bbp-topic-title {
    	width: 65% !important;
    }

    and play with the 65% number

    #201340
    achopra14
    Participant

    I have added shortcode for my forum but the indexing is not proper. Attaching an image showing the forum.forum image

    #201338
    techiebraj
    Participant

    Hello team!

    The blog post is showing on the forum page. Please suggest me how to fix this. I am using Astra with an elemetor pro.

    I am using shortcode to show forum index. All the forum page is showing broken on the desktop version.

    Site URL- https://staging.keeptaxisalive.org/forums/

    Thank you!

    #201312
    scottott
    Participant

    I have renamed the root forum link to ‘discussions’ and then tried both methods of creating a page (with and without the shortcode). If I go directly to a subforum or topic, everything is fine. But if I want to go to the forum home (index), the URL mysite.com/discussions/ executes a search on my WP site, rather than taking me to the main page of for the forum. The same happened when I used the default name for the forum root. I can’t share a link, because the site is Members-only.

    #201305
    kexia
    Participant

    Does anyone know the correct way to enable the participant role to read private topics? I found a bit of a work around (see below). But I’d like to know how to enable it correctly.

    Even though bbPress’ documentation says that users with the Participant role can read private forums and topics, the current version of bbPress (2.5.14) allows participants to read private forum names, but not private topics names or content.

    I did some searching on this site and it looks like people have been complaining and notifying bbPress about this bug for about seven years and it’s STILL not fixed. The most support help I’ve seen is someone saying the issue is because of another plugin. But that’s not the case.

    I checked the bbPress code in the capabilities.php file located in wp-content/plugins/bbpress/includes/core/capabilities.php, and sure enough, the capability to ‘read_private_topics’ is not listed under the Participant’s Topic Caps section:

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

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

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

    I tried adding the ‘read_private_topics’ capability to the Participant capabilities section:

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

    But that didn’t work. So then I tried copying and pasting all the capabilities from the Moderator role to the participant role, including the first part of the code under the “Primary Caps” section that lists spectate, participate, moderate, throttle, and view trash.

    // Moderator
    case bbp_get_moderator_role() :
    $caps = array(

    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => true,
    ‘throttle’ => true,
    ‘view_trash’ => true,

    // Forum caps
    ‘publish_forums’ => true,
    ‘edit_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,
    );

    And it worked! Participants could then read private topics. However, it meant that they had the exact same capabilities as moderators, which defeats the purpose of having those two different user roles. And I don’t want to make all participant users moderators. So I kept the moderator capabilities under the Participant section, however, any of the moderator capabilities that I didn’t want the participant to have, I changed it from “true” to “false.” For example, I do not want participants to be able to edit others’ topics, so I changed this part of the code:

    ‘edit_others_topics’ => true,

    To this:

    ‘edit_others_topics’ => false,

    That worked. However, the button to edit others’ topics still show up for the participant, but if they click on it, either nothing happens or they get an error message saying they don’t have that privilege.

    The first time I tried this I deleted most of the first section, called Primary Caps:

    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => true,
    ‘throttle’ => true,
    ‘view_trash’ => true,

    But when I did that, it didn’t work again. It seems like the “‘moderate’ = > true,” part has to stay there in order for this work around to work.

    So in conclusion, the participant caps section was replaced with this code:

    // Participant/Default
    case bbp_get_participant_role() :
    default :
    $caps = array(

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

    // Forum caps
    ‘publish_forums’ => false,
    ‘edit_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’ => false,
    ‘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,
    );

    So that’s a work around for now. But I’d still like to know: When is bbPress going to fix this bug issue? And if they have already (and I’ve just missed it somehow): How do I correct it so that the participant user role can read private topics? If anyone has any ideas, can you please leave a DETAILED reply below, including WHERE to find the files that need to be altered. (Ex: wp-content/plugins/bbpress/includes/core/capabilities.php. I noticed that many people in this forum don’t really write down all the steps to fix things, which causes more confusion.)

    #201304
    kexia
    Participant

    Does anyone know the correct way to enable the participant role to read private topics? I found a bit of a work around (see below). But I’d like to know how to enable it correctly.

    Even though bbPress’ documentation says that users with the Participant role can read private forums and topics, the current version of bbPress (2.5.14) allows participants to read private forum names, but not private topics names or content.

    I did some searching on this site and it looks like people have been complaining and notifying bbPress about this bug for about seven years and it’s STILL not fixed. The most support help I’ve seen is someone saying the issue is because of another plugin. But that’s not the case.

    I checked the bbPress code in the capabilities.php file located in wp-content/plugins/bbpress/includes/core/capabilities.php, and sure enough, the capability to ‘read_private_topics’ is not listed under the Participant’s Topic Caps section:

    <blockquote cite=”// 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,

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

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

    I tried adding the ‘read_private_topics’ capability to the Participant capabilities section:

    <blockquote cite=” // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘read_private_topics’ => true,
    “>

    But that didn’t work. So then I tried copying and pasting all the capabilities from the Moderator role to the participant role, including the first part of the code under the “Primary Caps” section that lists spectate, participate, moderate, throttle, and view trash.

    <blockquote cite=”// Moderator
    case bbp_get_moderator_role() :
    $caps = array(

    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => true,
    ‘throttle’ => true,
    ‘view_trash’ => true,

    // Forum caps
    ‘publish_forums’ => true,
    ‘edit_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,
    );”>

    And it worked! Participants could then read private topics. However, it meant that they had the exact same capabilities as moderators, which defeats the purpose of having those two different user roles. And I don’t want to make all participant users moderators. So I kept the moderator capabilities under the Participant section, however, any of the moderator capabilities that I didn’t want the participant to have, I changed it from “true” to “false.” For example, I do not want participants to be able to edit others’ topics, so I changed this part of the code:

    true,”>

    To this:

    false,”>

    That worked. However, the button to edit others’ topics still show up for the participant, but if they click on it, either nothing happens or they get an error message saying they don’t have that privilege.

    The first time I tried this I deleted most of the first section, called Primary Caps:

    <blockquote cite=” // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => true,
    ‘throttle’ => true,
    ‘view_trash’ => true,”>

    But when I did that, it didn’t work again. It seems like the “‘moderate’ => true,” part has to stay there in order for this work around to work.

    So in conclusion, the participant caps section was replaced with this code:

    <blockquote cite=” // Participant/Default
    case bbp_get_participant_role() :
    default :
    $caps = array(

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

    // Forum caps
    ‘publish_forums’ => false,
    ‘edit_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’ => false,
    ‘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,
    );”>

    So that’s a work around for now. But I’d still like to know: When is bbPress going to fix this bug issue? And if they have already (and I’ve just missed it somehow): How do I correct it so that the participant user role can read private topics? If anyone has any ideas, can you please leave a DETAILED reply below, including WHERE to find the files that need to be altered. (Ex: wp-content/plugins/bbpress/includes/core/capabilities.php. I noticed that many people in this forum don’t really write down all the steps to fix things, which causes more confusion.)

    Danishsard
    Participant
    deafmetal
    Participant

    Forum Index (does same thing when using shortcodes), Child Forum, and Topics:
    Lost Header

    After upgrading to 2.6 RC 7, and doing forum repairs, I lost the header, categories and formatting for my forum index and child forums. The topics work just fine still.

    To troubleshoot, I deactivated all plugins, removed bbPress, activated the default 17 theme, and removed my primary theme. If I re-install/activate bbpress, the index and children headers then show up, albeit without the default styling.

    So I reinstalled my theme (which has native bbpress/buddypress support built in), re-activated bbpress, and the headers/categories/formatting disappeared again.

    I wanted to think it was a css issue, but I had re-installed everything fresh. So it appears something corrupted my database, tied specifically to my theme. Any recommendations for how to “fix” the repairs and undo the damage?

    For the life of me I cannot figure out how to fix this without a wholesale home home directory and sql db restoral. But I’d lose WEEKS of edits and css customization. Ughh

    Thank you in advance!!

    friedli
    Participant

    When I am logged in on my website and I click on “forums > topics started” it shows an empty page even though I have started some topics. Does exist a shortcode for this or what could be wrong that this does not work? replies created on the other hand works fine!

    BizDev Results
    Participant

    Hello and thanks in advance for the help. I am new to bbpress.

    I have been looking for a way to arrange my bbpress page to look like the https://bbpress.org/forums/

    With a short description of each forum on the left hand column and the list of recent topics on the right.

    Is this done with shortcodes or css or will it require development? if it is shortcodes, can someone share them with me?

    Thanks!

    #201248
    Robin W
    Moderator

    this will give you a link to facebook

    <a href ="https://www.facebook.com/">Facebook</a>

    so change

    https://www.facebook.com/

    to the page you want

    and

    Facebook to the words you want it to say

    #201244
    portalpublishing
    Participant

    Hi,

    I would also like to add a pager below a specified number of recent topics but can’t seem to find the shortcode for this.
    I’ve checked the suggested plugin, bbp style pack but don’t see an option for a pager shortcode.


    @muneeba
    have you found a solution?

    #201187
    chengdu-living
    Participant

    I found a solution here, in case this is helpful for anyone else: https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/

    #201171
    Robin W
    Moderator

    https://www.studentfilmmakers.com/ResentPosts/ has a parameter

    .ast-col-md-4 {
    	width: 33.3333333333%;
    }
    

    that is causing it. I suspect you have it in a column parameter within your theme

    changing it to

    .ast-col-md-4 {
    	width: 100%;
    }

    in custom css would fix it, but may break something else 🙂

    #201170
    StudentFilmmakers
    Participant

    When I change the root setting even if I use shortcode in the page, it makes this funky disorganized page like in this example https://www.studentfilmmakers.com/ResentPosts/

    But here is the page with the shortcode https://www.studentfilmmakers.com/bulletinboard/

    As long as I don’t set the root to the bulletin board, it looks fine, but if I set it to the bulletin board, it will seem like the above. Also, where can I change the breadcrumb links??? I don’t want it to say freaking “forum” It is a bulletin board and I have a forum in the /forum directory.

    #201087
    oonameoo
    Participant

    are there any php code or shortcode for display topic that user had created or commented.

    berry metal
    Participant

    When using the shortcode [bbp-reply-form], how do I display a template notice in the place of the form, like “You must be logged in to reply to this topic.”, when the user is logged out?

    Its only whitespace left instead of the form when the user is logged out, and I would like to have the template notice instead of the whitespace.

    #201067
    Robin W
    Moderator

    not yet I’m afraid.

    I may get around to doing this one day, but I’m fully tied up in other code this summer

    berry metal
    Participant

    When using the shortcode [bbp-single-topic id=$topic_id], and clicking on the Subscribe link, I wouldn’t like any redirect, just back to the post where I embedded the topic. But there is a redirect to the separate topic page. How do I prevent this redirect? I would like to just reload the post where the shortcode is embedded, instead of a redirect. Or even better, even eliminate the reload, just like here on bbpress.org, there is no reload and no redirect when subscribing.

    Thanks!

    #200971

    In reply to: User Categories

    Robin W
    Moderator
    #200947

    In reply to: Paginated content

    Hi Robin,

    I got your point, thank you for your reply: no hard feelings.

    Problem is: I still have so many unuseful pages indexed by Mr Google and I don’t seem to find a way to let Google know how that content is actually organized.

    Simply adding “rel next and prev” would be the easiest solution, but I have to give up since I am not a coder.

    Bye

    #200934
    portalpublishing
    Participant

    I have this shortcode to display the latest 5 topics [bbp-display-topic-index show=’5′], how can I include pager? Is there a shortcode for this?

    #200913

    In reply to: Paginated content

    Robin W
    Moderator

    Support is provided free by volunteers such as myself and other users. No every question gets a reply, it depends on many factors.

    In essence getting to an answer would require lots of digging in the code to find, so I suspect you will not get a response.

    #200902
    writersabroad
    Participant

    Not sure if this is a wordpress or bbpress issue so posting in both places. I run a writers community with buddypress and have set up forums where members can post pieces of work. We are experiencing some difficulty with the comment blacklist which prevents some words from being used even if within a word e.g. double breasted…. and one piece of work I can’t for the life of me find the word that is blocking the post… whilst I want to be able to stop spam comments, surely forum posts from members who have to be signed in to post is another thing? Any suggestions? I am useless with code :). Even if we had something which could identify the rogue word we could do something about it…

    Thank you

Viewing 25 results - 3,651 through 3,675 (of 32,481 total)
Skip to toolbar