Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 11,751 through 11,775 (of 14,240 total)
  • @robin-w

    Moderator

    just use shortcodes

    https://codex.bbpress.org/shortcodes/

    in particular

    [bbp-single-forum id=$forum_id]
    

    @robin-w

    Moderator

    @robin-w

    Moderator

    put this in your functions file

    function rw_custom_freshness_link( $forum_id = 0 ) {
    		$forum_id  = bbp_get_forum_id( $forum_id );
    		$active_id = bbp_get_forum_last_active_id( $forum_id );
    		$link_url  = $title = '';
    
    		if ( empty( $active_id ) )
    			$active_id = bbp_get_forum_last_reply_id( $forum_id );
    
    		if ( empty( $active_id ) )
    			$active_id = bbp_get_forum_last_topic_id( $forum_id );
    
    		if ( bbp_is_topic( $active_id ) ) {
    			$link_url = bbp_get_forum_last_topic_permalink( $forum_id );
    			$title    = bbp_get_forum_last_topic_title( $forum_id );
    		} elseif ( bbp_is_reply( $active_id ) ) {
    			$link_url = bbp_get_forum_last_reply_url( $forum_id );
    			$title    = bbp_get_forum_last_reply_title( $forum_id );
    		}
    
    		$time_since = bbp_get_forum_last_active_time( $forum_id );
    
    		if ( !empty( $time_since ) && !empty( $link_url ) )
    			$anchor = '<a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_attr( $title ) . '</a>';
    		else
    			$anchor = esc_html__( 'No Topics', 'bbpress' );
    
    		return apply_filters( 'rw_get_forum_freshness_link', $anchor, $forum_id, $time_since, $link_url, $title, $active_id );
    	}
    	
    	add_filter('bbp_get_forum_freshness_link', 'rw_custom_freshness_link' );

    Functions files and child themes – explained !

    In reply to: Avatars in widget 2012

    @robin-w

    Moderator

    great – glad you’re fixed

    @robin-w

    Moderator

    try my plugin

    bbp additional shortcodes

    I think it will fit what you request

    @robin-w

    Moderator

    @robkk – no evidence myself that bbpress has wamp or mamp issues, but have seen it quoted occasionally by others – probably is a red herring !

    @robin-w

    Moderator

    Presume you have been through

    Codex

    and

    Step by step guide to setting up a bbPress forum – Part 1

    bbpress is not great on mamp or wamp, is this what you mean by localhost.

    @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

Viewing 25 replies - 11,751 through 11,775 (of 14,240 total)