outcold
Forum Replies Created
-
Forum: Plugins
In reply to: [Purchase Orders for WooCommerce] Change Zip to Post CodeI have the same issue, where can I find this option? Please and thank you
Forum: Plugins
In reply to: [BP Profile Search] Filtering Buddypress Widgets by GenderThank you SOOOOOOOOO much. I’d have never sorted that out on my own. Either the ‘bp_pre_user_query_construct’ or the ‘bp_pre_user_query’ action work for my purposes. I’m going to have to do a little testing and research to figure out which is the better choice but for now my widgets show Men for Women and visa versa. Here’s my current code running out of my theme’s functions.php I hope it’s of use to anyone else tackling this issue.
class BP_Custom_User_Ids { private $custom_ids = array(); public function __construct() { $this->custom_ids = $this->get_custom_ids(); add_action( 'bp_pre_user_query_construct', array( $this, 'custom_members_query' ), 1, 1 ); add_filter( 'bp_get_total_member_count', array( $this, 'custom_members_count' ), 1, 1 ); } private function get_custom_ids() { global $wpdb; // figure out if the logged-in user is male or female // CHANGE FIELD id "3" BELOW $sex = xprofile_get_field_data( 3, bp_loggedin_user_id() ); if ( $sex == 'Male' ) // CHANGE FIELD id "3" BELOW $query = "SELECT user_id FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 3 AND value = 'Male'"; else // CHANGE FIELD id "3" BELOW $query = "SELECT user_id FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 3 AND value = 'Female'"; $custom_ids = $wpdb->get_col( $query ); return $custom_ids; } function custom_members_query( $query_array ) { $query_array->query_vars['include'] = $this->custom_ids; } function custom_members_count ( $count ) { $new_count = count( $this->custom_ids ); return $new_count; } } function custom_user_ids( ) { // Don't do this for the admin if(!current_user_can('administrator') ) { new BP_Custom_User_Ids (); } } // WORKS FOR DIRECTORY NOT WIDGETS // add_action( 'bp_before_directory_members', 'custom_user_ids' ); // EITHER OF THESE WORKS FOR WIDGETS BUT NOT DIRESCTORY // add_action( 'bp_pre_user_query_construct', 'custom_user_ids' ); add_action( 'bp_pre_user_query', 'custom_user_ids' );
Forum: Plugins
In reply to: [BP Profile Shortcodes Extra] Calling shortcodes using PHPThis
echo do_shortcode( "[bpps_profile_private_message_link user_id=\"$myuser_id\"]" ); ?>
works but would still like to know if it’s possible to call the shortcodes directly from within php.Thanks ??
Forum: Plugins
In reply to: [BuddyPress Docs] Changin Categories to GenresOK, turns out it’s not the Mac, it’s simply only the admin that can change click on the click check boxes.
Forum: Plugins
In reply to: [BuddyPress Docs] Changin Categories to GenresThis worked beautifully but I have encountered a weird issue. Anyone trying to create or edit a document using an Apple device can’t click on the check boxes created for the new category field “Genres”. It works fine on a PC. We tried using Safari, FireFox, and Crome on a Mac, Iphone, and Ipad with the same result. If I copy the box markup and manually add it to the template file it works on the Mac. The issue is therefore to be found somewhere in ‘bp_docs_before_assoc_groups_meta_box’. The problem is, as with so many of these actions, I can never figure out where they’re defined/constructed.
do_action( 'bp_docs_before_assoc_groups_meta_box', $doc_id );
Thanks again for this great plugin.
Marek
Forum: Plugins
In reply to: [BuddyPress Docs] Changin Categories to GenresWOW !!! Thanks for that beyond awesome solution. That was the perfect solution to my issue!
Thanks sooooooo much
Marek
Forum: Plugins
In reply to: [BuddyPress Docs] New & Edited Docs Post Status to PendingThanks for the quick response and also for this awesome plugin. My PHP is more than a little rusty, can you tell me which file I should add “hook to ‘bp_docs_post_args_before_save’?
Not looking to allow public access. I just want to retain a high measure of control over what’s posted.
Thanks Again
Marek
Forum: Plugins
In reply to: [10Web Map Builder for Google Maps] Map shows than quickly dissapearsI too was fighting with this and in the end discovered something interesting. When you copy the API key from google it has a space before the key so when you paste it into the box it keeps giving you an error. Once I removed the space everything started working again as it should.
Thank you, and thanks for the awesome plugin.
Forum: Plugins
In reply to: [A-Z Listing] TRAFFIC THEFTThanks for understanding. The other error I made was overwriting the plugin and not keeping a copy of the hacked version, which might have shed some light on exactly what they’d done to it. I’ve since discovered other malware in other parts of my WP install, so it wasn’t just your plugin. I think I’ve removed all of it now, but I still don’t know how they got in in the first place which makes leaves me not knowing if they’ll come back and do this all over again.
Thanks again.
Forum: Plugins
In reply to: [A-Z Listing] TRAFFIC THEFTMy most sincere apologies. It turns out a hacker had attached malware to this plugin making it appear that the plugin was at fault. In my anger at discovering this I jumped to the erroneous conclusion that the plugin was at fault. Re-installing the plugin immediately resolved this issue, but of course I then discovered malware elsewhere on the site and on the server. I’ve spent the last 3 days attempting to rid myself of it. Thank you of this great plugin. I once again apologize for this thread. I wish there was a way to modify or delete it.
Thanks so much. That worked like a charm ??
Yes, and it works fine (the sidebar shows). However I’d really rather not use Seamless mode. When I look at the template file (better-search-template.php) I see a call for get_sidebar(); but no sidebar?
Forum: Plugins
In reply to: [YITH Infinite Scrolling] Product Links not working with Infinite ScrollingForum: Plugins
In reply to: [YITH Infinite Scrolling] Product Links not working with Infinite ScrollingSomeone please help. I love this plugin but it’s useless without working product links. I will have to live without it if I don’t get some help on this topic.