Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 651 through 675 (of 11,582 total)
  • Author
    Search Results
  • Robin W
    Moderator

    ok, so if the replies link goes to

    https://mysite.com/forums/user/admin/replies/

    then this

    add_action( 'bbp_template_redirect', 'neon_check_replies');
    
    function neon_check_replies(){
    	//only execute if the url contains both /user/ and /replies/, so test for this first
    	if (strpos($_SERVER['REQUEST_URI'], '/user/') !== FALSE  && strpos($_SERVER['REQUEST_URI'], '/replies/') !== FALSE) wp_redirect( 'https://mysite/home' );
    }

    will send anyone clicking the link to the site home page

    what does it do for you?

    Robin W
    Moderator

    ok try this

    add_action( 'bbp_template_redirect', 'neon_check_replies');
    
    function neon_check_replies(){
    	//only execute if the url contains both /users/ and /replies/, so test for this first
    	if (strpos($_SERVER['REQUEST_URI'], '/users/') !== FALSE  && strpos($_SERVER['REQUEST_URI'], '/replies/') !== FALSE) wp_redirect( 'https://example.com/some/page' );
    }
    neon67
    Participant

    Thanks for your help, take the time – I really appreciate it! But … again nothing happens.

    Have a clean new bbpress, latest version of WordPress, own Ngnix, cleared the cache, checked for syntax errors.
    Little confused https://stackoverflow.com/questions/23614011/if-strpos-serverrequest-uri-true-doesnt-work/23614083 and whether the equation is correct. I can’t figure it out myself.

    Robin W
    Moderator

    This function will take all attempts to go to the replies page to whatever url you want

    add_action( 'bbp_template_redirect', 'neon_check_replies');
    
    function neon_check_replies(){
    	//only execute if the url contains both /users/ and /replies/, so test for this first
    	if (strpos($_SERVER['REQUEST_URI'], '/users/') == FALSE  && strpos($_SERVER['REQUEST_URI'], '/replies/') == FALSE) return ;
    	else wp_redirect( 'https://example.com/some/page' );
    }

    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

    #226355
    neratashy
    Participant

    Thank you for your answer.

    I have installed the plugin. Cleared all caches and tested it with existing forum and new forum – unfortunately the problem persists with the version. If I downgrade it, it works again – only then WordPress complains that there is a security risk etc… because the plugins are not up to date.

    best, neratashy

    #226352
    m1ngum0u
    Participant

    I’ve seen this before, already updated Redux plugin to the latest version but problem seems not to be resolved

    #226351
    Robin W
    Moderator

    just as a test, can you add

    bbp style pack

    which has a fix for an issue in 2.6.7 which may or may not relate to this

    If you install and activate the style pack plugin, does the problem stay or go away?

    #226241
    Robin W
    Moderator

    ok, best advice I can give is the standard fault finding :

    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

    #226234
    sxsnationdave
    Participant

    Is there a way to have a thread, forum or page that will show what’s new or new posts? I would like to be able to do this not in a sidebar but in an actual thread, forum or page.
    I’, using the latest versions of bbpress and WordPress. I have also tried many different themes.

    #226175

    In reply to: BBp style pack

    Robin W
    Moderator

    Sorry, that file is back and corrupted I cannot say why.

    I can only suggest 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

    #226144
    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

    #226138
    m1ngum0u
    Participant

    @robin-w could you check your engagements.php on your test forum?
    (/yoursite/wp-content/plugins/bbpress/includes/common/engagements.php)

    i’ve got
    public function get_users_for_object( $object_id = 0, $meta_key = '', $meta_type = 'post' )

    i think $meta_key value shouldn’t be empty…

    #226137
    Robin W
    Moderator

    ok, again my test site works.

    so we need to work out if it is the import, a theme or plugin issue, or something else.

    I would suggest next you create a forum, and one topic for it. Then make the forum hidden, and see if this then works.

    #226130
    Robin W
    Moderator

    having one forum hidden works fine on my test site

    #226055
    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

    #226050
    ecollart
    Participant

    hello,

    huge thanks for your efforts here !!!!

    I’ll test your quick & dirty proposal and let you know

    Eric Collart

    #226040
    Robin W
    Moderator

    I am not absolutely sure where you are, but yes everything I expect to work does work on my test site 🙂

    #226038
    Robin W
    Moderator

    ok, this is free software with free support, and I have limited time to help – it works on my test site, so I cannot say why it does not work for you. Given that you can control it from the backend, then I hope you have enough of an solution to be workable.

    #226037

    In reply to: Missing Forum Menu

    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

    #226023
    ecollart
    Participant

    I just found a plugin named Easy Username Updater allowing an admin to change the username and even having a checkbox to send a mail to updated user but user never got the mail. It seems to work on my test site but gave an error when trying to login… Do not use that one !

    A second plugin named Username Changer is working without any error and the mail is sent (if selected). This one works like a charm !

    I explore this method because all moderators are from my company so I can update and inform them without disturbing customers…

    I’ll test that on my production site and let you know the result.

    Eric Collart

    #226020
    ecollart
    Participant

    Doing some tests on a fresh WP install (theme Twenty Twenty-one) with only the bbPress plugin gives following results:

      I can create topics not assigned to a forum from backend (being super sticky or not) and see them in “All Topics” from backend.
      From backend, I can modify those topics
      From Frontend, I can modify from top menu (admin menu) but I cannot use the “Modify” menu visible on the topic (this gives me error “Nothing found here” !

    So I clearly have a problem caused by one of the other plugin on my production site but it seems bbPress has also a small problem.

    Eric Collart
    PS: I am OK for any remote control short session to show you the erroneous behavior even on a fresh site.

    #226015
    ecollart
    Participant

    Well,

    you are now way too deep for me but I understand bbPress could be causing that…

    I will deploy a test WP site with only bbPress and Private group plugin and see how it behaves for my 2 opened questions…

    This can take a day or two…

    Thanks a lot for support !

    Eric Collart

    #226012

    In reply to: Hide role in the forum

    ecollart
    Participant

    Thank you too !

    Isn’t it now included in latest versions ?

    Eric Collart

    #226010
    ecollart
    Participant

    Huge thanks again !

    I am quite happy it is not a bbPress bug ! It was looking too big to be possible but who knows and you helped me a lot pointing the right (I hope) direction.

    Is there any known conflict with those plugins ?

    I”ll made more tests and post share result here for all.

    Eric Collart

    #226009
    Robin W
    Moderator

    Just tested ‘all topics’ and that is also fine, so yes I would suspect another plugin is adding a permission issue

Viewing 25 results - 651 through 675 (of 11,582 total)
Skip to toolbar