Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 7,826 through 7,850 (of 32,519 total)
  • Author
    Search Results
  • #166906
    Robkk
    Moderator

    Not really a bbPress related question, but use this.

    ul#menu-secondary-menu {
        float: right;
    }

    Make sure to keep it bbPress related next time.

    #166905

    In reply to: Facebook Meta Data

    Robkk
    Moderator

    It might be that bbPress does not have support for featured images, and the SEO plugins pull from the featured images.

    I think you are the first to mention a feature request for a fallback image in bbPress.

    There have been users that were suggesting a possibility for featured images for forums for forum thumbnails/icons. There is a neat little piece of code to that here.

    http://www.kristarella.com/2013/04/bbpress-forum-icons/

    There might be a way to get the forums featured image to and I guess set it as the child posts (topic) featured image, but right now I am not sure how to do that right now.

    #166903

    In reply to: Adding design to page

    Robkk
    Moderator

    I am not sure using Visual composer, but since bbPress has dynamic pages and not static WordPress pages, I am not sure a page builder will help much.

    If you have a custom bbpress.php file in your theme you can add a banner to all bbPress pages or just the ones of your choice with some conditionals.

    If you are adding the banners using a shortcode you can echo the shortcode like this.

    <?php echo do_shortcode("[shortcode]"); ?>

    Just make sure to edit the bbpress.php file in your child theme and place the shortcode in the template.

    #166901
    Robkk
    Moderator

    I guess double check and make sure the email is the same.

    https://en.gravatar.com/support/gravatar-locations/

    You can also try and see if a plugin/theme is causing the issue.

    Troubleshooting

    #166895
    Robkk
    Moderator

    This guide should be helpful.

    How to change my user avatar?

    #166894
    Robkk
    Moderator

    I am sure the profile menu link has a class in it that you can find in the source code using the dev tools, and from there you can just float it to the left with CSS.

    something like

    .class {
      float: left;
    }
    #166893
    Robkk
    Moderator

    Give me a minute to finish creating some trac tickets for a mobile layout in bbPress. I am trying not to include everything one single trac ticket.

    The mobile layout I was working on long ago was never really that great from what I can see now. It does take some points from other forum software though, but in just some areas it didn’t stay tidy well enough without causing a mess at 320px.

    Just a sidenote this topic from what I can tell, the user I think enabled threaded replies which doesn’t have a responsive styles in the bbpress plugin. And what is already there for responsive styles for the replies do not work because of some markup bug caused by the threaded replies feature and possibly its walker code.

    #166881
    sbskamey
    Participant

    Hi support,

    I would like to add a banner design to the bottom of my topics and replies pages, but I’m not sure how I do this? What WordPress page do I use?

    I am using Visual Composer.

    http://sincebeingsingle.com/forums/forum/relationships/

    I have done this with the main forum index page using the shortcode:

    http://sincebeingsingle.com/insight/

    Any help would be great!

    Thanks,
    Kam

    8ball106
    Participant

    Hello!

    Here’s what I’m trying to achieve..

    When user is logged in, I want to display topic activity from all forums user is subscribed to. I can live without paginated pages, so it can be for example, 10 recently active topics from all subscribed forums.

    With this I can get a list of user subscribed forums:

    $current_user = wp_get_current_user();
    
    if ( bbp_get_user_forum_subscriptions( $current_user->ID ) ) {
    
    bbp_get_template_part( 'loop', 'forums' );
    
    }

    So how to query recently active topics from currently logged in user subscibed forums?

    I hope somebody can help me out with this. Thank you!

    #166879
    tkse
    Participant

    Here is a code snippet that will do what you are looking for though.

    https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/#21-show-5-recent-topics-after-forum-index

    This gives me the 5 most recent topics in single-forum as well, not just the forum index/home page of the forum. I tried working around it, and also directly solve the problem but with no luck.

    #166869
    Robkk
    Moderator

    The code I just gave you is not the same. I changed the theme location from primary to top menu. Did you try it??

    If you link me to your site and use the code you just posted, I can probably make it where the profile link only shows on the top menu using CSS.

    #166868
    Karthikeyan KC
    Participant

    I’ve successfully replaced the ‘freshness’ string to ‘last post’ for my forum index. I copied the loop-forums.php template and tweaked it so. The issue now is that it won’t work for the ‘sub forum’ index. I’m kinda tired after opening all the templates. Could anyone here tell me the template path for the ‘sub forum’ loop?

    #166867
    dayan89
    Participant

    I didn’t get. It’s same code you gave me above.

    Can you please modify following code. This worked out for me before, but it added two links, to primary and to top-menu.

    add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' );
    function my_nav_menu_profile_link($menu) {
        if (!is_user_logged_in())
            return $menu;
        else
            $current_user = wp_get_current_user();
            $user=$current_user->user_nicename ;
            $profilelink = '<li><a href="/forum/profile/' . $user . '">Мой профиль</a></li>';
            $menu = $profilelink . $menu;
            return $menu;
     
    #166866
    Robkk
    Moderator

    Try this.

    add_filter('wp_nav_menu_items','rk_bbp_menu_profile_link', 10, 2);
    function rk_bbp_menu_profile_link( $items, $args ) {
        if( is_user_logged_in() && $args->theme_location == 'top-menu')  {
    		
    	$current_user = wp_get_current_user();
            $user = $current_user->user_nicename;
    	$profilelink = '<a href="/forums/users/' . $user . '/">Your Profile</a>';
            $items .=  '<li>' . $profilelink .  '</li>';
    
    	}
        return $items;
    }
    #166865
    Robkk
    Moderator

    You find this in your theme, most likely in the functions.php file, but it could be different depending on the theme. You would spot by the register nav menu function like what is listed in this page.

    https://codex.wordpress.org/Function_Reference/register_nav_menus

    If you have a free theme I could check it out and get the arguments you need.

    If not there may be some arguments like menu slug that could help, but I need the name of the menu you are wanting to put the profile link in.

    #166864
    dayan89
    Participant

    I’ve learned the code of theme locations tab and found the name of my top menu. It was “top-menu”

    Now I have profile link in top menu. But how can I make it first item in menu, not last?

    #166863
    Robkk
    Moderator

    Interesting survey results!! I keep forgetting to comment my thoughts on this!!

    I am surprised that theming bbPress is split between all three of the choices listed, I expected most people to rely on their custom built themes and theme compatibility of bbPress like last year. So it seems not just developers/knowledgeable coders know how to use bbPress with any theme.

    I can see there is a small increase of developers creating sites with bbPress forums for others, but a decrease in users creating themes and plugins. So at least more developers are interested in bbPress, but I bet once the plugin and theme development guides are finally up, that there will be an increase in plugin and theme development.

    There is an increase in multisite usage of bbPress, which is good to see.

    I believe Gaming, Academic, and Music site types could possibly use an increase in site types using bbPress.

    Users contributing to bbPress has seem to have lowered quite a bit, which is not good. Hopefully there are a few things that can change that. People are joining slack though, so there is that.

    Desktop and Laptop is being mostly used by users, while they seem to want a better mobile experience. I will keep that definitely in mind as times are changing, and people browse while on mobile more than in the past.

    I am surprised unread replies and quotes have dropped a tad for being a requested feature, but there are some great plugins that can add that functionality.

    People want bbPress topics to replace WordPress comments more than ever.

    There is a lot more positive feedback on the comments left in the survey listed at the very bottom on this. Which is very good. I also think these comments are one of the most important parts to pay attention to of the survey.

    http://mercime.github.io/bbPress-2015-survey-results/


    @mercime
    thanks for doing a wonderful job with the survey. 🙂

    #166860
    project_subdomain
    Participant

    tested commenting out above part several times which gave me correct titles and wrong titles when active. Did a systematic check then by deactivating plugins one after one and custom codes one after one and reversed, also refreshed the page title via backend (no caching in use). Nothing found to make the titles correct except commenting out above part.
    I cannot reproduce it as well.

    #166859
    Robkk
    Moderator

    Hmm, the repair tools should have fixed it. There is even a repair tool named

    Recalculate the sticky relationship of each topic

    There is not really a setting for sticky topics, it is basically a post status similar to sticky posts in WordPress. The query for topics just displays sticky posts first then the rest of the topics after that.

    Did you sort the topics differently by using a code snippet from this website, like sort topics by date or something different??

    #166853
    Robkk
    Moderator

    I think this plugin will allow you to customize how the notifications look in Settings > Forums. There might be shortcodes to change the content to use excerpt instead.

    https://wordpress.org/plugins/bbpress-custom-reply-notifications/

    #166848
    @mercime
    Moderator

    @yolandal backup database and files, then check out the Mingle Forum importer https://codex.bbpress.org/getting-started/importing-data/import-forums/

    #166846
    Karthikeyan KC
    Participant

    Uh! Found it!

    bbp_show_lead_topic


    Hope it helps others…

    #166839
    guillaumemolter
    Participant

    Thank you! I did the same…copy pasted the shortcode from this page! And was desperatly trying to find how to remove this non-html5 tag from bb-press!

    You saved my day!

    #166838
    Robkk
    Moderator

    There is a way to put it into a specific menu if you know exactly what the theme location or any additional menu arguments of a specific menu are.

    Here is an example if the theme location is primary.

    add_filter('wp_nav_menu_items','rk_bbp_menu_profile_link', 10, 2);
    function rk_bbp_menu_profile_link( $items, $args ) {
        if( is_user_logged_in() && $args->theme_location == 'primary')  {
    		
    	$current_user = wp_get_current_user();
            $user = $current_user->user_nicename;
    	$profilelink = '<a href="/forums/users/' . $user . '/">Your Profile</a>';
            $items .=  '<li>' . $profilelink .  '</li>';
    
    	}
        return $items;
    }
    #166837
    Kasi Salyer
    Participant

    Hi,

    Here is what I see using codestyling localisation :

    Loading Issue: Author is using load_textdomain instead of load_plugin_textdomain function. This may break behavior of WordPress, because some filters and actions won’t be executed anymore. Please contact the Author about that.

    Thanks.

Viewing 25 results - 7,826 through 7,850 (of 32,519 total)
Skip to toolbar