Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 701 through 725 (of 11,510 total)
  • Author
    Search Results
  • #221776
    Robin W
    Moderator

    just run it on my test site, and the counts stay as they should

    #221775
    Ricsca2
    Participant

    I also tried with a test site that I have and if I click on “Recount the answers in each forum” the number of posts has become the same as that of the Topics …

    Robin W
    Moderator

    ok, so you have users who have a wordpress role, but no bbpress role – yes?

    If so, then testing for a bbpress role, or as you are suggesting a capability such as create_topic seems a sensible solution.

    bobdobbs
    Participant

    Hi Robin.

    I specifically want to discover if the user is logged in as a user of bbpress.

    This is to account for a case where I have some registered websites users who are not forum users.

    For the moment I’m testing capabilities.
    At the moment the only people with access to the forum are people who can create posts.

    So I’m testing of the user has the capability create_topic

    This might work, but feels a bit clumsy to me.

    bobdobbs
    Participant

    I’m wanting to create conditional logic that responds to whether a user is logged in to bbpress.

    Googling helped me to find these two functions:

    bb_current_user_can()
    bb_is_user_logged_in()

    However, when I use them, I get the error “Call to undefined function bb)…”.

    This happens even when I tie my containing function to the hook ‘plugins_loaded’, which I believe fires after all activated plugins have loaded.

    (I first tried to use the hook ‘wp’)

    So I’m just double-checking…

    Should I be able to use either of those two functions to test if a user requesting a resource is a logged-in bbpress user?

    #221532
    Robin W
    Moderator

    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

    Robin W
    Moderator

    ok, so if you are a keymaster then I can only suggest

    1. reset the permalinks – dashboard>settings>permalinks and just click save – this resets them.

    2. if that doesn’t fix, 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

    goosie00
    Participant

    I’ve done something, but I don’t know what? I think the slugs for the ‘forum’ page may have had a conflict (there was a warning message, but I changed the names), and I think the tabs went missing after I rebuilt the tables, but the tabs have totally disappeared now, and I don’t know how to get them back. Its a backend issue, as its not affecting the front end – you can still get to the forum page
    I uninstalled and deleted/reinstalled bbpress, and it hasn’t brought the tabs back.
    I’m really worried that if I delete the Buddypress plugin, I will lose my settings and customer lists of Participants. Any advice would be very much appreciated.
    bbPress Version 2.6.6
    Buddypress Version 8.0.0
    Wordpress the latest
    FORUM HERE

    Robin W
    Moderator

    if they are not showing, then 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

    #221425
    Robin W
    Moderator

    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

    #221342

    In reply to: Scheduling a Topic

    Robin W
    Moderator

    ok, scheduling works fine on my test site, so not sure what to suggest next.

    #221336
    mrforum
    Participant

    Hello all,

    I have a question i am testing a migration from phpbb to bbpress. but now for a while i get a repeat of step 8, how long does this take? i have about 60 times step 8 now and counting.

    And i do not see any users from the original forum, i still have to do the repair as mentioned above to see if that works.

    #221323

    In reply to: Scheduling a Topic

    Robin W
    Moderator

    suspect it might be a another plugin that is adding these (possibly one of mine, but hopefully not!)

    so the standard fault finding applies

    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

    #221243
    Robin W
    Moderator

    great – thanks for posting your experience. Partial forum transfers are always difficult as there is lots of meta-data like counts and latest items that need to be correct at the end

    #221232

    In reply to: is_bbpress not working

    Robin W
    Moderator

    there is an action hook on the forums index so

    add_action ('bbp_template_before_forums_index' , 'test_bbpress');

    shoul dwork

    #221226
    nathan767
    Participant

    Hello,

    I currently have this plugin installed onto my website which I plan on updating soon and I would like to know if it is compatible with the latest version of WordPress 5.7.2.

    The current version of WordPress I am running is 5.5.5.

    #221224
    bobdobbs
    Participant

    I’m trying to detect requests for the bbpress forum index page.

    Initially I tried ‘bbp_is_forum_archive()’.
    This doesn’t return true from the forum archive page.

    I decided to test if any bbpress conditional tags were working, so I tested ‘is_bbpress’, because the function calls many (maybe all?) of the other conditionals.

    However, ‘is_bbress’ doesn’t return true either.

    However, on any page in my site, whether bbpress is on that page or not, this condition returns true:
    ‘if ( ! is_bbpress() )…’

    What could be happening here?

    This is my function and the hook I’m using:

    add_action('init', 'test_bbpress');
    function  test_bbpress() {
    
        if (  is_bbpress()  ) {
    	wp_die("got to the forums page") ;
        }

    }

    #221220
    tarabusk
    Participant

    Hi,
    I’m presently working on a beta version of an existing bbPress WP Website, and I’ll need to retrieve ONLY the latest bbpress activity from the prod website to the beta website (only new users, new subjects etc …) I can not find a way to do it (the import/export tool deal with ALL the data which i don’t need)
    Any suggestion would be greatly appreciated.

    #221195
    ozwest
    Participant

    Same problem here, I will download the plugin and test.

    Robin W
    Moderator

    bbpress just uses wordpress.

    I’d suggest 2 things

    1. test using an email tester eg

    WP Test Email

    2. get details of your SMTP email configuration form your host and use

    WP Mail SMTP by WPForms

    #221175
    Robin W
    Moderator

    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

    sk80au
    Participant

    Hi,

    I’m testing my new website and found a problem with user registration. When a new user registers (in this case myself using a different email address), the verification email isn’t being send to the user.

    I, as an admin receive the email that the user x is registered.

    Wondering what could cause this issue? and is there any known fix for this?

    bjornwebdesign
    Participant

    Well, as you can see, the code posted here is almost 5 years old. So it’s understandable it doesn’t work anymore ;-). Also, I don’t think a 404 means it’s a “serious privacy issue”. Something isn’t working correctly, so my first step would be to check the logs and see what is causing the 404 and go from there.

    Very busy atm and currently don’t have a BP test setup running. If you still need a solution maybe I can find some time in the coming days.

    bobdobbs
    Participant

    After installing bbpress I have a set of forums.

    Every forum is presented using a php template in my child theme.
    The php template has the filename bbpress.php.

    I’d like to create a php template that applies *just* to the individual forum pages. Not the forum topics or singles. Or anything else.

    I’ve been looking at this:

    Template hierarchy in detail

    The heirarchy seems to suggest that you can use ‘single-[forum].php’, which suggests that ‘[forum]’ needs to be substituted with the name of the forum.

    … which is great. But I want one template to be applied to all forum singles and nothing else.

    Just to test, I copied my existing bbress.php to a file called ‘single-forum.php’.
    bbpress did pick this up and use it for my forum singles.
    But the page didn’t present the actual forum. Where the forum should have been, there was just empty space.

    So… how do I create a template that gets applied to all forums and nothing else?

    Robin W
    Moderator

    BOTH

    You will need to test the below, as I don’t use either plugin on any forum site.

    PM PRO

    for PMpro you have the following hooks :

    Action and Filter Hooks

    I am guessing that pmpro_membership_post_membership_expiry is the correct hook.

    so the code you need is :

    add_action( 'pmpro_membership_post_membership_expiry', 'rew_remove_subscriptions') ;
    
    function rew_remove_subscriptions ($user_id=0) {
    	$forums = bbp_get_user_subscribed_forum_ids ($user_id) ;
    	foreach ($forums as $forum=>$id) {
    		bbp_remove_user_subscription ($user_id, $id, 'post' ) ;
    	}
    	$topics = bbp_get_user_subscribed_topic_ids ($user_id) ;
    	foreach ($topics as $topic=>$id) {
    	bbp_remove_user_subscription ($user_id, $id , 'post' ) ;
    	}
    }

    MEMBERPRESS

    for Memberpress you have the following links

    https://docs.memberpress.com/article/325-action-hooks-in-memberpress

    I am guessing that ‘mepr-event-subscription-stopped`

    is the correct one, but you might need to query with memberpress

    so for memberpress you would have

    add_action( 'mepr-event-subscription-stopped', 'rew_remove_subscriptions') ;
    
    function rew_remove_subscriptions ($event) {
    	$subscription = $event->get_data();
    	$user_id = $subscription->user();
    	$forums = bbp_get_user_subscribed_forum_ids ($user_id) ;
    	foreach ($forums as $forum=>$id) {
    		bbp_remove_user_subscription ($user_id, $id, 'post' ) ;
    	}
    	$topics = bbp_get_user_subscribed_topic_ids ($user_id) ;
    	foreach ($topics as $topic=>$id) {
    	bbp_remove_user_subscription ($user_id, $id , 'post' ) ;
    	}
    }

    BOTH

    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

Viewing 25 results - 701 through 725 (of 11,510 total)
Skip to toolbar