boonebgorges / bp-better-directories Goto Github PK
View Code? Open in Web Editor NEWFancy schmancy BuddyPress directories
Fancy schmancy BuddyPress directories
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']);
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
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 :-)
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?
Matters for things like 'City College' matching NYCCT
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.