Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 12,626 through 12,650 (of 14,141 total)
  • @robin-w

    Moderator

    Now, can you explain what registration process you would like eg

    user does this
    what user info you want
    emails goes from..to…saying
    Site manager does that…

    etc. ie design your ideal process 🙂

    @robin-w

    Moderator

    you’re welcome

    @robin-w

    Moderator

    for no. 1, add this code to your functions file

    //display last topic title in freshness for forums
    function display_title ($anchor, $forum_id, $time_since, $link_url, $title, $active_id ) {
    $anchor = '<ul><li><a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $title) . '</a></li></ul><a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $time_since ) . '</a>';
    return $anchor ;
    }
    add_filter ('bbp_get_forum_freshness_link', 'display_title', 10, 6 );

    Having coded it, I like the way it displays, and will be adding to the forums on one of the sites I support – one of the reasons I support this forum is that I learn and get ideas from others 🙂

    @robin-w

    Moderator

    @robin-w

    Moderator

    for no. 2

    add

    #bbpress-forums div.bbp-forum-title h3, #bbpress-forums div.bbp-topic-title h3, #bbpress-forums div.bbp-reply-title h3, #bbpress-forums a.bbp-forum-title, #bbpress-forums a.bbp-topic-permalink {
      color: #666 !important;
      font-size: 16px !important;
    }
    
    

    to your style.css

    In reply to: How to add a @username

    @robin-w

    Moderator

    great – glad you’re fixed !

    @robin-w

    Moderator

    great – glad you’re fixed !

    @robin-w

    Moderator

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

    Layout and functionality – Examples you can use

    @robin-w

    Moderator

    great, come back with your next query !

    @robin-w

    Moderator

    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

    Great – thanks !

    @robin-w

    Moderator

    @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

    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

    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

    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

    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

    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

    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

    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

    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

    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

    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

    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

    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

    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

Viewing 25 replies - 12,626 through 12,650 (of 14,141 total)