Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 1,676 through 1,700 (of 11,598 total)
  • Author
    Search Results
  • Robin W
    Moderator

    @antipole

    you need to specify the number of arguments in the call so..

    function test_reply_call($reply_id, $topic_id, $forum_id, $reply_to){
    	error_log("Trace rest reply: $reply_id: ". strval($reply_id) . "; $topic_id: " . strval($topic_id) . "; $forum_id: " . strval($forum_id) . "; $reply_to: " . strval($reply_to));
    	}
    add_action('bbp_reply_attributes_metabox_save', 'test_reply_call', 10 , 4);

    the ’10’ is the priority – 10 is the standard, the higher the number the higher the priority so the order in which any other links to this hook are run, and the ‘4’ the numbers of arguments you are calling through

    Barry
    Participant

    Hi @antipole,

    Looking back at your original strategy, you only shared a fragment of your code – so it’s hard to be sure of this – but I’m wondering if the problem are the assumptions you are making about the type of $post your callback is receiving.

    https://gist.github.com/barryhughes/30bacb98b716ecaa864f0b6eaa7c051c

    Does a revised approach like the one I shared above work for you? It should give you the author ID (whether that is the author of the reply or the topic) and the forum ID. If you need to, you could add an extra test to confirm the status change reflects publication (vs a topic being set back to draft by an admin).

    Antipole
    Participant

    Stack Trace

    #5 /home/…/public_ in /home/…/public_html/ovni-owners-test-site/wp-content/plugins/ovni-submission-notifications/pending-submission-notifications.php on line 98
    1.
    test_reply_call(9705)
    /home/…/public_html/ovni-owners-test-site/wp-includes/class-wp-hook.php:288
    2.
    WP_Hook->apply_filters(”, Array)
    /home/…/public_html/ovni-owners-test-site/wp-includes/class-wp-hook.php:310
    3.
    WP_Hook->do_action(Array)
    /home/…/public_html/ovni-owners-test-site/wp-includes/plugin.php:453
    4.
    do_action(‘bbp_reply_attri…’, 9705, 9605, 1882, 0)
    /home/…/public_html/ovni-owners-test-site/wp-content/plugins/bbpress/includes/admin/replies.php:315
    5.
    BBP_Replies_Admin->attributes_metabox_save(9705)
    /home/…/public_html/ovni-owners-test-site/wp-includes/class-wp-hook.php:288

    Antipole
    Participant

    @robin-w thanks. I am experimenting with your suggestion. I have

    function test_reply_call($reply_id, $topic_id, $forum_id, $reply_to){
    	error_log("Trace rest reply: $reply_id: ". strval($reply_id) . "; $topic_id: " . strval($topic_id) . "; $forum_id: " . strval($forum_id) . "; $reply_to: " . strval($reply_to));
    	}
    add_action('bbp_reply_attributes_metabox_save', 'test_reply_call');

    This is fired when I post a reply in the backend, but I get

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function test_reply_call(), 1 passed in /home/…/wp-includes/class-wp-hook.php on line 288 and exactly 4 expected in /home/…/wp-content/plugins/ovni-submission-notifications/pending-submission-notifications.php

    The do_action in bbp_reply_attributes_metabox_save does use 4 arguments. What am I doing wrong please?

    #198054
    Robin W
    Moderator

    hmm – can’t really suggest what is going wrong, works on my test site

    #198011
    Robin W
    Moderator

    It could be a theme or plugin issue

    Themes

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

    Plugins

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

    Then come back

    #198004
    Robin W
    Moderator

    without testing, I suspect this will work

    // filter to show more than 50 topics on a forum
     function bbp_increase_topic_per_page( $args = array() ) {
     $args[‘posts_per_page’] = 100 ;
     return $args;
     }
     add_filter( ‘bbp_before_has_topics_parse_args’, ‘bbp_increase_topic_per_page’ );
    #197987
    Robin W
    Moderator

    It could be a theme or plugin issue

    Themes

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

    Plugins

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

    Then come back

    #197950
    Robin W
    Moderator

    bbpress is compatible with 5.0.3 and works fine on my test site.

    It may be a conflict with your theme or plugins

    Themes

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

    Plugins

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

    Then come back

    #197922
    Pascal Casier
    Moderator

    Hi Maxime,

    Are you trying to import into 2.5 or into 2.6? If you start with a fresh bbPress, then please note that v2.6 has improved import capabilities. You can download the latest RC from https://bbpress.org/download/

    #197921
    Pascal Casier
    Moderator

    Hi,
    The importers have been given a boost in 2.6. So if you start importing, better try with the latest RC of v2.6. You can download it from https://bbpress.org/download/

    #197900
    Robin W
    Moderator

    untested, but add this to your functions file or snippets

    add_filter ('bbp_before_insert_forum_parse_args' , 'rew_order' ) ;
    
    function rew_order ($args) {
    $args['menu_order'] = 10 ;
    return $args ;
    }

    Code Snippets

    #197893
    N. Ahamad
    Participant

    I have read this topic : https://bbpress.org/forums/topic/smf-import-to-bbpress/page/7/

    And currently trying to figure out the way to do it, I have massive forum. Seems forum system a bit neglected by their builder nowadays. (and I wish BBpress not the same).

    Do the current version BBPress importer works with current / latest SMF?
    Mine seems stucks at 5900 topic conversion something out of 13K topics. Im running conversion of 1.7gb database on xampp – localhost server with i7 and 16gb of ram with tweaked php.ini and-so-on.

    Yet possibly another 450k replies waiting in que… now Im worried.

    Seriously, no idea to identify which database column made it stucks…

    #197802

    Hi,

    Thank you for your reaction! <3

    For the forum site club.geef-model.nl I have set the mailaddress in settings>general in info@geef-model.nl. I have created, using incognito screen, a new user and confirmed it but I still don’t receive a notification mail of it.

    I also installed the plugin check email and tested it. I received the following mail:
    This test email proves that your WordPress installation at http://club.geef-model.nl can send emails.\n\nSent: Wed, 16 Jan 2019 15:32:08 +0000

    What could I do now to solve my problem?

    With kind regards,
    Klaziena Waerts

    #197791
    Oaz
    Participant

    Hello Robin, and thanks for taking care.

    Well, I did as suggested, and ran into several problems : this a theme problem AND a theme child problem apparently.
    I keep testing solutions and will be back if needed. thanks for your help any way !

    #197781
    Robin W
    Moderator

    It could be a theme or plugin issue

    Themes

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

    Plugins

    If that deosnlt work, also deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    #197673

    In reply to: Create new forum error

    Robin W
    Moderator

    It could be a theme or plugin issue

    Themes

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

    Plugins

    If that deosnlt work, also deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    #197644

    In reply to: phpBB import (again)

    Gregg
    Participant

    @maximemue. The point of the export/import task is to get the data into a database with the latest data format. I found a thread that suggested exporting data out of the old database then creating a new one – which should have the newer format – and importing the data into it. How you accomplish this depends on what tools you have available. In my case, I was using the GoDaddy database interface – not PHPMyAdmin. I didn’t have a choice but PHPMyAdmin should be fine.

    Once you’ve done this you’ll need to “wire” up phpBB to use the new database by editing the config file. Look for the documents on their website that deal with installation and setup. That’ll point you in the right direction on which file and what to change.

    #197619
    OreilleMalade
    Participant

    Hi @sockscap64

    Amazing!

    I’ve just tested it and it looks to work as expected 🙂

    Just one point is not: when you have a relative link as an internal link the “nofollow” attribute is still here.

    See for example https://rencontre-surdoue.com/groupes/science/forum/topic/intelligence-artificielle/
    The link on “musique” in an internal one (/groupes/musique/)

    I don’t know if this is something you forgot to deal with when writing your plugin? I guess every relative link should be treated as an internal one (or maybe I’m missing something obvious here?).

    Best Regards

    #197539
    Robin W
    Moderator

    Actually if you are getting the same as the first poster, which still does the error, then having link won’t help.

    I’ve just tested on my test site and all ok, so if you have disabled all the plugins, have you switched theme?

    #197515
    Robin W
    Moderator

    I suspect that it doesn’t know which user you want displayed

    untested but try this

    <?php 
    $current_user_id = (int) bbp_get_current_user_id();
    
    $topics = bbp_get_user_topic_count_raw($current_user_id);
     $replies = bbp_get_user_reply_count_raw($current_user_id);
    
    $totalTopics = $topics * 5;
     $totalsReplies = $replies * 2;
    
    $points = $totalTopics + $totalsReplies;
    
    echo " points = $points.";
    
    ?>
    
    #197446
    trayzio
    Participant

    WP: 4.9.8
    bbp: 2.5.14
    https://graysentinels.com/forums

    Problem, the Toolbar for replies is missing. We’ve confirmed that this issue appears with our theme, edge Elritch 1.2. Tested with the Twenty Fifteen theme and the toolbar appears.

    Thanks for your time!
    -trayzio

    #197410
    AdventureRidingNZ
    Participant

    I’ve found no issues in relation to WordPress 5.0
    And BBPRESS continues to be stable but as an actively maintained and developed platform BBPRESS is dead.

    As you have seen Version 2.6 has been in development for about 2 years and no updates have been made on the latest release candidate in over a year I think.

    The only person providing any support here seems to be Robin, who I understand Is not part of the BBPRESS team but has developed a number of plugins that can help with many users issues.

    Even with Bbpress scale and amount of plugin developers I still can’t believe there is no way of adding images inline in a BBpress post with the image being loaded into the WordPress media library.

    #197404
    Robin W
    Moderator

    no problem, I’ll load to to my test site when I get a moment

    #197401
    dailycdev
    Participant

    When I create Testimonial Pages on my site, I am not getting the expected results.
    I do see my forum page and it looks good.

    Forum

    However, clicking on any of my forum pages, I get a title and a summary with a Continue Reading button.
    Clicking the title or Continue reading brings me to the same page.
    I am expecting the page to open, where users can write testimonials and such and post them.
    Anyhow, this is not happening and screenshots of my issues are below…
    https://1drv.ms/f/s!AtzxGqXDzsbBiLcoDclhspyQlmV7Yw

    Let me know what I need to do to fix this.
    Also, if my theme is not compatible, please let me know.
    -Paul

Viewing 25 results - 1,676 through 1,700 (of 11,598 total)
Skip to toolbar