Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 4,901 through 4,925 (of 32,522 total)
  • Author
    Search Results
  • #187028
    Kutakizukari
    Participant
    .bbpress ARTICLE
    {
    	width: auto;
    }
    #187027
    MakarkinPRO
    Participant

    If I’m on the right way. Does anybody have help with the code in functions.php
    its should like:

    1) Change user role from Subcriber to PaidSubscriber if status is “Active” https://www.screencast.com/t/oAFwrSQVjMy for specific user.

    2) Change user role from PaidSubscriber to Subcriberif status is “Decline”, but if he have not any other orders which is “Active”. Becouse user may buy a 1 month subscription, and the continue it before 5 days before last one is end.

    Ok? anybody may help? )

    #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

    #187006
    Robin W
    Moderator

    can I just confirm that this happens then with both the bbpress shortcode [bbp-lost-pass] AND with the wp-admin lost password ?

    #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

    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(); ?>
    #186939
    acpscommunications
    Participant

    Still looking for a solution on how to use a forum name shortcode with our email to subscribers

    #186927
    Robin W
    Moderator

    ok, so you create a page and use shortcodes to achieve this

    Shortcodes

    eg

    [bbp-topic-index]
    [bbp-forum-index]

    #186928
    Robin W
    Moderator

    ok, so you create a page and use shortcodes to achieve this

    Shortcodes

    eg

    [bbp-topic-index]
    [bbp-forum-index]

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

    #186922
    Vishnja1
    Participant

    Hello! I have the same situation.
    There isn’t a problem to add link to user profile navigation. But the problem is to ‘register’ that page in such way, that it contents would render properly under ‘base_url/forums/users/someuser/your-custom-page/’ url. bbPress allows to see other user’s profile info too.
    I also couldn’t not find any guide how to do this or find it in plugin code. But if that page will be private (only for one user, like ‘Edit profile’ which disappears on others user acc pages) there is a workaround.
    You can create page template, copy ‘single-user.php’ contents to it and create page for this template in admin. Then add a link in profile page. Also you should add filters to ‘bbp_get_user_id’ and ‘bbp_get_displayed_user_field’ to make everything work correctly on that page. (I can provide code if you’re interested).

    #186909
    Robin W
    Moderator

    I’d ask them if memberpress is integrated with bbpress

    did you ask them the question above?

    ie is their plugin is integrated with bbpress and should be doing this, but it isn’t in your case, or if they haven’t integrated with bbpress, in which case it is not really up to bbpress to make sure there software works with paid plugins, so you would need someone to write the code that hooks to the memberpress cancellation to cancel the user subscriptions.

    PS I’m kinda interested that cancelling membership leaves the user still set up and able to access your site? Do they still show in dashboard>users?

    oh, and what version of bbpress are you using?

    #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

    #186906
    Vinod Dalvi
    Participant

    @lovechard Please understand that the bbPress provides functionality to users to subscribe/unsubscribe to topics from topics page but memberpress is restricting them to access topic page so they don’t have access to the page to unsubscribe to the topics.

    Here memberpress is changing the bbPress default process so in this case on cancelling the membership the memberpress should also unsubscribe users from all topics.

    The code in the following plugin will help memberpress to develop this functionality.

    https://github.com/tharsheblows/mjj-bbp-subscription

    #186900
    Stephen Edgar
    Keymaster

    Hmmmm….

    Could you try logging into https://codex.bbpress.org/wp-login.php before opening the email link, see if that works please?

    #186891
    clearscope
    Participant

    We have encountered a bug whereby when multiple forums are placed on a page, using the [bbp-single-forum id=##] shortcode, the HTML buttons do not appear for all but the 1st forum. The class=”quicktags-toolbar” div still appears in the source code, but it is empty (the HTML input buttons do not appear within the source HTML).

    This issue has been confirmed on multiple installs, with all plugins disabled and using the default WP theme.

    Here is a screenshot example: https://imgur.com/rqPiXa6

    #186884
    Robin W
    Moderator

    so what code are you using to pull the feed?

    #186881
    acpscommunications
    Participant

    This plugin does still work but apparently has no shortcode support for forum so still does not give me any way to adjust the subject line to start with which forum it’s coming from.

    #186869

    In reply to: bbp_after_main_content

    Robin W
    Moderator

    can you post your code please

    #186855

    In reply to: bbp_after_main_content

    Robin W
    Moderator

    which is back to my earlier post

    add_action( 'bbp_template_after_forums_index' ,'after_content_hook');
    

    There is </div> after this, but if you start you code with a close div and open a fresh one, then the one at the start of this sentence will then close yours

    #186840
    nwbus
    Participant

    Reply from MailChimp Support – I would agree this is a bbPress issue to address..

    “Thanks for contacting us here in Support. I can certainly understand the concern there, and I’m happy to help out in any way I can.

    In your forum post you mentioned that there is no issue when bbPress is not enabled. Based on that information, the issue seems to be related to a plugin conflict rather than an issue with pulling the RSS feed on our end. I recommend contacting bbPress’ support folks to see if they’re able to shed some light on how enabling the plugin will impact the feed. If not, I recommend trying out another plugin that would allow you to add a forum to your site. It’s possible that another plugin would not have this issue. ”

    I replied asking them if they were sure they were not going to help and they came back to me and said:

    “First, I’d like to clarify how MailChimp interacts with RSS feeds. When using an RSS campaign, MailChimp will pull the RSS feed shortly before the campaign’s scheduled sending time. The RSS merge tags pull content from the XML code for the RSS feed. The app cannot alter the appearance of the content in the feed. It will only display what appears in the code. If you’re not able to disable the plugin, it may be a good idea to consider another feed host to generate a URL that can be used in MailChimp.

    While we’re happy to troubleshoot however we can, we’re limited in our support of third party systems. The bbPress plugin is not developed WordPress, but by bbPress Community. They’ll be the best resource on how to troubleshoot any plugin conflicts between bbPress and the site.

    Please don’t hesitate to write back in if there is anything else I can help with, and I’ll be sure to keep an eye out for any replies.”

    The ball is in your court bbPress – can anyone help me please?

    #186837
    Robin W
    Moderator

    Try this

    a.bbp-fourm-link {
    color: #e4e4e4;
        background: #232323;
        padding: 1px 2px;
        margin: 2px 2px;
        line-height: 1.7;
        border-radius: 3px;
    }
    #186808

    In reply to: bbp_after_main_content

    Robin W
    Moderator

    in index, then

    add_action( 'bbp_template_before_forums_index' ,'after_content_hook');

    #186807
    Robin W
    Moderator

    untried, but try adding this to your functions file

    add_filter ('bbp_before_filter_anonymous_post_data_parse_args' , 'rew_remove_mail' ) ;
    
    function rew_remove_mail ($args) {
    	$args ['bbp_anonymous_email'] = true ;
    return $args ;
    }
    #186805
    denrocs
    Participant

    Hi all

    I’m using the ‘Kleo’ WordPress theme on WordPress 4.7.5 and BBPress 2.5.13, and am trying to change the standard links to forums in BBPress as they are too difficult to read currently, specifically the ‘bbp-forum-link’ class.

    What I’m trying to achieve is a background highlight on each link, with rounded corners, plus a little extra space between them using the following code:

    color: #e4e4e4;
        background: #232323;
        padding: 1px 2px;
        margin: 2px 2px;
        line-height: 1.7;
        border-radius: 3px;

    I have also put this image together of what I’m trying – https://imgur.com/OKO9pZ8

    How would I put this code into the custom style.css file of Kleo to stylise these links, please?

    No link to site as it is on my local host (MAMP PRO 4 if that helps)

    Many thanks

Viewing 25 results - 4,901 through 4,925 (of 32,522 total)
Skip to toolbar