Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 626 through 650 (of 11,571 total)
  • Author
    Search Results
  • #226640
    Robin W
    Moderator

    Back end: under Forums it shows the ‘Last Post’ as 3 hours, 30 minutes ago when I just added a test post. However, under ‘Replies’ it shows the correct time in the ‘Created’ column.

    Can you test this with a page or post – bbpress is just a custom post type and uses wordpress code for the backend

    #226639
    kojak711
    Participant

    I have the exact same issue as this.

    My time zone is GMT-3:30.

    Front end: The topic list shows ‘Last Post’ as 3 hours and 30 minutes ago but when you click the topic the latest reply time (the most recent reply) is correct.

    Back end: under Forums it shows the ‘Last Post’ as 3 hours, 30 minutes ago when I just added a test post. However, under ‘Replies’ it shows the correct time in the ‘Created’ column.

    Is there a fix available for this? I’ve tried everything I’ve found in these forums and nothing has worked.

    #226628
    docmartinhk
    Participant

    Hi:

    Thanks for creating the importer [and forum].

    Just done an import from Drupal 7 forum, to bbpress 2.6.9 on WordPress 5.8.3.

    It seems to have worked well.

    Just odd that in listings like forums, forum topics, get 0 posts and 0 topics listed; even tho can click through and see the posts and replies.

    I’ve tried running the Repair Forums tools [all of them, just in case! – didn’t get any reports from them, in case there should be]. But not helped.

    Also added a test post; and sure enough this was counted.
    – so I can carry on with the forum, just an oddity to have the Drupal posts/topics not counted.

    Currently wpress.drmartinwilliams.com/forums
    Soon to http://www.drmartinwilliams.com

    #226614

    In reply to: member only 404

    hny
    Participant

    Thank you for the suggestion.

    We tested the plugin but it still does not redirect to the login page. We are using the Theme My Login plugin for the login page.

    #226571
    Robin W
    Moderator

    can you just let me know what shortcode you are using, then I can try it out on my test site.

    #226567
    gr19rute
    Participant

    The problem is known for years. I’ve tried this solution:
    https://bbpress.trac.wordpress.org/ticket/2785
    But it doesn’t work anymore.
    Does anybody knows an actual tested fix?

    Robin W
    Moderator

    ok, lets try agian and see if we can get there.

    Your site has

    https://imhodom.ru/forums/users/ox/replies/

    so we need to check for ‘/users/’ and ‘/replies/’

    and we’ll try and up the priority so that other code does not overwrite

    add_action( 'bbp_template_redirect', 'neon_check_replies', 100);
    
    function neon_check_replies(){
    	//only execute if the url contains both /user/ and /replies/, so test for this first
    	if (strpos($_SERVER['REQUEST_URI'], '/users/') !== FALSE  && strpos($_SERVER['REQUEST_URI'], '/replies/') !== FALSE) wp_redirect( 'https://imhodom.ru/forums' );
    }
    
    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.

Viewing 25 results - 626 through 650 (of 11,571 total)
Skip to toolbar