Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 351 through 375 (of 11,523 total)
  • Author
    Search Results
  • #233793
    Robin W
    Moderator

    if title is unique then

    get_page_by_title()

    untested but something like :

    function rew_find_topic_id ($title) {
    	$topic = get_page_by_title($title, OBJECT, bbp_get_topic_post_type());
    	if (!empty ($topic) {
    		$topic_id = $topic->ID ;
    		return $topic_id ;
    	}
    	else {
    		return 'empty' ;
    	}
    }
    #233651
    leon1912
    Participant

    Hello!
    I used the code from @robin-w and pasted it into a code snippet but it does not seem to work. That is my code:

    register_activation_hook(__FILE__, 'bbpress_topic_scheduler');
    
    add_action('bbpress_daily_event', 'bbpress_close_old_topics');
    
    function bbpress_topic_scheduler() {
     wp_schedule_event(time(), 'daily', 'bbpress_daily_event');
    }
    
    function bbpress_close_old_topics() {
    	// Auto close old topics
    	$topics_query = array(
    		'author' => 0,
    		'show_stickies' => false,
    		'parent_forum' => 'any',
    		'post_status' => 'publish',
    		'posts_per_page' => -1
    	);
    	if ( bbp_has_topics( $topics_query ) )
    		while( bbp_topics() ) {
    			bbp_the_topic();
    			$topic_id = bbp_get_topic_id();
    			$topic_date = strtotime( get_post( $topic_id, 'post_date', true ) );
                    $forum_id = bbp_get_topic_forum_id($topic_id);
                    if ($topic_date < strtotime( '-2 hours') ) // && $forum_id == 1276 )
                        bbp_close_topic( $topic_id );
    		}
    }

    The auto close time is set to 2 hours to test it and I created a comment after 2 hours because it should happen in every forum.

    Have I done anything wrong? Thanks in advance! πŸ™‚

    #233638
    enkoes
    Participant

    After tested multiple times, I think most probably problem due to Widget Logic plugin. I have now uninstalled this plugin and shifted to Custom Sidebars plugin, problem solved and widgets now can be displayed in every sidebar. Thanks for your help. Happy New Year 2023!

    room34
    Participant

    I’m just setting up bbPress on my site (WordPress 6.1.1, custom theme non-Block Editor/Gutenberg).

    I found interior forum pages are working but the main landing page was not. I was able to work around that by setting up a regular page and using the [bbp-forum-index] shortcode, but I see the user profile pages are still not working (and they are doing exactly what the forum index page was doing before).

    Here’s an example:
    https://icscalendar.com/forums-home/users/room34/

    It’s possible this is a problem with my theme, but I’m not immediately sure what might be wrong (and I’d like to fix this without having to test for plugin/theme conflicts because this is my live site and I don’t have a staging environment set up… yet).

    I’m guessing it may be a routing issue… I do have some code in my theme that uses the template_include filter.

    #233622
    Robin W
    Moderator

    that seems to be ok in my test site.

    it might be a conflict between certain widgets

    can you tell me what widgets you are using?

    #233620
    Milan Petrovic
    Participant

    Hey,

    The new version of the Toolbox Pro does contain a feature called Booster, and it does add new DB tables for indexing, but it does not make any changes to how the data is stored by bbPress. If you use Toolbox and disable it later on, there will not be any negative impact because the plugin is not changing how bbPress works with data. When Booster works, it intercepts some bbPress queries and modifies them to use index tables, and that’s it. When the plugin is not working, or Booster feature is disabled, bbPress works as it always does. But, modified queries are much faster than normal ones because Booster removes postmeta from the query and instead adds joins to the index tables (3 tables added for forums, topics and replies).

    Tests I did so far, for queries that Booster can modify, new queries are 20 times faster (on average). But, for large forums (1 million posts or more), queries can be 30-40 times faster. Yeah, I know, that is a huge change, and it might sound unreal, but the postmeta tables in WordPress are never meant to be used for queries the way they are used right now, because the data in postmeta can’t be indexed, and all data is stored in TEXT column, which is the worst column in MySQL for any kind of query.

    Anyone who follows my work knows that I have been proposing multiple times to make core changes to bbPress to stop using postmeta; I even have a GitHub repository with transformation queries and other information about changes needed, and I know that that is a huge thing to implement, but the only way to make bbPress fast, is to stop depending on postmeta for queries. What I did in GD bbPress Toolbox Pro 7.0 is just a small change for now, and I plan to expand index tables with more data and affect more queries (right now it affects 6-7 query types). Again, what my plugin does, doesn’t have any negative effect on bbPress, and if my plugin is disabled, the bbPress works just fine, no data is destroyed by my plugin.

    Finally, query speed is irrelevant for small forums (under 10000-20000 posts). Yes, queries will be much faster with my plugin, but the database size for queries is not that big, but as soon as the forums grow and have more posts, these postmeta queries will get exponentially slower, and my plugin will make it much faster.

    The plugin is now in the Beta stage, with a stable release planned for mid-January 2023.

    Regards,
    Milan

    #233606
    Robin W
    Moderator

    note tested but possibly

    #bbpress-forums .bbp-parent-forum-12345 p.bbp-topic-meta .bbp-topic-started-in a {
        background-color: #328C00;
    }
    
    #bbpress-forums .bbp-parent-forum-12346 p.bbp-topic-meta .bbp-topic-started-in a {
        background-color: #ff4b33;
    }
    #233447

    In reply to: bbPress + Elementor

    DeepBlue
    Participant

    For those who would look for this here is the best solution for Elementor theme builder (after lots of testing) :

    include : Forums > all

    and then you just need to add your categories (not forums, just categories, as forums belong to categories)
    include : Any child of > category 1
    include : Any child of > category 2
    include : Any child of > category 3

    that’s it, your theme builder template will now apply to your bbpress forum

    #233445
    DeepBlue
    Participant

    Hi Robin

    Oh great nice πŸ™‚

    i tested it, good to have the counts on users list

    on topics and replies dashboard pages, i can see the author filter, but actually when you have + 100K members a dropdown list might not be the right choice (it’s ok when limited options like 20) or am i missing something ?

    In the forums dashboard page, when i click directly on a user link in the forums lists, then it automatically filters to show only the forums that have been created by this user

    would it be possible to do the same for topics and replies dashboard pages ? i am ok for a paid job of course

    Let me know that would be a great addition to bbp style pack πŸ™‚

    Thank you

    #233314
    Robin W
    Moderator

    ok, it just shows as an underlined link in both cases on my test site.

    May be related to theme or another plugin.

    do you have a link to an example on your site please

    #233273

    In reply to: Topic Count

    bobjgarrett
    Participant

    Thanks for your help on this. Like me you obviously relish a challenge.
    To answer your question, I believe the topic count number has been reset wrongly when new topics I added as that is all other members of the forum could do and I have seen the number change and this is what led me to try to sort this out. I do not want to add a topic myself as the site is live and >400 members would then be alerted. However, there were a few topics which were imported added when I was setting it up which I did not want. I had set these to “hidden”. I just deleted one of these and the topic count immediately changed to the wrong number. So if you have a test site you could just try deleting a topic.
    So it must be whatever function which updates the topic count which is causing the issue but I have not found this.

    #233271

    In reply to: Topic Count

    Robin W
    Moderator

    Interestingly I also tried using the shortcode [bbp-stats] in a test page and that reported the correct number of topics despite the individual forum count being incorrect! How can that be?

    I should start by saying that I am not a bbpress author, just someone trying to help πŸ™‚

    the [bbp-stats] shortcode does the wordpress function
    wp_count_posts( bbp_get_topic_post_type())

    so actually counts the number of topics in the database.

    the forums page calls a function bbp_get_forum_topic_count in \bbpress\includes\forums\template.php

    This looks up the number held in the forum’s post meta under _bbp_topic_count (which you had already worked out)

    so how did you delete the post which caused the numnber to fail back?

    #233269

    In reply to: Topic Count

    bobjgarrett
    Participant

    Thanks for your reply.
    I have looked at this in a bit more detail but not got anywhere!
    As you suggested I compared two topics for a topic imported vs one entered and the differences don’t seem relevant (e.g. no ip address for the imported ones etc.). I also looked at the records from the postmeta table for the two topics and again don’t think there are relevant differences though again no ip address for the imported, 0 for _bbp_reply_count for the imported.
    So no luck there.
    I tried looking at the code of bbpress.php but could not work out how it picked up the count or incremented it.
    Interestingly I also tried using the shortcode [bbp-stats] in a test page and that reported the correct number of topics despite the individual forum count being incorrect! How can that be?

    #233259
    Robin W
    Moderator

    In had a quick look at the code above and the call

    include get_theme_file_path( '/bbpress/templates/default/bbpress/user-subscriptions.php' );

    is looking for that file in your theme, not the bbpress plugin.

    as a test, create a directory in your child theme called ‘woo-bbpress’ (it can be called anything) and put a copy of the user-subscriptions in there

    then replace then above with

    include get_theme_file_path( '/woo-bbpress/user-subscriptions.php' );

    and see if that improves

    #233233

    Topic: Topic Count

    in forum Troubleshooting
    bobjgarrett
    Participant

    Having imported thousands of topics from another system the topic count was incorrect for one of my forums.
    I tried the Repair Forums tool to correct this but it made no difference.
    I then edited the postmeta table for the relevant forum setting _bbp_topic_count and _bbp_total_topic_count to the correct topic number. This worked in that the forum then showed the correct number.
    However, when I then deleted a post (which had been a test topic) the number went back down to only counting those that were actually added rather than those imported.
    So the numbering system is clearly more complex than I thought.
    Can anyone advise how to get the right number to be there and be updated correctly?

    #233176
    Robin W
    Moderator

    yes it does on my test site.

    are none or only some of these happening?

    #233161
    jaymaddireddy
    Participant

    Thanks Robin. I got it… when you clicked on the topics, it showed fine, because I switched the theme to ‘associationX’ to test it..
    However, if I use the theme of the website, ‘caffeine’ from muffinworks.com, it shows only topics list, but ont the topic page itself…
    Now I switched it back to ‘caffeine’ theme… and you will see blank content for the link https://www.dealtimer.com/forums/topic/how-to-get-more-oem-surveys-returned

    Thank you,
    Jay M

    jaymaddireddy
    Participant

    Good afternoon,
    I installed bbpress successfully and created a few forum entries.
    also added a few test topics.

    It displays fine: https://www.dealtimer.com/forums
    Also, it displays one of the forum entries with a list of topics fine at
    https://www.dealtimer.com/forums/forum/auto-dealer-csi-boosting-ideas
    However, when I click one of the topics, it shows a content area blank below the header…
    I changed the theme, and it works fine to show topic details and reply..
    I even added a single page with a shortcode to display the topic, thinking that the CSS conflicts, it shows fine at https://www.dealtimer.com/single-topic-page.html
    However, from the list of topics to browse the topic content, it fails.
    When I looked at it, it even called content-single-topic.php code, however, I do not see bbp-container content being supplied to add a topic information page…

    Do you have any idea about debugging this problem?
    Thank you in advance for your help,

    Jay M

    #233130
    Robin W
    Moderator

    so that changes the

    ‘Topic Title (Maximum length’… label above the area where the user types in the title.

    This changes on my test site.

    Is that the one you are trying to change?

    #233082
    freelancesid
    Participant

    I am a first time user of bbPress plugin and am mighty impressed by the ease inspite of it being used in an untested version of WordPress.
    I am using WordPress 6.1.1, though it is listed as not tested, I decided to try.
    My bbPress version is 2.6.9
    I am using the theme Astra version 3.9.4

    Help needed:
    1. I have filled in some details on my Forum page, which are not visible on the output page https://milk-one.in/forums/forum/career-opportunities-with-natural-living/
    2. Is there a way I can copy Categories from one forum to another?

    Thank you so much for your attention.

    Best regards,

    Sid

    #233069
    Robin W
    Moderator

    Doing anything involves finding out where and why this is happening.

    If we find that, then we can look at possible causes and potential solutions.

    I am yet to be convinced it is a bbpress issue at all. bbpress uses this element when a user inserts a link – that is true, but it is a generic piece of wordpress code. This is a bit like saying because Fred cuts his lawn, any lawn that is cut must have been cut by Fred.

    I am not seeing this form on any pages in my test site.

    The code is in some javascript in the footer, and could be loaded by anything, including a wordpress setting, theme or plugin.

    so can you

    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

    #233026
    Robin W
    Moderator

    ok, I cannot say why that is happening.

    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

    #233024

    In reply to: Searching Problem

    Robin W
    Moderator

    ok, all I can say is that it works on my test site.

    I am not a bbpress author, just a guy sat in his kitchen trying to help others

    #232997
    Vivian E
    Participant

    Hello,

    On this page on my site. I can see that bbpress insert/edict link form is causing my site to have redundant H1 tags. This is bad for my Bing SEO as it’s showing up as something I need to fix. So I have 2 H1 tags. One is the tittle of the page and the other one is coming from the link insert/edict form on my site “front end source cod” that’s a feature created by bbpress.

    Please can that insert/edict form have H3 tag please ? is there a way to course the form to have a H3 tag and not a H1 tag??

    Secondly the form edict menu does not function properly. The form link and other menus does not show or work on the “reply box” on the front end even if I’m accessing the site as an admin! Also the “create a new topic form” the insert/edict link form doesn’t show up on a pop up but instead shows up on my footer. I’m using both the latest version of bbpress and wordpress.

    I will really like to fix this issues. thanks for any help or advice that would be provided for this issue!!

    #232940
    Robin W
    Moderator

    that’s great – thanks

    so on my test site, I hid a forum and logged in as a participant, and the index shows fine.

    so we need to work out what the difference between your site and my test site is.

    so initially let’s eliminate outside factors such as 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

Viewing 25 results - 351 through 375 (of 11,523 total)
Skip to toolbar