Giter Site home page Giter Site logo

bp-better-directories's People

Contributors

boonebgorges avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bp-better-directories's Issues

Fix for new $wbdb->prepare syntax

Here is the code to keep the plugin working with the new prepare syntax.

bpbd.php line 118 - 120

$bpbd_select[] = $wpdb->prepare( ", {$table_shortname}.value as %s", $field['slug']);

$bpbd_from[] = $wpdb->prepare( "INNER JOIN {$bp->profile->table_name_data} {$table_shortname} ON ($table_shortname.user_id = u.ID)", "");

bpbd.php line 137

$bpbd_where[] = $wpdb->prepare( "AND {$table_shortname}.field_id = %d AND ($where)",  $field['id']);

Feature request, not an issue

I've been playing around with the code for a few days now, but got a little stuck trying to mod it for taxonomy terms.

Request:
Do you possibly have any plans on releasing a vs that would work for regular WordPress taxonomy terms when viewing a post-type archive?

Scenario:
I have a 'movie' post type with taxonomies 'actor, genre, directors, etc'.

Having the ability to place taxonomy list term widgets into sidebar that would sort the archive-movie.php archive page just like this code does for bp directories.

That's kinda be the 'holy grail' of sorting that I've been attempting on and off again for months. Hoping the idea is cool enough to warrant a new plugin someday :)

*I have an enormous non-wp photogallery that I was hoping to bring into WordPress someday, but was waiting until I can figure out how to allow the user to sort the photos easily. This would be the coolest way that I can imagine.

thanks

Updating to BP 2+ (filter not being applied)

Hiya Boone,

I've been trying to update this plugin for use with more recent version of BuddyPress. I've made a few changes to the javascript is enqueued:

    function enqueue_scripts() {
        if ( bp_is_directory() && bp_is_members_component() ) {
            wp_enqueue_script( 'jquery-loadmask', BPBD_INSTALL_URL . '/includes/lib/jquery.loadmask/jquery.loadmask.min.js', array( 'jquery' ) );
            wp_enqueue_script( 'bpbd-js', BPBD_INSTALL_URL . '/includes/js/bpbd.js', array( 'bp-legacy-js', 'jquery-loadmask') );
        }

and made the BPBD.js less specific (replacing #content with #buddypress).

But I've not been able to get the filtering to work. I think it's because the search terms are not being passed/applied to the Ajax query. The following error is being given:

On line 277 the following error occurs
Uncaught TypeError: Cannot read property 'get' of undefined

  if (jq.query.get('s') && !search_terms)
    search_terms = jq.query.get('s');

I think it has something to do with the SQL filter being applied. But I can't be sure.

https://github.com/boonebgorges/bp-better-directories/blob/master/bpbd.php#L104

It would be cool to get this working but if not, I'll use BP Profile Search plugin :-)

Can't clear checkboxes

Hi there.

Just installed your plugin on Wordpress 3.4.2 and BuddyPress 1.6.1.

The thing is that i can't clear the checkboxes again to show all of the users?
Do you have a quickfix?

error

HI Boone,

i'm getting this error when activate

Warning: Invalid argument supplied for foreach() in /home/.######public_html/wp-content/plugins/bp-better-directories/includes/admin.php on line 42

Cheers,

Dennis

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.