Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 926 through 950 (of 11,570 total)
  • Author
    Search Results
  • #217454

    In reply to: latest bbpress 2.6.6

    wpturk
    Participant

    bbpress 2.6.6 is a minor release.

    I think you need to do some debugging in your test environment. Which DB queries are slow etc …?

    Here is the list of changes in 2.6.6

    https://bbpress.trac.wordpress.org/query?group=status&milestone=2.6.6

    #217433
    randrcomputers
    Participant

    Updated to 2.6.6 and wow did my server load spike! took me a week to figure out it was bbpress update as i also did many other updates that day anyways downgraded back to 2.6.5 all good. Any idea why this would happen? Forums are somewhat large but i dont think huge: Total forums: 36 • Total posts: 94,124 • Total topics: 7,381 • Total users: 36,925

    #217421
    pflanzenoma
    Participant

    Hello,
    my Forum http://www.exoten-forum.de is on the air for only one day now. When users postet interesting photos in “Test” I’d like to move the posting to the appropiate forum f.i. “Palm trees”. But this does not work. The “move” button only offers a new thread in the same forum. How can I move postings all over?

    WP Version 5.6
    Theme Twenty Twenty-One
    BBPress Version 2.6.6
    Site: http://www.exoten-forum.de

    Pflanzenoma

    #217377

    In reply to: Avatar issues

    JLee
    Participant

    Why am I having this issue with a clean install of bbPress? Is this a bug with latest version?

    It’s not only the spacing, but the avatar is extremely tiny, compared to this forum.

    Thank you for replying!!

    #217203

    In reply to: User Statistics

    Robin W
    Moderator

    so in the statsistics plugin you are changing

    $latest_user = get_users(
                    array(
                        'number' => 1,
                        'fields' => array("user_login", "ID", "display_name"),
                        'orderby' => "registered",
                        'order' => "DESC",
    		'meta_key' => 'wp-approve-user',
    		'meta_value' => '1'
                    )
                );

    to

    //set up $args with core arguments needed
    $args =  array(
                        'number' => 1,
                        'fields' => array("user_login", "ID", "display_name"),
                        'orderby' => "registered",
                        'order' => "DESC",
    		) ;
    		
    //add additional meta data to $args if wp-approve-user is active
    if (class_exists ('Obenland_Wp_Approve_User')) {
    	$args ['meta_key'] = 'wp-approve-user' ;
    	$args ['meta_value'] = '1' ;
    }	
    
    //then do the lookup
    $latest_user = get_users($args) ;
    
    #217199

    In reply to: User Statistics

    Robin W
    Moderator

    ok, so final amendment needed, as if you deactivate wp-approve-user then the latest user will be forevermore the last one you approved before decativating the plugin.

    If you open the wp-approve-plugin you’ll see the core file wp-appprove-user.php

    open this and you’ll see a line 29 which says

    class Obenland_Wp_Approve_User extends Obenland_Wp_Plugins_V4 {

    so we know that the wp-approve-plugin sets up a class called ‘Obenland_Wp_Approve_User’, so we can use the existence of this class to know if wp-approve-use is active or not.

    This is common to many plugins and a good way to ensure parts of code that use another plugin only fire if that plugin is active.

    so now we can change the ‘get_uses’ to only add the meta_data is the class exists

    //set up $args with core arguments needed
    $args =  array(
                        'number' => 1,
                        'fields' => array("user_login", "ID", "display_name"),
                        'orderby' => "registered",
                        'order' => "DESC",
    		) ;
    		
    //add additional meta data to $args if wp-approve-user is active
    if (class_exists ('Obenland_Wp_Approve_User')) {
    	$args ['meta_key'] = 'wp-approve-user' ;
    	$args ['meta_value'] = '1' ;
    }	
    
    //then do the lookup
    $latest_user = get_users($args) ;
    #217191

    In reply to: User Statistics

    Robin W
    Moderator

    ok, so the function within that code that gets the latest user is this

     $latest_user = get_users(
                    array(
                        'number' => 1,
                        'fields' => array("user_login", "ID", "display_name"),
                        'orderby' => "registered",
                        'order' => "DESC"
                    )
                );

    so this function brings users ordered by registered – DESC means latest is listed first, and number=>1 means just retrieve one, so this gets the latest.

    so we just need to add a lookup to say that this must also have meta ‘wp-approve-user’ set to 1 so we amend the function to

     $latest_user = get_users(
                    array(
                        'number' => 1,
                        'fields' => array("user_login", "ID", "display_name"),
                        'orderby' => "registered",
                        'order' => "DESC",
    		'meta_key' => 'wp-approve-user',
    		'meta_value' => '1'
                    )
                );

    This (untested) should work for your site.

    I don’t plan to support this plugin, but am happy to have it on my site to allow others to use it.

    Given that many many other plugins might set meta data it is not possible to cater for all, so I’ll just host the previous version. Anyone downloading will be via this thread so they can see how to update it to cater for the approve plugin.

    #217190

    In reply to: User Statistics

    Chuckie
    Participant

    I have just checked the database and wp-approve-user is always 1 with the exception of one record where it is empty. I assume this is the person that registered on my site this morning whom I have not approved.

    so we just need the latest user who has been approved

    Correct, but, if this will be part of the plugin you sponsor on your site it will need to factor if for the old way I guess too. Unless this becomes a custom code change just for me.

    #217189

    In reply to: User Statistics

    Robin W
    Moderator

    ok, so does latest user only ever show 1?
    looks like it – come back and I’ll help you with the next step

    #217188

    In reply to: User Statistics

    Robin W
    Moderator

    that was exactly what I meant – now we know what changes, so to code we need to find out which user is being displayed and get that data.

    so as you say it will be something like

    $approve = get_meta_data ($user_id, 'wp-approve-user', true) ;

    presume you mean ‘latest user’ – not keen to load the plugin to my test site as I’m mid something else – so we just need the latest user who has been approved, or do you mean something else?

    #217187

    In reply to: User Statistics

    Chuckie
    Participant

    So it calls:

            private function section_latestuser() {
                
                // Grab the latest registered user on the site
                return $this->tag_replace( $this->parent->option["title_text_latestuser"] );
            }
    

    Which in turn calls:

    
            function get_latestuser( $html ) {
                $latest_user = get_users(
                    array(
                        'number' => 1,
                        'fields' => array("user_login", "ID", "display_name"),
                        'orderby' => "registered",
                        'order' => "DESC"
                    )
                );
                
                $latest_user = reset( $latest_user );
                
                // Default display is the full name
                $name = $latest_user->display_name;
                
                if( $this->parent->option['user_display_format'] == "display_as_username" ) {
                    $name = $latest_user->user_login;
                }
                
                if( $html == true ) {
                    return "<a href=\"" . bbp_get_user_profile_url( $latest_user->ID ) . "\">" . $name . "</a>";
                } else {
                    return $name;
                }
            }
    

    I think, if “WP Approve User” is installed then we need to somehow modify the array returned to only include those where the are approved (as per my previous email).

    #217149
    sbask
    Participant

    Some… but not all… users are reporting that they are logged into the forum but the site is not showing that they are online

    Offline
    Topics: 136
    Replies: 15303

    I’ve tried to repro the issue but it’s not occurring for everyone. We recently upgraded the bbpress to the latest and still working through some oddities.

    #217121
    Milan Petrovic
    Participant

    Hey @sbask, I see that you use my GD bbPress Toolbox Pro, and the view it creates. I have not noticed that it has the issue you describe, but I will check it out. It would be beneficial if you can open the topic in the official support forum, and share more details about the problem so we can debug it.

    Also, you are using a fairly outdated version (5.6) that might be having issues with bbPress 2.6, while the latest one is 6.3. bbPress 2.6 has made changes to the way it handles subscriptions, and old GD bbPress Toolbox Pro most likely was still using the old subscriptions method.

    #217108
    Robin W
    Moderator

    ok, no idea what is causing that

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #217084
    maskis
    Participant

    Hi!

    And thank´s for great plugin!

    I have tried to change my forum page to be my site´s homepage using shortcode [bbp-topic-index]. I can make my forum index come up in a box in my homepage, but it is missing all the extra´s in the forum pages (ie. latest posts, latest topics, etc.). Is there a way to really set a forum page to be homepage of my site?

    I have the newest versions of WP and bbPress, and I´m running on newest version of Customizr theme.

    My homepage is http://www.maltaasta.fi (a Finnish homebrewing site) and I would like the visitors to get straight to my forum in http://www.maltaasta.fi/keskustelupalsta

    #217054
    bs981
    Participant

    Hi,

    Looks like, I have been able to pin-point error which was related to the “Fastest Cache” Plugin. It was interfering with the login.

    Is there any safe cache plugin which can be used along with BBPRESS. If there are any settings specifically to prevent login/logout issues, then please let me know.

    Please guide on Cached Plugins interfering with the bbpress login and how to avoid it.

    regards
    BS

    #217007

    In reply to: bbpress log in process

    Robin W
    Moderator

    you are right ! Looks like it change on 2.6.

    It now does it on register

    so to change back to how it used to work

    in

    dashboard>settings>forums untick Automatically give registered visitors…etc

    Then put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    add_action('wp_login', 'rew_add_role');
    
    function 'rew_add_role' () {
    	$user_id = $user->ID ; 
    	$role = bbp_get_user_role( $user_id );
    	if (empty($role)) {
    		bbp_set_user_role( $user_id, 'bbp_participant' );
    	}
    }

    This code is untested, but should work, if not come back

    #216964
    uksentinel
    Participant

    I have rolled back style pack to v4.5 and issue remains.

    I also created a test forum on another site I own and the style pack works as it should do 😉

    It just does not work for my forum and alas I do not know why ?

    forum

    #216953
    Robin W
    Moderator

    ok, so can you give me a hierarchy that does not work eg

    category x has 2 sub forums y and z and z does not show

    ie something I can build on my test site

    #216882
    erich199
    Participant

    I was curious if anyone has or knows of any function or shortcode that I can use that pulls the first topic from a specific forum and shows it on a page?


    @robin-w
    , does your bbpress shortcode plugin do this?

    I basically want to create a section on my homepage called “Announcements” and have the latest two topics from my forums with the Title and an excerpt from the post body included.

    #216834
    Robin W
    Moderator

    I’m not sure why you are not working – it works both on this forum and on my test site.

    #216831
    simonlepamplemousse
    Participant

    I disabled the theme and plugins. They are all out of the question.

    That’s what it seemed to me, they are all out of the question.

    In addition, here I did the test, the error also exists. The error is therefore linked to the bbpress plugin.

    #216801
    supermagicien
    Participant

    I just tested, it’s the same, knowing that with version 2.5 I never had this problem.

    Well, we’ll stop here, I’ve bothered you enough, I’ll go back to version 2.5 which runs without any problem, thank you again.

    #216800
    Robin W
    Moderator

    when you restore it, it then becomes a draft – so you need to go into the topic in the tableau de bord and approve it – can you test this please

    #216798
    supermagicien
    Participant

    re,

    I have just tested the manipulation,

    whether we go through WordPress as you told me or try to restore directly from the topic it doesn’t work.

    I redid the test on a clone of the site and the problem recurred.

Viewing 25 results - 926 through 950 (of 11,570 total)
Skip to toolbar