Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 11,801 through 11,825 (of 14,283 total)
  • @robin-w

    Moderator

    No sorry I still don’t understand what you are currently seeing and what you want to see?

    Please show the existing and presume the above is the new?

    @robin-w

    Moderator

    @bob1nz
    How can I assign non-standard bbpress roles with custom capabilities to non standard wordpress roles also with custom capabilities using the map so this is performed dynamically?

    Sorry, but without major involvement in looking at this and how it is interacting with whatever plugins you are using, I cannot quickly come up with an answer.

    If you want me to take a professional look after xmas, contact me via my website

    http://www.rewweb.co.uk


    @boertje
    – suggest you start your own thread

    In reply to: Delay in posts showing

    @robin-w

    Moderator

    If you get an answer from your host providers, do come back and post as this will help others.

    @robin-w

    Moderator

    bbpress uses the default wordpress user setup, but adds a bbpres role to the wp-capabilities in user_meta.

    So as long as there is a wp_user then on first login by that user bbpress will allocate the default bbpress role as set in Dashboard>settings>forums.

    In think this plugin might be your solution, as it seems to create and update wordpress via AD

    https://wordpress.org/plugins/active-directory-integration/

    and then bbpress will use that wordpress database to add the role.

    In reply to: Delay in posts showing

    @robin-w

    Moderator

    Nothing in wordpress that I iknwo of.

    Are you using a spam filter?

    I’d also suggest you talk to your host provider – they’re usually very helpful, and it might be something in your setup ion the server

    @robin-w

    Moderator

    @tajender

    You’d need to modify

    wp-content/bbpress/templats/default/bbpress/form-reply.php

    create a directory on your theme called ‘bbpress’
    ie wp-content/%your-theme-name%/bbpress
    find
    wp-content/bbpress/templats/default/bbpress/form-reply.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/%your-theme-name%/bbpress/loop-single-reply.php
    bbPress will now use this template instead of the original

    you should really do this inside a child theme

    Functions files and child themes – explained !

    but if you do it in your main theme, keep a copy of what youb have done as updates are likely to overwrite

    The you would need to modify line 20

    <?php if ( bbp_current_user_can_access_create_reply_form() ) : ?>
    

    to put in a check to see if it’s current user

    It’s too near xmas, and I have too much else on to write and test the code but it will involve bbp_get_currect_user and the topic author $user_id

    @robin-w

    Moderator

    The bbpress function is

    $role_map[‘admin’]= bbp_get_user_role( $user_id );

    For the standard roles you will end up with

    bbp_keymaster
    bbp_moderator
    etc.

    as that’s how they’re stored in the database,

    In reply to: Delay in posts showing

    @robin-w

    Moderator

    If you (or someone else) haven’t installed some caching software as a plugin, then you won’t have it.

    What sort of delay are we talking about? minutes, hours, days?

    @robin-w

    Moderator

    No problem!

    @robin-w

    Moderator

    ok, the software is held in files, the content (forums, topics etc) is held in the database.

    Please read

    https://codex.bbpress.org/creating-a-test-site/

    for a long explanation of how wordpress is structured.

    I believe you issue is as simple as that the level of user that you are does not permit you to se the ‘backend’ – that is the forum stuff in the dashboard – so deleting and recreating the plugin will not help you.

    The answer I think is to go into phpmyadmin, and edit your entry to give yourself permission as per previous answer.

    The link above should give you sufficient to be able to find your entry and edit it.

    @robin-w

    Moderator

    @skisma

    The shortcodes can be used on any wordpress page

    so if fro instance you wanted a menu item that display the most recent 15 topics across all your forums, so that when people selected this menu item that what they saw, then you would

    1. create a page – maybe called ‘latest topics’
    2. put the shortcode into the content section in this case

    [bbp-topic-index]
    

    3. add that page to the menu

    @robin-w

    Moderator

    Sorry couldn’t see anything to look at in that link, can you explain your issue in a little more detail

    @robin-w

    Moderator

    Thanks for posting the code, which if needed I’ll delve into

    but firstly

    It doesn’t appear to be working as intended though as I cannot give myself the owner role
    

    Can you give a bit more detail here as to exactly what you are doing, and where what you expect to happen isn’t, and any error messages etc.

    That is fully explain what ‘I cannot give myself’ means

    Thanks

    In reply to: SMF Import to bbPress

    @robin-w

    Moderator

    @deanpnet No problem ! Happens to me all the time !

    In reply to: Delay in posts showing

    @robin-w

    Moderator

    are you running any caching software?

    @robin-w

    Moderator

    I think you mean breadcrumbs the following shows breadcrumbs

    Layout and functionality – Examples you can use

    They are still there, so you should see them, might be another plugin or your theme is hiding them

    try

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.

    @robin-w

    Moderator

    To change it in the database, you need to

    find out the id of the user – you can look that up in the ‘users’ table – probably called ‘wp_users’, just look for a line with the username in, and the user_id will be in the ID column.

    Then in the usermeta table sort by user_id, and look for your user, then the entry called

    wp_capabilities

    For a keymaster and admin it needs to say

    a:2:{s:13:"administrator";s:1:"1";s:13:"bbp_keymaster";b:1;}

    so FIRST copy what is already in there and save it to notepad or somewhere safe – you’ll want to be able to change it back if it doesn’t work and locks you out !!

    Then edit and put the above in.

    In reply to: Hidden private forum

    @robin-w

    Moderator

    So given forums 1, 2, 3 & 4

    a. Not logged in user – should they see any forums or existenece of forums?
    b. Logged in users – majority would have access to forums 1, 2 & 3 , but not know 4 esists
    c. Chosen users – access to forums 1, 2, 3, & 4.

    Your answer to a. is needed first

    @robin-w

    Moderator

    Sorry missd your follow up mail

    Can you not set keymaster by

    Dasboard>users>all usres and edit the one and put in te keymaster role

    Come back if not

    In reply to: Remove Separator

    @robin-w

    Moderator

    No problem !

    @robin-w

    Moderator
    In reply to: Remove Separator

    @robin-w

    Moderator

    never write code whilst your other half is waiting to go out !

    ok, this works

    function remove_sep ($args) {
    $args['before'] = '' ;
    return $args ;
    }
    
    add_filter ('bbp_before_get_forum_subscribe_link_parse_args', 'remove_sep') ;
    

    On your larger point, there are a lot of resources, but it takes a lot of practice to get good at PHP, and to understand how any plugin works which is the size that bbpress is.

    Generally it is quicker to ask a question on here, than spend hours delving into bbpress. But if you start wanting to really tailor it, then the step by step guides and other documentation will try and get you into how to go about finding code within bbpress.

    I know nothing of php 18months ago (I’m just a humble bbpress user – I didn’t write any of it!), and now have several plugins for bbpress to add functionality, so it is quire do-able.

    I’ve tried to get much of my learning into the documentation, so have a look round

    Codex

    @robin-w

    Moderator

    no problem !

    In reply to: Remove Separator

    @robin-w

    Moderator

    Previous response edited to correct

    In reply to: Remove Separator

    @robin-w

    Moderator

    quick reply as I’m on my way out, so untested, but put the following in your functions file

    function remove_sep ($args) {
    $args['before' ] = '' ;
    Return $args ;
    }
    
    add_filter ('bbp_before_get_topic_subscription_link_parse_args', 'remove_sep') ;
    

    If it doesn’t work, come back and I’ll do it properly and test it for you !

Viewing 25 replies - 11,801 through 11,825 (of 14,283 total)