Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 11,776 through 11,800 (of 14,270 total)
  • @robin-w

    Moderator

    Page id – go to

    Dasboard>forums>all forums

    Hover over the edit button of the forum, but do not click.

    you will see in the bottom left the url of that forum with forum=xxx that is the number

    @robin-w

    Moderator

    It did not work for me.

    Please describe what you mean by this and exactly what you put into the page?

    @robin-w

    Moderator

    great – glad you’re fixed !

    @robin-w

    Moderator

    Like many plugins the documentation is not great, and as a humble user I have added to it as I have learnt, a good deal of the documentation is mine.

    bbpress is a complex plugin, and I sympathise that it is not great to grasp.

    With templates, all functions are written to allow you to filter what is there, this is a standard wordpress/php process, so you’re sort of expected to know about it as part of wordpress! I did try to explain it in

    Step by step guide to setting up a bbPress forum – part 5

    you can filter many bbpress functions using ‘parse args’ capability – a standard wordpress technique or just filter the whole function, you’ll see a return apply_filters in all template functions and this is the hook that you use.

    so for you you could us the code in your other post

    Display the last topic updated in the forums loop

    If you’d like to help with documentation, just find where something is poor and write what you think it needs changing to, it is newcomers like you that can really help improve what is there

    @robin-w

    Moderator

    @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

Viewing 25 replies - 11,776 through 11,800 (of 14,270 total)