Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,576 through 13,600 (of 32,519 total)
  • Author
    Search Results
  • #138223
    koendb
    Participant

    Thanks Zearl, need to modify your code slightly to get it to work:
    Had to remove ‘$user_role’

    function my_custom_roles( $role, $user_id ) {
    if( $role == ‘Key Master’ )
    return ‘Site Owner’;
    return $role;
    }
    add_filter( ‘bbp_get_user_display_role’, ‘my_custom_roles’, 10, 3 );

    #138221

    In reply to: disabling breadcrumbs

    Philip John
    Participant

    @mdroca You should paste that code into your theme’s functions.php file. Here’s a guide on how to do that safely: http://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/

    Also, for others wanting to hide bbPress breadcrumbs, this code is a bit more compact but does the same job:
    add_filter('bbp_no_breadcrumb', function($arg) { return true; } );

    #138216
    WPSeeker
    Participant

    Thanks for the reply Stephen. Am I correct in assuming that posting to bbPress is just like creating any WordPress custom post?

    And if so, could I make my own post submission form using Gravity Forms, or are there hooks that need to be used to get it to post correctly?

    #138213
    Stephen Edgar
    Keymaster

    There is no way to automatically assign topic tags at this stage.

    #138212
    #138211
    WPSeeker
    Participant

    Great, thanks it worked! Is there any way of doing something similar with the tags? I want the tags automatically created without the user having any choice.

    #138209
    Stephen Edgar
    Keymaster

    Also updated the codex to reflect the correct shortcode syntax https://codex.bbpress.org/shortcodes/

    #138208
    Stephen Edgar
    Keymaster

    Try using [bbp-topic-form forum_id=544]

    WPSeeker
    Participant

    Hi

    I read in the docs that you can now specify a forum to post to using the shortcodes without having to use the dropdown forum selection.

    I tried using this shortcode but it doesn’t seem to work and I still get the dropdown.

    [bbp-topic-form id=544]

    I want to load a form to create a new thread but have the forum hardcoded.

    Thanks

    #138204
    Stephen Edgar
    Keymaster
    #138203

    In reply to: Auto Role not working

    Stephen Edgar
    Keymaster

    What happens after you have run the repair tool “Remap existing users to default forum roles”
    https://codex.bbpress.org/repair-forums/

    #138202
    Stephen Edgar
    Keymaster

    You may have enabled ‘Threaded Replies’ in the settings and this would stop you from seeing any pagination.

    https://codex.bbpress.org/forum-settings/#forum-features

    #138200
    Stephen Edgar
    Keymaster

    Yes, they will get overwritten and details on what to copy and where to copy them to can be found here:
    https://codex.bbpress.org/theme-compatibility/

    #138194
    Stephen Edgar
    Keymaster

    OK, turns out the CSV won’t cut the mustard in this case, so these two queries match the results of the last dataset you send me.

    SELECT * FROM phpbb_topics WHERE phpbb_topics.topic_id > 330 AND phpbb_topics.topic_id < 338

    SELECT * FROM phpbb_posts WHERE post_id IN (3810,3819,3840,3851,3862,3863)

    Can you run both of those queries and this time when you click export (There are two export labels, click the one in the ‘Query results operations’ section)

    This time you only need to select ‘quick’ and format ‘SQL’ and zip both thos files and attach a link here.

    #138190
    Stephen Edgar
    Keymaster

    That shouldn’t be an issue and as you are also seeing this for WordPress Blog posts I would expect it is either your browser, try another (Firefox, Chrome etc) and also clear the browsers cache though due to issues previously mentioned in this topic most likely an issue with your web host sadly.

    Just to be safe before contacting your web host change your WordPress theme, try switching to Twenty Eleven/Twelve/Thirteen and see if the issues still persists.

    Also I presume you ran the bbPress ‘Repair Tools’ after the import:
    https://codex.bbpress.org/repair-forums/

    #138188
    Stephen Edgar
    Keymaster

    Dutch (nl) is at 98% in the /dev branch
    https://translate.wordpress.org/projects/bbpress/dev
    Dutch (nl) is at 0% in the /2.4.x branch
    https://translate.wordpress.org/projects/bbpress/2.4.x
    Dutch (nl) is at 100% in the /2.3.x branch
    https://translate.wordpress.org/projects/bbpress/2.3.x

    Most likely you have downloaded the 2.4.x branch as noted above as it is at 0% as there are translations waiting for approval.

    Download the .po & .mo from the /dev branch

    Rename and upload both bbpress-nl.po & bbpress-nl.mo to /wp-content/languages/bbpress/

    #138187
    Stephen Edgar
    Keymaster

    Spanish (es) is 100% complete in the /dev branch
    https://translate.wordpress.org/projects/bbpress/dev/es/default
    Spanish (es) is 95% complete in the /2.4.x branch
    https://translate.wordpress.org/projects/bbpress/2.4.x
    Spanish (es) is 100% complete in the /2.3.x branch
    https://translate.wordpress.org/projects/bbpress/2.3.x

    via https://codex.bbpress.org/bbpress-in-your-language/

    You should have bbpress-es.po & bbpress-es.mo in /wp-content/languages/bbpress/

    #138184
    Keryn
    Participant

    I have some code to show the sidebar based on what page it is, and it works fine for the pages, but no sidebar shows on any bbpress pages:

    if (is_page(79) || is_child(79) || is_ancestor(79) || is_bbpress()){
    dynamic_sidebar(‘memberbar-sidebar’);
    }

    #138180
    elitetester
    Participant

    If a user makes a nice forum post I would like to be able to choose to post this single topic into a WP post/blog of categoryX. If I see another nice forum post then I would like to be able to choose to post this single topic to the same, or perhaps a different WP post/blog under categoryY. All video/images etc should be presented in WordPress as it would appear in the forum.

    I’d like to see the topic content appearing as an article rather than a forum topic: No reply window shown even if logged in, instead show ‘number-of-replies’. No avatar, just a short comment ‘posted-by-xxx’. The topic title and ‘number-of-replies’ links the user to the respective forum topic in the main forum view.

    ————-
    I was thinking this might be possible using shortcodes. e.g. create a new shortcode based on ‘bbp-single-topic’ (perhaps called ‘bbp-single-topic-post2blog’). Then add a drop-down-list beside each forum topic only visible for admins. The drop-down-list includes all WP posts/blogs. After selecting a WP post from the drop-down-list the shortcode and respective topic-ID gets added to the bottom of the WP post content.

    What do you think? I have quite a clear picture on how this should work.
    If this is possible I would be happy to test it.

    #138178
    ikidre
    Participant

    Yep, I ran all the repair options per Buddypress’s instructions. I ran them a second time after I discovered this issue. I created that test forum after that point, so I ran them again just now for fun. Still no change. 🙁

    The only next steps I can think of are to hit that ominous “Reset bbPress” button or dig up my backups and just try again.

    #138170
    Morgensonne
    Participant

    Hi 🙂

    I have a layout problem with the bbpress-login-widget. See the screenshot.

    Screenshot

    Where can I increase the distance, so that “username” (here in German: Benutzername) is displayed in full. So the last letters are not seen. I suspect in the CSS, but I can not find the relevant code.

    Thanks a lot for your help!
    Morgensonne

    P.S.:
    Ohh, the link to my screenshot is not working……….. (?)
    Any help for me?

    #138164
    FreeWPress
    Participant

    <?php st_last_poster_block ( get_the_ID() ) ?>

    This function not exist in bbpress, it’s home made? you must to search in your functions lists..

    We must to open this function to change a little parameter to remove reply to….

    #138157
    Stephen Edgar
    Keymaster

    I can see all topics and replies just fine in the backend and in the database, though it’s confused me that posts seem to be saved in the wp_posts table, not wp_bb_posts. I also can’t figure out where the new forum gets saved, because it’s not in wp_bb_forums, nor do new topics appear in wp_bb_topics. Anyway, they appear in Buddypress activity streams, and I can edit them in the backend, so it seems they’re just not making it to the page.

    This is correct, bbPress plugin 2.x no longer stores the data in the old BuddyPress DB tables, each type is a WordPress custom post type ‘forum’, ‘topic’ & ‘reply’ which you would see in the wp_posts table.

    After the import did you run the repair tools?
    https://codex.bbpress.org/repair-forums/
    If not (or even if you did) it would be a good idea to run each of these.

    #138151
    Stephen Edgar
    Keymaster

    Run each of these repair tools one by one:
    https://codex.bbpress.org/repair-forums/

    • Recalculate the parent topic for each post
    • Recalculate the parent forum for each post
    • Recalculate private and hidden forums
    • Recalculate last activity in each topic and forum
    • Recalculate the sticky relationship of each topic

    If this still does not fix the issue please cteate a ticket on Trac so we can look further into this.

    https://bbpress.trac.wordpress.org/

    #138148
    Stephen Edgar
    Keymaster

    Check your language settings as per this thread for Dutch

    Problems with the language

    As to why you are using anything with Brazilian Portuguese bbpress-plugin-pt-br.mo I do not know.

Viewing 25 results - 13,576 through 13,600 (of 32,519 total)
Skip to toolbar