Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,626 through 10,650 (of 32,511 total)
  • Author
    Search Results
  • #152084
    wp_maybe
    Participant

    Why, this is fabulous! Thank you so much for your help!!

    I tested with your modified code for about an hour, and can’t seem to find any issues. I will post an update in case I do discover any problems…

    But this does appear to be the solution to searching single bbpress forums, including private ones in Buddypress. Thanks to you, @tobyhawkins! 🙂

    #152077
    Robin W
    Moderator

    Interesting… WP_query has a tag parameter, lets try resetting that

    Try

    if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'paged' => 1, 'posts_per_page' => $number_of_topics,  'tag' => '') ) ) :
    		bbp_get_template_part( 'loop', 'mytopics' );
    	else :
    		bbp_get_template_part( 'feedback', 'no-topics' );
    	endif;
    #152075
    mpesgt01
    Participant

    I was installing bbPress on my website, using the Tools > Forums > Import forums. It was going okay until it reach converting replies. My forum have 52 600 messages in 18 000 subjects from 1200 users.
    – I visited the url mysite.com/forums and I see it well, but at first sights it seems there is no replies at all in every message.
    – Here is what I see in the yellow box.

    Can you tell me what to do from here ? (as nothing keep going, but the little wheels keeps tuning)

    
    Converting replies (2200 - 2299)
    Converting replies (2100 - 2199)
    Converting replies (2000 - 2099)
    Converting replies (1900 - 1999)
    Converting replies (1800 - 1899)Converting replies (1700 - 1799)Converting replies (1600 - 1699)Converting replies (1500 - 1599)Converting replies (1400 - 1499)Converting replies (1300 - 1399)Converting replies (1200 - 1299)Converting replies (1100 - 1199)Converting replies (1000 - 1099)Converting replies (900 - 999)Converting replies (800 - 899)Converting replies (700 - 799)Converting replies (600 - 699)Converting replies (500 - 599)Converting replies (400 - 499)Converting replies (300 - 399)Converting replies (200 - 299)Converting replies (100 - 199)Converting replies (0 - 99)
    No tags to convertNo super stickies to stick
    No stickies to stick
    Converting topics (5000 - 5099)
    Converting topics (4900 - 4999)Converting topics (4700 - 4799)Converting topics (4600 - 4699)Converting topics (4500 - 4599)Converting topics (4400 - 4499)Converting topics (4300 - 4399)Converting topics (4200 - 4299)Converting topics (4100 - 4199)Converting topics (4000 - 4099)Converting topics (3900 - 3999)Converting topics (3800 - 3899)Converting topics (3700 - 3799)Converting topics (3600 - 3699)Converting topics (3500 - 3599)Converting topics (3400 - 3499)Converting topics (3300 - 3399)Converting topics (3200 - 3299)Converting topics (3100 - 3199)Converting topics (3000 - 3099)Converting topics (2900 - 2999)Converting topics (2800 - 2899)Converting topics (2700 - 2799)Converting topics (2600 - 2699)Converting topics (2500 - 2599)Converting topics (2400 - 2499)Converting topics (2300 - 2399)Converting topics (2200 - 2299)Converting topics (2100 - 2199)Converting topics (2000 - 2099)Converting topics (1900 - 1999)Converting topics (1800 - 1899)Converting topics (1700 - 1799)Converting topics (1600 - 1699)Converting topics (1500 - 1599)Converting topics (1400 - 1499)Converting topics (1300 - 1399)Converting topics (1200 - 1299)Converting topics (1100 - 1199)Converting topics (1000 - 1099)Converting topics (900 - 999)Converting topics (800 - 899)Converting topics (700 - 799)Converting topics (600 - 699)Converting topics (500 - 599)Converting topics (400 - 499)Converting topics (300 - 399)Converting topics (200 - 299)Converting topics (100 - 199)Converting topics (0 - 99)Calculating forum hierarchy (0 - 99)Converting forums (0 - 99)Delete users WordPress default passwords (1300 - 1399)Delete users WordPress default passwords (1200 - 1299)Delete users WordPress default passwords (1100 - 1199)Delete users WordPress default passwords (1000 - 1099)Delete users WordPress default passwords (900 - 999)Delete users WordPress default passwords (800 - 899)Delete users WordPress default passwords (700 - 799)Delete users WordPress default passwords (600 - 699)Delete users WordPress default passwords (500 - 599)Delete users WordPress default passwords (400 - 499)Delete users WordPress default passwords (300 - 399)Delete users WordPress default passwords (200 - 299)Delete users WordPress default passwords (100 - 199)Delete users WordPress default passwords (0 - 99)Converting users (1300 - 1399)Converting users (1200 - 1299)Converting users (1100 - 1199)Converting users (1000 - 1099)Converting users (900 - 999)Converting users (800 - 899)Converting users (700 - 799)Converting users (600 - 699)Converting users (500 - 599)Converting users (400 - 499)Converting users (300 - 399)Converting users (200 - 299)Converting users (100 - 199)Converting users (0 - 99)No data to cleanStarting Conversion
    
    #152073
    siyanew
    Participant

    hi i install bbpress 2.5.4 on wordpress 4.0
    i design my theme ,but bbpress forum not show but if i use shortcode my forums will show but i want work without short code , i dont know what to do ?
    my site : Siavashg.ir/forum/
    how can i fix it ?!

    #152071
    Toby
    Participant

    Yes. That’s not ideal. I think the problem is the bbp_pre_get_posts_normalize_forum_visibility function in bbpress > includes > forums > functions.php.

    I’m not going to vouch for the security of this (although I think the logic is ok and cursory testing seems to bear this out) but you can get round this by changing your my_bbp_filter_search_results function to the following:

    function my_bbp_filter_search_results( $r ){
    
        //Get the submitted forum ID (added in gethub > bbpress > form-search.php)
        $forum_id = sanitize_title_for_query( $_GET['bbp_search_forum_id'] );
     
        //If the forum ID exits, filter the query
        if( $forum_id && is_numeric( $forum_id ) ){
     
            $r['meta_query'] = array(
                array(
                    'key' => '_bbp_forum_id',
                    'value' => $forum_id,
                    'compare' => '=',
                )
            );
    	    
            $group_id = bbp_get_forum_group_ids( $forum_id );
            if( groups_is_user_member( bp_loggedin_user_id(), $group_id[0] ) )
            {
                function my_allow_all_forums () { return true; }
                add_filter( 'bbp_include_all_forums', 'my_allow_all_forums' );
            }
        }
     
        return $r;
    }
    add_filter( 'bbp_after_has_search_results_parse_args' , 'my_bbp_filter_search_results' );

    To negate the danger of plugins forgetting to manage permissions for posts properly the normalize function visibility automatically steps in on any WP_Query activity and shuts it down, but apparently doesn’t account for the possibility of forums being private, but viewable by low level users within the group context. By adding the filter only when searching on a single forum and then only if the logged-in user is a member of the correct group I think I have accounted for the security issues, but I’m not enough of a php expert to be 100% confident that I haven’t missed something.

    #152069
    m1000
    Participant

    On the main content (url: forums/topic-tag/android/) is loaded content-archive-topic.php template with following code:
    <?php bbp_get_template_part( 'loop', 'topics' ); ?>

    loop-topics.php contains

    <?php while ( bbp_topics() ) : bbp_the_topic(); ?>
    
    			<?php bbp_get_template_part( 'loop', 'single-topic' ); ?>
    
    		<?php endwhile;
    		wp_reset_query();?>

    So it loads topics with android tag.

    On the sidebar I have this code

    if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'paged' => 1, 'posts_per_page' => $number_of_topics ) ) ) :
    		bbp_get_template_part( 'loop', 'mytopics' );
    	else :
    		bbp_get_template_part( 'feedback', 'no-topics' );
    	endif;

    It should load all recent topics from all forums but it loads topics with android tag, and it happens when I’m on this page forums/topic-tag/android/

    #152067
    Robkk
    Moderator
    "if i would i suggest something , for looks i guess would be color coordination for forums and topics, if you switch to topic freshness instead of forum archive.
    
    so the layout would be
    
    title of topic
    started by: (user) in (color of forum) title of forum
    
    or just the title of the forum with the color of the forum as a background/
    
    imo thats the only suggestion i really want" 

    My impressions so far

    finally got this done , but i bet there is a better way of doing it instead of how i did it.

    will post tutorial later if i find a better way.

    #152058
    Stephen Edgar
    Keymaster

    And I moved your topic to a separate topic and wrapped some code backticks 😉

    What happens if you create a new third user? Does the same weirdness occur?

    Looking at the backwpup_admin is this from a plugin creating a WordPress custom role? Maybe https://wordpress.org/plugins/backwpup/?

    If that is the case what happens when you disable this plugin and try updating the roles?

    Again with that plugin disabled what happens when you create another new user?

    #152055
    Nicolas Korobochkin
    Participant

    I check out your site and this f* code just not work. I see that rewrite rules from my plugin not added via add_action ('bbp_init', 'bbp_permalinks_rewrites_init', 29); hook. It’s means that:

    • Hook deleted by other plugin (hm).
    • bbp_init doesn’t exists.
    • My head is broken.

    Maybe someone get us some tips that to check or that to do.

    #152052
    johnjack
    Participant

    So full issue,
    If I go to the top level (category) forum

    Home


    this work and show the forums below it however if you try and access the forums

    Home


    for example you get a 404 error
    Trying to access individual topic

    Home


    for example works.

    Creating a New Forum by itself with no parent also works.
    However when I add a parent to it, it gives me a 404 Error when I try to view it.

    I have this forum set to type category

    Home


    this currently has two children
    both of which show a 404 Error when you try to open them (even when you ‘view’ from the edit screen.
    However when I go into and edit these forums to have no parent, then click view. I can see them

    This has happened since upgrading to WordPress 4.0
    This behavior persists even with all other plugins disabled on the site

    This narrows it down to something happening with the parenting of forums
    I don’t really code in PHP so cant really give much more insight.

    Any help would be appreciated, if any more info is required please ask

    Thx

    John

    #152051
    Epco
    Participant

    Hi, sorry for kicking this topic, but I’m having a problem probably related to this.
    I have a site with 2 admins/keymasters. As soon as I activate bbPress the other admin loses his role. Apon checking the database I find for him the wp_capabilities change from:

    a:1:{s:13:"administrator";b:1;s:14:"backwpup_admin";b:1;s:13:"bbp_keymaster";b:1;}

    to:

    a:1:{s:15:"bbp_participant";b:1;}

    When adjusting his rights in All Users -Edit the only roles available are: Subscriber, Contributor, Author and Editor.

    And when I disable bbPress and go into All Users -Edit, I can have the full list of roles (Keymaster, Participant, Blocked, Spectator, ..). These are forum roles, not general WordPress roles. Even in the database I find the 2nd admin (actually the 1st admin btw) now has the wp_capabilities a:1:{s:13:"bbp_keymaster";b:1;}, which is clearly bbp related.

    I’m running WordPress 4.0 with main plugins Theatre (http://wordpress.org/plugins/theatre/), WordPress SEO (by Yoast), Contact Form 7 and some minor plugins for adjusting posts, background and the like (nothing role related).

    #152042
    Stephen Edgar
    Keymaster

    Based on the names of the table names you mention just leave the table prefix blank.

    Did you select vBulletin3 from the dropdown?

    #152041
    Stephen Edgar
    Keymaster

    This sadly is not easily solved, details are in the following codex article:

    https://codex.bbpress.org/import-forums/import-troubleshooting/

    #152024
    m1000
    Participant

    It’s

    if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'paged' => 1, 'posts_per_page' => $number_of_topics ) ) ) :
    		bbp_get_template_part( 'loop', 'mytopics' );
    	else :
    		bbp_get_template_part( 'feedback', 'no-topics' );
    	endif;
    #152022
    2cats
    Participant

    I’d like to find a way to target a specific forum called “board”. Is there a conditional for this? Something like (bbp_is_single_forum('board') [which didn’t work]? What I am trying to do is create a forum that is accessible only to users with certain capabilities (using s2Member). (There are a number of forums on the site, accessible to all site members.) I can either do this through the functions file or if I could create a specific page template for use only with that forum (and all topics under that forum) I could change the access via the template. I wish the “private” function could be customized so that access could be provided just to specific users, admin or not. Any pointers in the right direction would be greatly appreciated!

    #151978
    Toby
    Participant

    I’m using the following in my theme’s functions.php, although for some reason is_bbpress() isn’t working on Buddypress Group Forums for me.

        if( ! function_exists( 'my_dequeue_bbp_scripts' ) )
        {
            function my_dequeue_bbp_scripts()
            {
                if( function_exists( 'is_bbpress' ) )
                {
                    if( ! is_bbpress() )
                    {
                        wp_dequeue_style('bbp-default');
                        wp_dequeue_style('bbp-default-rtl');
                    }
                }
            }
        }
        if( ! is_admin() ) add_action( 'wp_enqueue_scripts', 'my_dequeue_bbp_scripts' );
    #151976
    felix_nong
    Participant

    Currently if I access the user’s profile of bbpress (ex: http://example.com/forums/users/admin/) then it’ll list the profile, topics started, replies started….) from the viewing user.

    Is there a shortcode that allow me to display forum user’s profile by user’s id from anywhere besides original bbpress url( ex: http://example.com/test/ )?

    #151969
    Nicolas Korobochkin
    Participant

    I found the bug in plugin with some validates. Never liked if ($var) constructions. if ($var !== false && $var !== '') better to understand 🙂

    Just replace content of plugin.php in plugin folder:
    https://github.com/korobochkin/bbPress-permalinks-with-id/blob/master/plugin/plugin.php

    Tested on brand new WordPress install only with bbPress and my plugin with default theme – works as… haha.

    Robin W
    Moderator

    Great response form S2member team !

    I’m just a humble user not a dev, but hopefully netweb or JJJ will be in contact with the S2 guys.

    For those that have been bitten by this, I know how painful it is, in the early days I just upgraded plugins and wordpress in the belief that they would work until one day my site broke, and I was in panic for 8 hours when I had least time to fix it.

    When WordPress announced auto upgrade, I was very suspicious that anyone could release software confident that it would not screw up any of the several thousand plugins based on how it worked!

    So the following for those bitten, and others who do not want to be bitten going forward !

    If you are not happy for your site to be down for 24+ hours then :

    1. Turn off wordpress auto update !
    2. Create a test site https://codex.bbpress.org/creating-a-test-site/
    yes that takes time, but the comfort of not doing stuff live is fantastic !
    3. Don’t do upgrades of wordpress/plugins for the first week (UNLESS they are deemed critical), let others find the faults – yes I know that is bad to say, and if no one upgraded we’d never make progress, and I write plugins that I need people to upgrade to, etc. etc., but many people’s site’s aren’t critical, and if your is, don’t be leading the charge !
    4. Check the support forum for the upgrade
    for wordpress https://wordpress.org/support/forum/how-to-and-troubleshooting
    or your plugins support page
    you’ll soon find out if there are issues
    5. Upgrade your test site first, the spend some time checking all the critical bits
    6. When you’re happy that your test site works, then make the move in live

    I really feel for those who have been sent into panic, but maybe the above will help for next time

    Robin W
    Moderator

    @rafaeldejongh I think you need to create a test site :

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

    This will let you work out what’s woring in comfort !

    Stephen Edgar
    Keymaster

    I just happened upon the following post on foliovision.com:

    https://foliovision.com/2014/09/wordpress-original-bbpress

    The key points are:

    We still use bbPress version 1 on some of our websites. It’s powerful and integrates well with WordPress. Alas the recently released upgrade to WordPress 4.0 breaks the integration

    WordPress 4.0 changed the cookie format and also the hash function, so without this fix bbPress won’t understand that you are logged in.

    I’ve added a link also in the codex http://codex.bbpress.org/legacy/integrating-with-wordpress/

    Note: This is only relevant for bbPress 0.9/1.x “Legacy” stand alone version of bbPress and NOT the current bbPress 2.x plugin for WordPress.

    RafaelDeJongh
    Participant

    I’ve already seen a couple people with the problem but without much avail, I’m not running any plugins mentioned yet I still experience the problem after updating to WordPress 4.0

    I’ve already reverted my wordpress installation as I can’t really put the forum out for more than a day, I’m running the following plugins on my site:

    Adminimize
    AdSense Click-Fraud Monitoring Plugin
    amr shortcode any widget
    BAW Login/Logout menu
    bbPress
    bbPress Custom CSS File
    BulletProof Security
    GD bbPress Tools
    Google Adsense Dashboard
    Google Analytics Dashboard for WP
    Inactive User Deleter
    Limit Login Attempts
    Theme My Login
    WP User Avatar

    Does anyone know what plugin could be causing the problem if this isn’t a problem with BBpress?

    StargateCarterPack
    Participant

    I’ve already seen a couple threads but without much avail, I’m not running any plugins mentioned in that thread yet I still experience the problem after updating to WordPress 4.0

    I’ve already reverted my wordpress installation as I can’t really put the forum out for more than a day, I’m running the following plugins on my site:

    Adminimize
    AdSense Click-Fraud Monitoring Plugin
    amr shortcode any widget
    BAW Login/Logout menu
    bbPress
    bbPress Custom CSS File
    BulletProof Security
    GD bbPress Tools
    Google Adsense Dashboard
    Google Analytics Dashboard for WP
    Inactive User Deleter
    Limit Login Attempts
    Theme My Login
    WP User Avatar

    Does anyone know what plugin could be causing the problem if this isn’t a problem with BBpress?

    jwhammond20
    Participant

    thanks hugo…i added that code to the functions.php and that got the first topic to show within the sticky threads. Im still missing all my standard topics and and all replies. Is there a way to do that in the functions?

    Hugo Ashmore
    Participant

    A written to the S2 member thread:

    A better fix – on a copy of content-single-topic.php in a bbpress folder in the theme-

    is to find the line:
    <?php if ( bbp_show_lead_topic( ) ) : ?>

    and change it to:
    <?php if ( bbp_show_lead_topic( $show_lead = true ) ) : ?>

    Even better than that is to write this as a filter run from functions.php probably until such time as a true reason and solution is provided.

    This function added to your themes functions file should also achieve the same requirement and can be removed after things have been cleared up.

    
    function show_bbp_lead_topic_true() {
    $show_lead = true;
    return $show_lead;
    }
    add_filter('bbp_show_lead_topic', 'show_bbp_lead_topic_true');
    
Viewing 25 results - 10,626 through 10,650 (of 32,511 total)
Skip to toolbar