Colin M Tomele
Forum Replies Created
-
Forum: Plugins
In reply to: [Book a Room] Mysql errorThere are a bunch of updates I need to do, but since we’re no longer using this at work, I am no longer able to maintain or update things at work, so I am trying to get ownership of the source and will update things soon in my free time.
Forum: Plugins
In reply to: [Book a Room] Mysql errorCan you copy and paste the error for me?
Forum: Developing with WordPress
In reply to: Trying to get property ‘public’ of non-objectI figured it out.
I changed the name of my “available” custom status to “item_available”.
Forum: Developing with WordPress
In reply to: Shared Taxonomy, hide admin links in oneThat did it. Easy and works a charm. Thank you!
global $submenu; unset( $submenu['edit.php?post_type=lendingq_hold'][15] ); unset( $submenu['edit.php?post_type=lendingq_hold'][16] );
Forum: Developing with WordPress
In reply to: Shared Taxonomy, hide admin links in oneThank you! Looking up more about that and I think that trying filtering out from the global $submenu might be my next move.
Forum: Developing with WordPress
In reply to: Shared Taxonomy, hide admin links in oneAlso, my goal isn’t to stop anyone from accessing them, I’m just trying to get them to display in only one place, but I need to make sure I’m sharing the two taxonomies across my two post types.
I have a post type that is a lending, and another that is an item.
I have 2 taxonomies: location and item type.
I’d really only like the taxonomy edit-tags.php links to show up for one of the custom post types.
If I hide them, can I add_submenu_page and just call the now hidden link instead of a callback function?
Forum: Developing with WordPress
In reply to: Shared Taxonomy, hide admin links in oneThanks! I need them to show on at least one of the taxonomies, I’d just prefer one instead of both. It’s not the biggest issue but it’s bugging me.
I have tested and was able to remove all other links except the two custom taxonomies, under both custom post types. That part works.
When I try removing the custom taxonomies, nothing happens. Nothing I’ve done has worked: I’ve tried changing the order of things and moved things around, different priorities, and lots of different slugs and links in all varieties and flavors.
If I make them hidden in menu, is there an action I call if I want to manually add them back in to one custom post type?
Forum: Developing with WordPress
In reply to: Shared Taxonomy, hide admin links in oneThis doesn’t work for either taxonomy, but it does for the default All and Add that WordPress creates.
remove_submenu_page( 'edit.php?post_type=lendingq_hold', 'edit-tags.php?taxonomy=lendingq_location&post_type=lendingq_hold' );
BUt this works:
remove_submenu_page( 'edit.php?post_type=lendingq_hold', 'post-new.php?post_type=lendingq_hold' );
Forum: Developing with WordPress
In reply to: Custom Taxonomies throwing errorOMG, this did it, you ROCK.
'meta_box_cb' => 'post_categories_meta_box',
Forum: Developing with WordPress
In reply to: Custom Taxonomies throwing errorThanks! I’m actually asking for these values from a form in the meta box, but I need figure out how to change a custom post’s custom taxonomies. XD
Thank you.
Forum: Developing with WordPress
In reply to: Custom Taxonomies throwing errorAlso:
function meta_box_display( $post ) { require( LENDINGQ_PATH . '/template_post.php' ); } # END function meta_box_display( $post )
Is just my meta box form, with nothing related to the taxonomies.
Forum: Developing with WordPress
In reply to: Custom Taxonomies throwing errorHere’s the setup:
add_action( 'add_meta_boxes', array( $this, 'meta_box_add' ) );
function meta_box_add() { add_meta_box( 'lendingq_meta', __( 'LendingQ Lending Form', 'lendingq' ), array( $this, 'meta_box_display' ), 'lendingq_item', 'normal', 'high' ); } # END function meta_box_add()
And the custom setup:
function post_setup_custom() { register_post_type( 'lendingq_item', array( 'labels' => array( 'name' => __( 'All Lendings', 'lendingq' ), 'singular_name' => __( 'Lending List', 'lendingq' ), 'menu_name' => __( 'LendingQ', 'lendingq' ), 'name_admin_bar' => __( 'LendingQ Lending', 'lendingq' ), 'add_new' => __( 'New Lending', 'lendingq' ), 'add_new_item' => __( 'Add a new Lending', 'lendingq' ), 'new_item' => __( 'New Lending', 'lendingq' ), 'edit_item' => __( 'Edit Lending', 'lendingq' ), 'view_item' => __( 'View Lending', 'lendingq' ), 'all_items' => __( 'All Lendings', 'lendingq' ), 'search_items' => __( 'Search Lendings', 'lendingq' ), 'parent_item_colon' => __( 'Parent Lending:', 'lendingq' ), 'not_found' => __( 'No lendings found', 'lendingq' ), 'not_found_in_trash' => __( 'No lendings found in trash', 'lendingq' ), 'insert_into_item' => __( 'Insert into lending', 'lendingq' ), 'uploaded_to_this_item' => __( 'Uploaded to this lending', 'lendingq' ), 'filter_items_list' => __( 'Filter lendings list', 'lendingq' ), 'items_list_navigation' => __( 'Lendings list navigation', 'lendingq' ), 'items_list' => __( 'Lendings list', 'lendingq' ), ), 'menu_icon' => 'dashicons-controls-repeat', 'public' => true, 'has_archive' => true, 'supports' => array( null ), 'rewrite' => array( 'slug' => 'lendingq' ), ) ); register_post_status( 'waiting_list', array( 'label' => _x( 'Waiting List', 'post status label', 'plugin-domain' ), 'public' => true, 'label_count' => _n_noop( 'Waiting List <span class="count">(%s)</span>', 'Waiting List <span class="count">(%s)</span>', 'plugin-domain' ), 'post_type' => 'lendingq_item', 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, 'show_in_metabox_dropdown' => true, 'show_in_inline_dropdown' => true, 'dashicon' => 'dashicons-yes', ) ); register_post_status( 'checked_out', array( 'label' => _x( 'Checked Out', 'post' ), 'public' => true, 'exclude_from_search' => false, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, 'label_count' => _n_noop( 'Checked Out (%s)', 'Checked Out (%s)' ), ) ); register_taxonomy( 'lendingq_location', 'lendingq_item', array( 'labels' => array( 'name' => _x( 'Locations', 'Taxonomy General Name', 'text_domain' ), 'singular_name' => _x( 'LendingQ Locations', 'Taxonomy Singular Name', 'text_domain' ), 'menu_name' => __( 'Locations', 'text_domain' ), 'all_items' => __( 'All Locations', 'text_domain' ), 'parent_item' => __( 'Parent Location', 'text_domain' ), 'parent_item_colon' => __( 'Parent Location:', 'text_domain' ), 'new_item_name' => __( 'New Location Name', 'text_domain' ), 'add_new_item' => __( 'Add New Location', 'text_domain' ), 'edit_item' => __( 'Edit Location', 'text_domain' ), 'edit_item' => __( 'Edit Location', 'text_domain' ), 'update_item' => __( 'Update Location', 'text_domain' ), 'view_item' => __( 'View Location', 'text_domain' ), 'separate_items_with_commas' => __( 'Separate items with commas', 'text_domain' ), 'add_or_remove_items' => __( 'Add or remove items', 'text_domain' ), 'choose_from_most_used' => __( 'Choose from the most used', 'text_domain' ), 'popular_items' => __( 'Popular Locations', 'text_domain' ), 'search_items' => __( 'Search Locations', 'text_domain' ), 'not_found' => __( 'Not Found', 'text_domain' ), 'no_terms' => __( 'No items', 'text_domain' ), 'items_list' => __( 'Locations list', 'text_domain' ), 'items_list_navigation' => __( 'Locations list navigation', 'text_domain' ), ), 'rewrite' => array( 'slug' => 'lendingq_location' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_quick_edit' => false, 'meta_box_cb' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, ) ); register_taxonomy( 'lendingq_item_type', array( 'lendingq_item' ), array( 'labels' => array( 'name' => _x( 'Item Types', 'Taxonomy General Name', 'text_domain' ), 'singular_name' => _x( 'LendingQ Item Types', 'Taxonomy Singular Name', 'text_domain' ), 'menu_name' => __( 'Item Types', 'text_domain' ), 'all_items' => __( 'All Types', 'text_domain' ), 'parent_item' => __( 'Parent Item', 'text_domain' ), 'parent_item_colon' => __( 'Parent Item:', 'text_domain' ), 'new_item_name' => __( 'New Item Name', 'text_domain' ), 'add_new_item' => __( 'Add New Location', 'text_domain' ), 'edit_item' => __( 'Edit Item', 'text_domain' ), 'update_item' => __( 'Update Item', 'text_domain' ), 'view_item' => __( 'View Item', 'text_domain' ), 'separate_items_with_commas' => __( 'Separate items with commas', 'text_domain' ), 'add_or_remove_items' => __( 'Add or remove items', 'text_domain' ), 'choose_from_most_used' => __( 'Choose from the most used', 'text_domain' ), 'popular_items' => __( 'Popular Items', 'text_domain' ), 'search_items' => __( 'Search Items', 'text_domain' ), 'not_found' => __( 'Not Found', 'text_domain' ), 'no_terms' => __( 'No items', 'text_domain' ), 'items_list' => __( 'Items list', 'text_domain' ), 'items_list_navigation' => __( 'Items list navigation', 'text_domain' ), ), 'rewrite' => array( 'slug' => 'lendingq_item_type' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_quick_edit' => false, 'meta_box_cb' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, ) ); } # END function post_setup_custom()
Forum: Plugins
In reply to: [Book a Room] Track Attendance by Age GroupI have some SQL I’ve written for our own reporting using the Export and Reports plugin by Scott Kingsley Clark.
For instance, this MySQL call will return the event count and attendance by branch.
I could probably come up with one that uses age groups.
- This reply was modified 8 years, 5 months ago by Colin M Tomele.
- This reply was modified 8 years, 5 months ago by Colin M Tomele.
I can’t say at the moment. I have some things coming up that aren’t part of BaR that I need to finish, then I will be tackling credit card processing and translations. I also want to merge the two plugins (the main one and the event calendar). When I do the merge, I will also be working on a lot of little fixes and additions, like this. I think this is something that is a little ways out.
Forum: Plugins
In reply to: [Book a Room] Change Currency?At the moment, there is not, but I am working on making the entire plugin translatable