Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 76 through 100 (of 7,238 total)

  • Robin W
    Moderator

    @robin-w

    I think this may do it – but I’ve no knowledge of mathml, other than a quick google

    This code is untested, but add this to your child theme function file or use the ‘code snippets’ plugin

    add_filter( 'bbp_kses_allowed_tags', 'rew_add_mathml') ;
    
    function rew_add_mathml ($allowed) {
    	$allowed['math'] = array() ;
    	$allowed['mo'] = array() ;
    	$allowed['mi'] = array() ;
    
    return $allowed ;
    }

    you would need to add lines for other tags required.


    Robin W
    Moderator

    @robin-w

    great – glad you are fixed


    Robin W
    Moderator

    @robin-w

    change this to

    /*
    // Forum topic count (Stored in postmeta)
    $this->field_map[] = array(
    ‘from_tablename’ => ‘forums_table’,
    ‘from_fieldname’ => ‘the_topic_count’,
    ‘to_type’ => ‘forum’,
    ‘to_fieldname’ => ‘_bbp_topic_count’
    );
    */

    Robin W
    Moderator

    @robin-w

    so from forums loop remove

    <li class="bbp-forum-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></li>
    

    and from loop single forum remove

    <li class="bbp-forum-freshness">
    
    		<?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?>
    
    		<?php bbp_forum_freshness_link(); ?>
    
    		<?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?>
    
    		<p class="bbp-topic-meta">
    
    			<?php do_action( 'bbp_theme_before_topic_author' ); ?>
    
    			<span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 14 ) ); ?></span>
    
    			<?php do_action( 'bbp_theme_after_topic_author' ); ?>
    
    		</p>
    	</li>

    I’ll let you work out the topics


    Robin W
    Moderator

    @robin-w

    try

    .archive:not(.page-one-column):not(.has-sidebar) #primary article {
     float : none !important;
     Width : 100% !important ;
    
    }

    Robin W
    Moderator

    @robin-w

    I have seen this, and will respond, but I need to do paid work first. I am only a volunteer on here.


    Robin W
    Moderator

    @robin-w

    your theme is doing this – try this in you custom css

    .archive:not(.page-one-column):not(.has-sidebar) #primary article {
    float : none ;
    Width : 100%

    }

    but it may affect how other pages/post show


    Robin W
    Moderator

    @robin-w

    it could do with an action link in the topic handler, but you may wait a while for the devs to add that.


    Robin W
    Moderator

    @robin-w

    the issue will be site specific, and given that it is on an intranet, not one that I’d be able to investigate.


    Robin W
    Moderator

    @robin-w

    hmm

    you’ll need to alter several files, so general first

    altering bbpress templates

    You can copy all the templates across, but you only need to copy those that you want to change, and it is better just to do this, as then you know which you have altered.

    so if you wanted to amend loop-single-forum you would do the following

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.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/themes/%your-theme-name%/bbpress/loop-single-forum.php
    bbPress will now use this template instead of the original
    and you can amend this

    files

    There may be others, but

    loop-forums (forum headings)
    loop-single forum (forum content)
    loop-topics (single forum heading)
    loop-single-topic (single forum content)

    will get you most of the way there


    Robin W
    Moderator

    @robin-w

    really hard to do – i’d suggest you’d need to look at rss feeds.


    Robin W
    Moderator

    @robin-w

    ok, two things

    1. you could just use the template in my

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>forum templates

    2. if you want to alter that,
    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    then download my plugin and find template/templates1/loop-forums

    copy that file to your theme and put it in the bbpress directory


    Robin W
    Moderator

    @robin-w

    @ works!

    I have topics setup so that most recent replies appear at the top.

    so first thing is I need to know how you did this?


    Robin W
    Moderator

    @robin-w

    tools>forums>reset forums

    you will need bbpress enabled to do this


    Robin W
    Moderator

    @robin-w

    can only suggest that something else is putting it there

    maybe try

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back


    Robin W
    Moderator

    @robin-w

    bbpress just uses wordpress login, so

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    In reply to: downloadable files

    Robin W
    Moderator

    @robin-w

    In reply to: downloadable files

    Robin W
    Moderator

    @robin-w

    you mean within here, or within your wordpress site?


    Robin W
    Moderator

    @robin-w

    can you post lines 60-65 here please


    Robin W
    Moderator

    @robin-w

    ok, for the participants trashing topics, install

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Topic/Reply Display items 17,18,& 19

    On the widgets, install
    the ‘widget logic plugin’, and on pages you want the widget, use

    is_bbpress()

    in the condition


    Robin W
    Moderator

    @robin-w

    I think this should work

    add_action('after_setup_theme', 'remove_admin_bar');
    
    function remove_admin_bar() {
    $user_id = get_current_user_id() ;
    $role -= bbp_get_user_display_role($user_id) ;
    if (role == 'bbp_participant' {
    show_admin_bar(false);
    }
    }

    put in your functions file or use the code snippets plugin


    Robin W
    Moderator

    @robin-w

    so it lists

    forum
    sub forum(s)
    topics from forum

    yes ?


    Robin W
    Moderator

    @robin-w

    contact me via

    Contact me

    In reply to: Delete “Header”

    Robin W
    Moderator

    @robin-w

    thanks for your kind comments – much appreciated !!


    Robin W
    Moderator

    @robin-w

    try

    add_action( 'bbp_template_before_forums_loop', 'rew_add_custom_menu'  ); 
    add_action( 'bbp_template_before_topics_loop', 'rew_add_custom_menu'  ); 
    
    function rew_add_custom_menu () {
    echo '<a href= "https://bbpress.org/forums/">customs menu area</a>' ;
    
    }
Viewing 25 replies - 76 through 100 (of 7,238 total)