Coder Social home page Coder Social logo

bbpress-genesis-extend's People

Contributors

jaredatch avatar nathanrice avatar norcross avatar wpsmith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bbpress-genesis-extend's Issues

Enhancement: Remove Layout Options from user profile edit page.

Since the layout options throw an error on the user profile edit page, it may be a good enhancement to deal with at least that in bbPress Genesis Extend.

if ( bbp_is_single_user_edit() ) {
     remove_action( 'show_user_profile', 'genesis_user_options_fields' );
     remove_action( 'show_user_profile', 'genesis_user_layout_fields' );
     remove_action( 'show_user_profile', 'genesis_user_seo_fields' );
     remove_action( 'show_user_profile', 'genesis_user_archive_fields' );
}

Hosting company is saying BBP_Genesis::load_genesis_forum_sidebar is causing long queries

Hosting company is saying the below. When I look at the load_genesis_forum_sidebar I do not see how it would be running this query. Is there something there that I am missing?

Query:

SELECT wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) WHERE ?=? AND ( ( wp_postmeta.meta_key = ? AND CAST(wp_postmeta.meta_value AS SIGNED) NOT IN (?, ?, ?, ?) )) AND wp_posts.post_type = ? AND ((wp_posts.post_status = ? OR wp_posts.post_status = ?)) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT ?, ? ?
Obfuscated query SELECT wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) WHERE ?=? AND ( ( wp_postmeta.meta_key = ? AND CAST(wp_postmeta.meta_value AS SIGNED) NOT IN (?, ?, ?, ?) )) AND wp_posts.post_type = ? AND ((wp_posts.post_status = ? OR wp_posts.post_status = ?)) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT ?, ? ?

this is stemming from

wp-content/plugins/bbpress-genesis-extend/
bbpress-genesis-extend.php (Line 210)
in BBP_Genesis::load_genesis_forum_sidebar

Remove Genesis profile fields from front end profile edit screen

Forum users with access to Genesis edit settings in their profiles (ie Administrators) see the following display issue when editing their profiles on the front end.
2014-10-06 13-39-27

To prevent this, they can be removed unless viewing in the admin profile:

add_action( 'bbp_ready', 'bbp_genesis_extend_disable_genesis_profile_fields_in_forum_user_edit' );
function bbp_genesis_extend_disable_genesis_profile_fields_in_forum_user_edit(){

    if( ! is_admin() ) {
        remove_action( 'show_user_profile', 'genesis_user_options_fields' );
        remove_action( 'edit_user_profile', 'genesis_user_options_fields' );
        remove_action( 'show_user_profile', 'genesis_user_archive_fields' );
        remove_action( 'edit_user_profile', 'genesis_user_archive_fields' );
        remove_action( 'show_user_profile', 'genesis_user_seo_fields' );
        remove_action( 'edit_user_profile', 'genesis_user_seo_fields' );
        remove_action( 'show_user_profile', 'genesis_user_layout_fields' );
        remove_action( 'edit_user_profile', 'genesis_user_layout_fields' );
    }

}

Consider genesis_init instead of after_setup_theme

Jared, have you thought about using the genesis_init hook instead of the after_setup_theme hook in your init class? This has a couple of advantages. First, I've run into weird issues where from time to time the template is Genesis but I get a white screen because genesis_get_option() is not found. It seems that in very weird cases the logic that loads certain files doesn't seem to complete. Most recently this happened to me when doing a WP update. It isn't super common and seems to rely on several factors but it is kind of annoying when it happens. Using genesis_init should bypass that.

Also, using genesis_init means that you don't have to check the template constant to see if it is Genesis. That will ever so slightly simplify the code.

I'm getting an infinite loop in the site_layout filter

This may be from a combination of plugins or from using some bleeding edge code but bbPress was crashing to an out of memory error for me and no matter how much memory I opened up it happened. I was able to narrow it down to bbPress Genesis Connect and then from there to the site_layout option filter.

It looks like you are checking the original site_layout value and that is causing the filter to keep running recursively. A flag can be added to the class to verify the filter only completes once.

Genesis + Dynamik

bbpress Genesis Extend hasn't been updated in 4 years.

I've had little success getting bbpress to work correctly with Genesis + Dynamik Website Builder. Mostly to do with permalinks and forum account page not working or displaying correctly.

Is this plugin still viable/needed? Any advice on Dynamik + bbpress?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.