Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 7,376 through 7,400 (of 8,886 total)
  • In reply to: How to add a @username

    Robin W
    Moderator

    @robin-w

    great – glad you’re fixed !


    Robin W
    Moderator

    @robin-w

    great – glad you’re fixed !


    Robin W
    Moderator

    @robin-w

    in the meantime, you can move it in your style.css

    Layout and functionality – Examples you can use


    Robin W
    Moderator

    @robin-w

    great, come back with your next query !


    Robin W
    Moderator

    @robin-w

    Yes,

    If you have a forum page ie a wordpress page that has [bbp-forum-index] in it, (ie you’ve use method 2 rather than method 1 in this link

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

    then go into edit on your forum page

    Switch to text from visual and put

    Create a new topic before the [bbp-forum-index] to get it at the top or after it to put it at the bottom.

    or you could use

    [bbp-topic-form] after the [bbp-forum-index]

    or

    [bbp-topic-form forum_id=$forum_id] to display a single forum topic form.

    Lots of possibilities.

    If you don’t have a set wordpress forum page, then you can create one, see method 2 in the link above


    Robin W
    Moderator

    @robin-w

    Great – thanks !


    Robin W
    Moderator

    @robin-w

    @zdev1 – yes thanks, I’ve responded to you on my plugin page.

    Any testing help you can give me to resolve would be appreciated !

    Let me know if you can help !


    Robin W
    Moderator

    @robin-w

    ok try

    Deactivate bbpress tweaks
    Dashboard>plugins>bbpress tweaks>deactivate

    Go into widgets
    Dashboard>appearance>widgets

    And look at the bottom of the left hand side. You’ll see an “inactive sidebar”, with your entries on
    Below this is an “inactive widgets”
    Drag all the entries from the inactive sidebar to the inactive widgets area.
    This then allows wordpress to delete the sidebar
    I normally log out and in again at this stage – probably not needed, but I’ve never bothered to check
    Then basically reverse the above
    Re-enable bbpress tweaks
    You see the bbpress sidebar returns
    Drag the entries back from the inactive widgets area to the sidebar

    As soon as you’ve got the site vaguely going again, you need to STOP !!!! YES STOP!!!!!!!!!!

    Then take a breath, and create a test site – you cannot continue to develop your site in live, and you need a child theme. So you’ll need to read.

    Functions files and child themes – explained !


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

    Once you have a test site, you can change things there first and then when you are happy put it into live.

    In reply to: Sidebar not appearing

    Robin W
    Moderator

    @robin-w

    The problem is that there are so many themes out there, all of which do ‘clever’ things with layout that it is impossible to give a set of instructions.

    However you are using a paid theme with support, so you need to refer to them.

    You question should look like

    I’ve just installed bbpress forum software, and I want to use this in a page with a sidebar. To do this I need to copy and rename a theme page template that has a sidebar – basically I need to rename it bbpress.php and put it in my themes folder.

    Can you either let me know which template file in your theme has a sidebar, or where within an existing template (having copied and renamed it) I would put something like

    <?php get_sidebar(); ?>

    In reply to: How to add a @username

    Robin W
    Moderator

    @robin-w

    ok, put the css in your style.css.

    then maybe try this code in your functions.php file

    add_action( ‘bbp_theme_after_reply_author_details’, ‘mentionname_to_bbpress’ );
    function mentionname_to_bbpress () {
     $user = get_userdata( bbp_get_reply_author_id() );
     if ( !empty( $user->user_nicename ) ) {
     $user_nicename = $user->user_nicename;
    echo '<ul><li><font class=bbp-user-nicename>' ; 
    echo “@”.$user_nicename.’</font></li></ul>’ ;
     }
     }

    Robin W
    Moderator

    @robin-w

    ummm, yes it doesn’t make a difference.

    So now I’m not sure if running my bit is causing the blank screen, or running a wp-query that large with any ‘post__in’ or ‘post__not_in’ causes an issue. I could prove that by breakimng the execution at that point, but am struggling to see how it breaks it. Another think time I feel ! I’ll come back when I’ve done that.

    Or we could return to limiting the number displayed. ok so your pagination will be out, ie it’ll say ‘1-20 of 1550’ topics not ‘1-20 of 155000 topics’, but who does a topic list and goes beyond the first say 4 pages???

    what do you think?


    Robin W
    Moderator

    @robin-w

    no problem in deleting, but de-activate for a while first, then clean out when you’re sure you don’t need !


    Robin W
    Moderator

    @robin-w

    I somehow suspect that what you’re calling the admin bar may well have been what login/logout was displaying.

    was this admin bar at the top or bottom of you screen, and what did/does it display ?

    Try adding them back one at a time and see if it comes back.

    and next time don’t delete, just deactivate, then you can go back if needed 🙂

    or note down exactly what you have taken away so that you can add it back !


    Robin W
    Moderator

    @robin-w

    so is your admin bar missing for all users or just you?

    was the admin bar present when the plugins were there, and was it present for all users or just you?

    do you know the exact names of the plugins you were using?

    In reply to: bbPress Mods Wishlist

    Robin W
    Moderator

    @robin-w

    yes there’s lots to learn, my css is probably at your php level !

    I found a way to have a search box that is persistent on every level of the bbPress forums. Now I have to get rid of the second search box that is at the top of the forums. I can’t find where that is in the code to remove it.

    You could try just turning off the forum search

    dashboard>settings>forums and look for allow forum wide search

    Is there anyone that comes around regularly that would either donate the time for these couple of tweaks or let me pay them over time?

    you can put an ad on wordpress jobs

    http://jobs.wordpress.net/

    just post it as a project and detail what you want

    But I’d play with the css first, as I think much of what you want is stylable.


    Robin W
    Moderator

    @robin-w

    no problem, using the wordpress editor will not work, you’ll need to use ftp or cpanel

    see the following

    Functions files and child themes – explained !

    on FTP and notepad++ which will get you the tools.

    then you want to
    ftp the file to your pc
    open it using notepad++
    then save it to your pc as the new filename
    the edit it for the sidebar
    then save it on your pc
    the ftp the file back to your host

    lots to learn, but you’ll find this useful for future as you customise you site


    Robin W
    Moderator

    @robin-w

    It’s at the end of the forum, unless your theme is having an issue (sometimes they do)

    I add it to a forum sidebar – if you’re using a sidebar then come back and I’ll post how

    In reply to: How to add a @username

    Robin W
    Moderator

    @robin-w

    basically you’d use the same css as @robkk into your stylsheet, and then the code would be

    
    /**
    * Add @mentionname after bbpress forum author details
    */
    
    add_action( 'bbp_theme_after_reply_author_details', 'mentionname_to_bbpress' );
    function mentionname_to_bbpress () {
    $user = get_userdata( bbp_get_reply_author_id() );
    if ( !empty( $user->user_nicename ) ) {
    $user_nicename = $user->user_nicename;
    echo '<p class=bbp-user-nicename>' ;
    echo "@".$user_nicename.'</p>' ;
    }
    }
    
    In reply to: How to add a @username

    Robin W
    Moderator

    @robin-w

    to do the second you need to put the following in your functions file:

    //take away the role display
    function hide_role ($args) {
    $args['show_role'] = false ;
    Return $args ;
    }
    add_filter ('bbp_before_get_reply_author_link_parse_args', 'hide_role') ;

    this removes the existing text,

    then you’d need to add some image depending on role, so something like

    add_action( 'bbp_theme_after_reply_author_details', 'add_image' );
    function add_image () {
    $role = bbp_get_user_display_role( bbp_get_reply_author_id( $reply_id ) );
    if ($role == 'keymaster') {
    echo "<img src='/snippet_theme/img/error.gif' title='Error' alt='Error' />"; 
    }
    if ($role == 'participant') {
    etc.
    }
    
    

    This is not tested – sorry but limited time !!

    In reply to: How to add a @username

    Robin W
    Moderator

    @robin-w

    or put

    /**
    * Add @mentionname after bbpress forum author details
    */
    
    add_action( 'bbp_theme_after_reply_author_details', 'mentionname_to_bbpress' );
    function mentionname_to_bbpress () {
    $user = get_userdata( bbp_get_reply_author_id() );
    if ( !empty( $user->user_nicename ) ) {
    $user_nicename = $user->user_nicename;
    echo "@".$user_nicename;
    }
    }
    

    in your functions file.

    Functions files and child themes – explained !

    both methods are valid, if you use @robkk’s method, remember to create this as a separate file within your theme
    https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-3/ section 3


    Robin W
    Moderator

    @robin-w

    ok, use this template, but follow the instructions in https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/#8-make-sure-bbpress-uses-the-page-template-we-want

    in the copy that you have renamed bbpress then remove

    <?php
     if ( ! is_active_sidebar( ‘sidebar-2′ ) && ! is_active_sidebar( ‘sidebar-3′ ) && ! is_active_sidebar( ‘sidebar-4′ ) && ! is_active_sidebar( ‘sidebar-5′ ) )
     return;
     ?>

    and replace it with

    <?php get_sidebar(); ?>
    

    and then ensure that bbpress tweaks is saying to use bbpress.php


    Robin W
    Moderator

    @robin-w

    @jesspetrohoy it is highly likely that the cause of your issues is different (different plugin conflict or different theme) , and you need to take the same action above to find out which plugins or whether your theme is affecting.


    Robin W
    Moderator

    @robin-w

    probably a theme or plugin problem

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

    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, switch to a default theme such as twentytwelve, and see if this fixes.


    Robin W
    Moderator

    @robin-w

    I believe this is an issue for anyone since even non-logged-in users would be able to see this topic if they had the URL for it, which could be generated from a sitemap or something – yet to be confirmed.

    just re-tested this, and no they get a 404 error or whatever page you send then to in the settings


    Robin W
    Moderator

    @robin-w

    wordpress is post software and has posts and comments

    bbpress is forum software, so it has forums, topics and replies

    so people will reply to topics, not comment on them !

    so I would

    1. deactivate buddypress
    2. switch to a default theme such as twentytwelve and see if people can now reply to topics, you are only doing this to see if your theme has an issue with replies.
    3. let us know whether you are allowing anonymous posting, or whether you onlt want topics/replies from registered users?

    Also, how do I just let people see the topics and not the forum?

    umm, not sure what you mean, either you have a forum or your have posts and comments, you can’t have forum topics with post comments 🙂

Viewing 25 replies - 7,376 through 7,400 (of 8,886 total)