Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 8,151 through 8,175 (of 14,219 total)
  • @robin-w

    Moderator

    glad it works

    yes just change that line to

    echo '<div class="badge-os"> Points: '.$points.'</div>' ;

    change the class name to anything you want.

    In reply to: list of all functions

    @robin-w

    Moderator

    I thought we had one, but can’t find it.

    The best way into bbpress is to start with the templates – these are the most likely thing you’ll want to alter, and placing amended ones in a ‘bbpress’ folder in your theme will make weordpress use these instead.

    so go to

    bbpress/templates/default/bbress/content-archive-forum.php

    This is the first template called, and all the functions and templates you want to use will cascade from here.

    @robin-w

    Moderator

    There is nothing I know of, and whilst it is possible with a deal of code, beyond free help I’m afraid

    @robin-w

    Moderator

    Great !!

    @robin-w

    Moderator

    so..there is no any way to “hide” register form and just left social media login?

    ok, we’re a bit outside bbpress support here, as this is theme/other plugin related.

    where is register (I’m not good in your language!)?

    Also, can you tell me how can I publish social widget shortcode in header of all forum pages?

    if you are ok with copying coding and FTP files, then I may be able to help

    @robin-w

    Moderator

    although you may want to alter the last line to something like

    echo 'Points: '.$points ;

    so that more than just a number appears !

    @robin-w

    Moderator

    BadgeOS is a plugin so I can’t comment on whether your code would work – it looks fine from a technical point of view.

    I’ve tweaked it so that it shows the points for each user rather than the current user and added the function to get it below the author name, so if the function is correct this code should work.

    add_action ('bbp_theme_after_reply_author_details', 'badgeos_show_users_points') ;
    
    function badgeos_show_users_points( $user_id = 0 ) {
     $user_id = bbp_get_reply_author_id();
     // echo our user’s points as an integer (sanely falls back to 0 if empty)
     $points = absint( get_user_meta( $user_id, '_badgeos_points', true ) );
     echo $points ;
     }

    let me know if it works

    In reply to: BBCodes bbpress list?

    @robin-w

    Moderator

    I think they are pretty much as per the list above a topic/reply.

    You can use this plugin to extend

    bbPress2 BBCode

    @robin-w

    Moderator

    I’m probably the worst at buddypress, bbpress is my speciality.

    May well be worth posting on the buddypres support forum

    @robin-w

    Moderator

    hidden forums are usually only visible to moderators and keymasters.

    Can you tell me why this is a hidden forum and are all users moderators and keymasters.

    @robin-w

    Moderator

    so is it hidden or public at the moment ?

    @robin-w

    Moderator

    Sorry – I can’t immediately see a better way.

    I’m not a bbpress author, but to get code changed you’ll need to post in trac

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

    @robin-w

    Moderator

    Nothing I know of dopes that, and not without a heap of bespoke code – sorry !

    In reply to: Tracked Discussions

    @robin-w

    Moderator

    if you go into your profile you can see all then topics and replies that you have created

    @robin-w

    Moderator

    no problem – glad you are fixed !

    @robin-w

    Moderator

    could be various reasons why this is happening – you have also posted in my style pack support forum, so I’ll pick it up there.

    @robin-w

    Moderator

    my style pack plugin lets you amend breadcrumbs, including not showing the home breadcrumb.

    bbp style pack

    after activation go to

    dashboard>settings>bbp style pack>breadcrumbs

    @robin-w

    Moderator

    bbpress just uses the worpress login.

    On first login, users are given the default role on dashboard>settings>forums

    so it should all be fine.

    In reply to: Threading not working

    @robin-w

    Moderator

    ok it works on bbpress with a twentyten theme – that’s all I can say.

    Can you define down more what ‘not working’ means

    Without a site to see, at the moment you are telling us that your car won’t work, but that’s all the information you give:-)

    @robin-w

    Moderator

    That’s great, and the info on the site page helped greatly, particularly that bbp_get_topic_reply_count() has a number with the comma in it.

    Replies are stored in the wp_posts table. The code creates an entry for the reply order in ‘menu_order’ where there is none, which is what I hoped my filter was fixing. But if the entry has already been created, then it just uses what is in the database. So when you look at a reply, if it has no entry it creates one and then uses that. So by merely looking at a reply you can alter the database! That may explain your funny but strange fact – just by examining an entry you may be changing what is stored !

    Where the reply appears in the display is held in that table under ‘menu_order’

    so I suspect that for instance reply id 119119 – which I looked at – has a bbp_get_topic_reply_count() value of 1,062.

    Can you check the entry in phpmyadmin

    SELECTmenu_orderFROMwp_postsWHEREID= '119119'

    and see if the entry reads 1,062 or 1062 or 0 !

    That will get us further forward

    @robin-w

    Moderator

    this isn’t a bbpress thing – wordpress does this for comments, and bbpress just hooks to that.

    A quick google found this which shows you how to change the files.

    https://www.ostraining.com/blog/wordpress/embed-theming/

    sorry – writing a specific solution for you is beyond free help.

    @robin-w

    Moderator

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

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

    find
    wp-content/plugins/bbpress/templates/default/bbpress/content-statistics.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/content-statistics.php
    bbPress will now use this template instead of the original
    and you can amend this

    so copy this file to your PC and open it up.

    then remove lines 37-40 which say

    <dt><?php _e( 'Topic Tags', 'bbpress' ); ?></dt>
    	<dd>
    		<strong><?php echo esc_html( $stats['topic_tag_count'] ); ?></strong>
    	</dd>
    

    and save the file back to your website at wp-content/themes/%your-theme-name%/bbpress/content-statistics.php

    and yes being a child theme change it won’t get overwritten.

    @robin-w

    Moderator

    do you know how to change a file and ftp this to your site?

    If so I’ll give you instructions

    @robin-w

    Moderator

    I’d suggest that something else is disrupting the setting

    It could be a theme or plugin issue

    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 twentyfifteen, and see if this fixes.

    Then come back

    @robin-w

    Moderator

    suggest you also post in

    https://buddypress.org/support/

Viewing 25 replies - 8,151 through 8,175 (of 14,219 total)