Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress'

Viewing 25 results - 4,176 through 4,200 (of 26,877 total)
  • Author
    Search Results
  • #187043

    In reply to: bbpress performance

    The problem of conditionally loading the PHP files will go away when we can start to officially support autoloading for versions of PHP greater than 5.2.

    With BuddyPress, we did move to supporting autoloading when it’s available. bbPress has fewer files, and is a simpler piece of software, so my preference would be to keep it a bit more pristine and not include the same conditional support until it’s a general requirement for running WordPress.

    Anything we can do to make bbPress more performant is definitely encouraged, so I appreciate you noticing, and taking the time to start the discussion here.

    #187042

    In reply to: bbpress performance

    Fabian
    Participant

    1) It is true and I’ll show you some more precise benchmarks on this for a concrete example. Take the filter bbp_map_meta_caps, it’s within a filter recursion, where the filter fires it self again. The recursively fires 4 times with bbpress only. Now if another plugins does the same, it could get up to 16. Plugin run times include each other through the filter api. In worst case you can’t just add them to each other, they bias by some non-linear function that is definitely not O(n).
    Your point is true, that you can’t blame a plugin for being slower in conjuntion to others. But, you as a developer, should avoid that other plugins can slowdown your own plugin, by minimal intrusion into the WordPress plugin API. And bbPress does not have this minimal intrusion. Of course it is a big software product, but there is high potential to conditionally hook into WP only on pages it needs to.

    2) No its not completely irrelevant. I wasnt clear enouh here, I’m not referring to file count, but yeah -how you said- file size or LLOC. Were not talking about vulcanizing scripts. You’re right, the PHP interpreter got very fast and it should not matter, but consider:

    a) Only the inclusion of bbpress main file makes PHP allocate about 600 KB. Thats a lot, considering 0 output bytes. And this happens on every request, every REST.

    b) Think about who runs a WordPress site, not people that have a dedicated high performance server. Usually its a webspace in a VM. These systems can power hundreds of sites, so the webserver does not just read 500 files at the same time, but lets say 10000. This lowers the chance to find the same PHP code in some cache between subsequent requests. The code size per request starts to matter here.

    b) It is a style thing, I dont want my programs to load 1MB code without using it. And yeah, there are many plugins that just follow WordPress style to include everything, but this does not mean it is a good style to follow. Unfortunately, there is no well known code metric that covers this. WP was created in darker times of PHP, without autoloaders. Why do we have them now? I dont get it why so few plugins properly use them, it takes a day to refactor your plugin and another to test.

    bbPress is not doing bad. It could just be more minimal if the forum is just a smaller part of your website. I dont expect 25 plugins to allocate 0 memory, but I expect 25 plugins not to clog my dashboard and frontpage, where I do not want them to load. I want them to do what they are supposed to do on specific pages within the front- and backend.
    Its true that woocomerce is the worst.
    I could optimize it though. It only loads on the shop frontpage, on the checkout page, on product pages, specific ajax actions and REST endpoints. The cart can be XHR, or one can keep on loading the plugin once a cookie is set. This technique makes the wp-admin dashboard fast too.

    (I’ll back with the benchmarks)

    #187038
    Robin W
    Moderator

    bit of a cop out answer (ie ‘we can’t be bothered’), but yes you can manually do this using

    bbP Toolkit

    #187025
    MakarkinPRO
    Participant

    I have 10 forums. I want restricted access from Guest/NotPaid users. And if user want access to, he paying via CreditCard (PayPal ATM processing).

    I installed:

    WooCommerce
    YITH WooCommerce Subscription (free)
    bbPress Private Gorups

    But I can’t connect things together. I thinking it that way:
    1) I create a privite gorups where wordpress’s User Roles is PaidSubscripber. BTW:When user just login/signup to my BBpress he have a User Role named just a Subscriber.
    2) After he addint subscription item to the card and paid for that, his WordPress Role is SHOULD change from Subscriber to PaidSubscriber, but I cannot find that option into YITH WooCommerce Subscription (free).

    Questions:
    Am I thinking in the right direction?
    May be YITH WooCommerce Subscription (free) doesn’t support of changing user role for a paid period of time (I set 1 month)?

    THx

    #187023
    websmyth
    Participant

    We’ve been experiencing an email issue on a bbPress forum for a while. The forum is setup to notify all users (around 700) of new topics and replies and uses the bbPress No Spam plugin to handle this.

    We’ve performed lots of troubleshooting and, after having spoken to WPEngine, have narrowed it down to the email causing a timeout on submission of a new topic or reply. The site uses Mailgun which was installed by the previous developer in order to try and tackle this issue, but it looks like the timeout is being triggered before the emails are hooked up to Mailgun so it doesn’t look like changing the Mailgun configuration would solve the issue either.

    WPEngine have suggested that we might need to throttle the email batches from bbPress as that might prevent the timeout. I’ve been searching for a plugin that might do this but I’ve only found generic WordPress mail plugins and it seems this is more bbPress specific.

    Has anyone come across this issue and found a way to resolve it?

    #187020

    In reply to: bbpress performance

    Milan Petrovic
    Participant

    1. That is simply not true. I developed many plugins for bbPress, and I always do extensive benchmarking of bbPress and various plugins, and if you have 25 plugins or if you have 5 plugins, bbPress has the same impact on WP regardless. If two websites add 0.1 seconds slowdown, you can’t blame one of the plugins for what other is doing.

    2. That is completely irrelevant to loading performance. It is possible to merge all files any plugin has into one huge file. A number of files don’t have too much impact on the loading, and it is even recommended to have a lot of smaller files to help with the code organization, improve loading of what is needed when it is needed (for the most part). WordPress loads about 200 files on average for each page request, and even more on the admin side, and I have seen plugins that load 100 or more files. Size of files have more impact on performance, then the number of files. And with modern servers using SSD discs and a lot of memory, files loading is negligible.

    The biggest impact of performance of any plugin has to work with the database in any way (getting posts, filtering). And yes, bbPress up to version 2.5 was not best optimized, and it was on the slower side when dealing with large topics or large forums. Version 2.6 (currently in Beta/RC stage), has significant performance improvements related to database operations, loading posts and processing them.

    PHP has Opcache, and other performance related tools for a reason: PHP is not compiled, it is interpreted, and that is always a slower method for doing things, and PHP needs help to make things faster. It is a good thing to have and use Opcache or Memcached. For instance, my website without Opcache uses 60MB for PHP process on average, with Opcache that goes down to 12MB. WordPress without Opcache uses about 20MB on its own, bbPress adds about 5MB, WooCommerce adds closer to 10MB, BuddyPress around 6-7MB. Huge and complex plugins always need memory to work, you can’t expect to run 25 plugins and keep memory to a zero. That is why we have systems to optimize PHP, we have cache plugins.

    Once the bbPress 2.6 is released, I will do a new benchmark to compare 2.5 to 2.6 and see how much gains are there when using bbPress with a forum having a large number of topics and replies. But, from current testing I am doing with 2.6, it is much faster than last 2.5.

    Milan

    #186986
    theacademicperson
    Participant

    Hi friends,

    I know I’m posting on a topic that was asked many times on this forum before (including my post from the last year).

    There need to be a voting option (upvote and/or downvote) in the forum topics. It is a must to have a functionality to automatically arrange the topics based on voting by viewers.

    Almost all the popular interactive forums on the web contains this feature…Stackexchange, Reddit to name a few. Others have a voting system without any rearrangement of the posts based on it…Google plus, Facebook etc.

    I admit bbPress is a great forum builder on the greatest CMS at this moment (WordPress)…but it (and all forums build on it) lacks this critical feature.

    As I already said this feature is being requested for a very long time, but it wasn’t added on the updates of bbPress.

    So it is my earnest request to please add this feature.

    You can see how many people has been requesting this by just doing a quick search in this forum – https://bbpress.org/forums/search/vote/

    #186979
    Robin W
    Moderator

    which version of bbpress and wordpress?

    #186975
    Fabian
    Participant

    Hi,

    I have bbpress installed with a url prefix, everything is under /forums/. I noticed when I just access my frontpage, the plugin causes a site slow down of ~100ms. I have 25 plugins in total and I compared bbpress page load time with the page load time with the other 24 plugins activated.

    bbpress does not render anything outside /forums/, so 100ms, I’d say even 20ms, CPU time per request is not justified.

    I did a profile of my WordPress setup, which revealed that the main file ‘bbpress.php’ include()s 36 others scripts, takes up to 4MB of memory. Most of the time is waste in the ‘init’ hook, ~40ms.

    Can you please fix this?
    I tried conditional Plugin loading with Plugin Organizer, but it seems to break the rewrite to the /forums/ URL and it just redirects to the frontpage.
    So basically, if the request it not within /forums/, bbpress should only set the rewrites, and this should be done within a couple of milliseconds.

    Thanks!

    #186972
    janallsopp
    Participant

    Hi, I’ve set up the lost password page with shortcode [bbp-lost-pass] but when users click on ‘forgot password’ and fill in the form they aren’t receiving an email with link to create new password.

    Using BBPress Version 2.5.14 and BBP Private Groups Version 3.5.9. Using WordPress 4.8.1. The website is private so I can’t share.

    Thanks in advance.
    J

    #186971
    lhowill
    Participant

    Users are currently unable to sign up for a new account on our bbpress forums now. I’ve double checked this myself, and I’m getting the same problem.

    It tells you that you’ll get a confirmation email, but that email never arrives (not in spam either). I tried doing ‘forgot password’ after attempting to register (but not getting the confirmation email) and that doesn’t work either.

    The only way I’ve successfully been able to create a new account is making an account on wordpress.com, then attempting to login with it on the forums and choosing ‘forgot password’ and getting a password reset email.

    #186967
    jomila
    Participant

    Our customers who have enrolled in a course are entitled to access a few forums in bbPress, but the problem is that even though they can access the forums and see the name of the topics in each forum, they can’t have an access to topics (can’t read, comment etc.). All the settings should be correct and I really don’t know how to proceed next. Only people with the highest admin rights can see the comments under different topics. Is anybody else experiencing the similar problem?

    Wordpress version is 4.8.1 and bbPress Version 2.5.14. We are using Lifter LMS as a online course platform.

    pmatteudi
    Participant

    Hi there,

    I’m writing because I have trouble to understand how templates are managed in BBPress (and wordpress I guess :)).
    I’d like to have a specific template on the main forum page (the one displaying the different forums). And another template for the page displaying the different topics.

    Currently in the wordpress page where I pasted the short code [bbp-forum-index], I call the template bbpress.php, which is presented in the bbpress codex (See example at the end of the topic).

    But how can I create a specific template for my forum index (listing all my forums), for instance “forum-display.php”. And another template, listing my topics (for instance “topic-display.php”).

    Maybe my file bbpress.php is not appropriate to do so ? or need to be customized a bit ?

    NB : I’m using twenty twelve theme

    I hope my question is clear,
    Thank you for your help,
    Pierre

    <?php
     
    /*
    Template Name: index-forum
    */
     
    get_header(); ?>
      
    <div id="primary" class="site-content">
     
    		<div id="content-forum" role="main">
    	 
    	 
    		<?php
    		/*
    		Start the Loop
    		*/
    		
    		while ( have_posts() ) : the_post(); ?>
    		 
    		 
    		<?php
    		/*
    		This is the start of the page and also the insertion of the post classes.
    		 
    		Post classes are very handy to style your forums.
    		*/
    		?>
    		 
    			<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    			<?php
    			/*
    			This is the title wrapped in a header tag
    			and a class to better style the title for your theme
    			*/
    			?>
    		 
    			<header class="entry-header">
    			 
    			<h1 class="entry-title"><?php the_title(); ?></h1>
    			 
    			</header>
    			 
    			 
    			<?php
    			/*
    			This is the content wrapped in a div
    			and class to better style the content
    			*/
    			?>
    		 
    			<div class="entry-content">
    			<?php the_content(); ?>
    			</div>
    			 
    			<!-- .entry-content -->
    			 	 
    			</article>
    			 
    			<!-- #post -->
    			<?php endwhile; // end of the loop. ?>
    		 
    		</div>
    	 	<!-- #content -->
    	 	
    	 	<div class="login-sidebar"><?php dynamic_sidebar('forum_login_zone');?></div>
    
    </div> 
    	<!-- #primary -->
      
    <?php
    /*
    This is code to display the sidebar and the footer.
    Remove the sidebar code to get full-width forums.
    This would also need CSS to make it actually full width.
    */
    ?>
    		 
    <?php get_footer(); ?>
    #186958
    Divvy
    Participant

    Hello guys,

    I’m migrating from vbulletin to wordpress.
    In vbulletin, I have a feature showing under user avatar, that shows a image “My photos”, and when someone clicks there, goes to a list of topics created by the user in forums ID X and Y.
    If no topics created there, the image “My photos” doesn’t show.

    Is it possible to do this with bbpress?
    Can someone give me a little help?

    Thank you in advance 🙂

    #186956
    u_Oi
    Participant

    Check out this plugin

    bbP Toolkit

    Regards,

    #186953
    Pascal Casier
    Moderator

    For anybody arriving on this topic and looking for the same solution, the plugin can be found on https://wordpress.org/plugins/bbp-post-first/

    If it serves, leave a review!

    Thanks.

    #186945

    In reply to: Free BBPress Theme

    Robin W
    Moderator

    bbpress just uses much of your theme’s style

    additionally you can use

    bbp style pack

    to improve it’s look

    #186944
    Robin W
    Moderator

    you set the default role in dashboard>settings>forums and when the users first log in the will get it allocated.

    or go to

    Dashboard>users>and amend their profile

    or if you want to do it programmatically or directly in the database, then in usermeta you additionally set

    wp_capabilities which already has their wordpress role, so you just add it to the array

    to say

    a:2:{s:13:”administrator”;s:1:”1″;s:13:”bbp_keymaster”;b:1;}

    a:2:{s:10:”subscriber”;b:1;s:15:”bbp_participant”;b:1;}

    a:2:{s:6:”editor”;b:1;s:13:”bbp_moderator”;b:1;}

    #186940
    shradheya14
    Participant

    Hi,

    I have installed bb press plugin on my WordPress website, Now I am getting users by post method from some URL and I want to add those users in DB and provide them Participant as User role.
    So far I have tried many things but was unsuccessful, can you please help me out as it is getting pain in my head now.

    Thanks,
    Shradheya

    #186930
    Syxguns
    Participant

    WordPress 4.8.1
    bbPress 2.5.14
    Running PHP v.7.1
    https://idwph.com/sitemap_index.xml

    I currently have bbPress disabled and now my sitemap works. I didn’t have this problem with the last version. I will search for it to install it again.

    Edit:
    Nope, just installed 2.5.13 and still have a sitemap error. Is there a place to get an even older version or do I just need to go with mybb?

    #186929
    Robin W
    Moderator

    there is a free version of this

    bbPress Digest

    #186923
    Kona Macphee
    Participant

    Hi guys,

    More than two years ago I posted the following bug report:

    Ajax validation issue for user auto-complete

    A ticket was opened for this bug here:
    https://bbpress.trac.wordpress.org/ticket/2864

    The issue was marked as fixed and the bug closed; however, the bug is not actually fixed and is still present in the most recent release.

    Here are the original details:

    Context:

    On the “Edit Topic” screen, there’s an “Author Information” box including an ID field. When you begin to type text into this box, the admin-ajax action “bbp_suggest_user” should auto-suggest potentially matching users.

    Issue:
    The user autosuggest is not returning any users, just “-1”. Having dug into the code, the step that’s failing is wp_verify_nonce() in check_ajax_referrer(), which is invoked on line 745 of bbPress file includes/admin/admin.php. The nonce is making it into wp_verify_nonce, but is not matching any expected/acceptable value – so wp_verify_nonce falls out the bottom with a failure.

    If I remove the check_ajax_referrer step, the Edit Topic user auto-suggestion works perfectly so it’s definitely the nonce validation step that’s the problem.

    Current context in which I’m still seeing the bug is WP 4.8.1 Multisite, bbPress 2.5.14, PHP 7.0.22. (I’ve been seeing the bug for over 2 years though, including with PHP 5.x).

    Would be really grateful if this bug could be fixed in the next release, because I’m having to manually patch every release at the moment (I have a user whose job relies on this function working properly.)

    Thanks!

    #186907

    In reply to: PHP Fatal Error

    Vinod Dalvi
    Participant

    Sorry to hear of the problem you are having.

    It is working fine on my test site without any issue.

    Could you please try fixing the issue as described in the following pages?

    https://codex.wordpress.org/Common_WordPress_Errors#Maximum_execution_time_exceeded
    http://kb.wpbeaverbuilder.com/article/37-how-to-increase-the-wordpress-allowed-memory-size
    http://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/

    You can also try using the below upcoming version 2.6 of bbPress.

    https://downloads.wordpress.org/plugin/bbpress.2.6-rc-3.zip

    #186890

    Just pushed RC 5 to WordPress.org.

    Hoping this is the last one. <3

    #186860

    In reply to: Fatal Error

    Robin W
    Moderator

    you/something/someone/glitch/gremlins/corruption/permissions has stopped the file being there/seen.

    Suggest you contact your host provider to restore back to an earlier version.

    If you have ftp access, you could fix it that way, by renaming the bbpress plugin to say plugin-old which will stop wordpress using it and get you site back and working. You can then delete the bbpress plugin directory and re-install bbpress from the front end

Viewing 25 results - 4,176 through 4,200 (of 26,877 total)
Skip to toolbar