Sloppy Buns (@diggories)

Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • @diggories

    Participant

    Thanks for the reply Stephen. I will take a look.

    @diggories

    Participant

    Have you enabled Custom Redirection

    Enabling this module will initialize custom redirection. You will then have to configure the settings via the “Redirection” tab.

    If not just go to Theme My Login “General” settings and enable it there then go to “redirection” and click “Referrer” on all sections or whatever you prefer.

    @diggories

    Participant

    To simplify the above, it appears “bbp-view” and “bbp-user-page” do not have a wp-class equivalent?

    @diggories

    Participant

    Ok i think I have found where the problem is, take a look at the Body Class snippets from different pages on bbpress, paying particular attention to the sections after the word bbpress in each snippet.

    The top two are from pages I am able to get sidebars to appear on and the bottom two I can not.

    In the top two notice after the word bbpress you see a description of the type of page it is “single single-topic” and “archive” respectively.

    In the bottom two this does not happen so my theme “Hueman” doesn’t know what sort of pages they are and therefore is unable to place the sidebars on these pages, now all I need to know is how to rectify this?

    <body class="topic bbpress single single-topic postid-976 logged-in admin-bar no-customize-support topbar-enabled full-width gecko">
    
    <body class="forum-archive bbpress archive post-type-archive post-type-archive-forum logged-in admin-bar no-customize-support topbar-enabled full-width gecko">
    
    <body class="bbp-user-page single singular bbpress logged-in admin-bar no-customize-support topbar-enabled full-width gecko">
    
    <body class="bbp-view bbpress logged-in admin-bar no-customize-support topbar-enabled full-width gecko">
    

    @diggories

    Participant

    I have worked part of this out and have implemented a is_bbpress format for forum pages so I can choose what sidebars to put on my forum pages however I am still not able to get sidebars to show up on profile or most popular topics.

    What I require is the is_ codex for these pages so I can write a script to place sidebars on these pages, I have found that the User profile has these html body classes:
    bbp-user-page single singular bbpress
    is_bbpress() does not work

    and Most Popular Topics:
    bbp-view bbpress

    This should be is_bbpress() however is_bbpress() does not work.

    Any help would be greatly appreciated.

    In reply to: Menu link to Profile

    @diggories

    Participant

    @ronthai Thanks for the “How To” for creating menu links. I have already implemented it on two of my sites and it works great.

    Again Thanks

    In reply to: Menu link to Profile

    @diggories

    Participant

    oh if you want it to go directly to the edit profile section just add /edit at the end like this

    <a href="http://yoursite.com/forums/users/[hana-code-insert name='BB Profile' /]/edit">My Profile</a>

    In reply to: Menu link to Profile

    @diggories

    Participant

    I don’t know if this will help or not however I have found a simple way to do a text link in a page or post.

    I use the below PHP to call the current user

    <?php global $current_user;
          get_currentuserinfo();
    
         echo  $current_user->user_login . "";
          
    ?>

    And then surround it with a standard html link.

    <a href="http://yoursite.com/forums/users/<?php global $current_user;
          get_currentuserinfo();
    
         echo  $current_user->user_login . "";
          
    ?>">My Profile</a>

    I use a plugin called Hana Code Insert to place it in posts and pages using the following steps:

    1.) Take the php code

    <?php global $current_user;
          get_currentuserinfo();
    
         echo  $current_user->user_login . "";
          
    ?>

    and place it in the “New Entry” box in the Hana Code Insert plugin and give it a name like “BB Profile” or what ever you want.

    2.) Tick the “Evaluate as php code.” check box at the bottom of the “New Entry” field.

    3.) Click “Create New Entry” and this will produce a shortcode something like this [hana-code-insert name='BB Profile' /]

    4.) Then on the page or post you want to place the link just place the following <a href="http://yoursite.com/forums/users/[hana-code-insert name='BB Profile' /]">My Profile</a>

    That’s it, hope it helps and I.m sure someone here can figure a way to use this in a menu link, I am still trying to figure that out.

    @diggories

    Participant

    @lwyndham thanks for the heads up, where did you place this code?

    @diggories

    Participant

    I love BBpress but this is so annoying I have searched here and googled it but there just isn’t anything anywhere that shows how to place a simple link to the BBpress users profile in your menu or on a page, this must be possible as it is the most basic need for a forum.

    Is there anyone that can shed some lite on this for us poor mortals that have exhausted all avenues ??

    Thanks in advance

Viewing 10 replies - 1 through 10 (of 10 total)