dyordan1
Forum Replies Created
-
Forum: Plugins
In reply to: [WP FullCalendar] Shortcode filter by tag?Yeah, I traced it down to the em-wpfc.php file, line 149. The line for tag is obviously different from the line for category on 148. Don’t know if that’s intentional. Simply marrying them together fixes the issue:
if( isset($_REQUEST[EM_TAXONOMY_TAG]) || empty($_REQUEST['tag']) ) $_REQUEST['tag'] = !empty($_REQUEST[EM_TAXONOMY_TAG]) ? $_REQUEST[EM_TAXONOMY_TAG]:false;
Also, worth noting, if you try to use the shortcode as
[fullcalendar event-tags="tag_slug"]
or[fullcalendar event-categories="1,4"]
in the $_REQUEST array you get 0 => “event-tags=\”tag_slug\”” instead of the expected “event-tags” => “tag_slug” (same for categories). So I’m not even sure in what situation you’d need those two lines at all (unless the ajax calls were changed and the bug was recently introduced).I will not mark this as resolved purely to attract attention to the integration issue.
Forum: Hacks
In reply to: Custom Post Type CapabilitiesAh, but of course, I could just make WordPress go belly up when they try to create a new profile! Not the most graceful approach but a very functional one nevertheless! Thank you, I appreciate your help! If I come up with a better solution at some point and don’t forget to do so, I might post it here at some point. For now, this should be sufficient. Thanks!
Forum: Hacks
In reply to: Custom Post Type CapabilitiesYes, that’s true. Although, technically they’ll still be able to create new profiles, they just wouldn’t be able to make them public. On the other hand though, that will make them unable to publish any changes on the profile they were assigned to as an author as well, which is definitely what I don’t want to happen. I still want them to have publish access to the one profile they are able to edit AND at the same time be unable to create new ones (even drafts). Any ideas?
Forum: Fixing WordPress
In reply to: Possible to create new widget in Appearance > MenusCould you please share what you have found as I believe I’ve ran into the same issue? Thanks!
Forum: Plugins
In reply to: Custom Menu Item TypeNo, I’m sorry if I mislead you, that’s exactly what I want to avoid. The same way there is a Custom Links or Pages metabox on the side, I want to create a new metabox that says for example “Divider” and then when you click on the Add to Menu in the form which I’d have to create inside of the metabox, it would add a new item to the menu which instead of Custom or Page on the right would say my own custom class Divider for example and I would set up how to display a Divider in my theme. Is that at all possible without modifying the core?
P.S. As I’ve said, I’ve got the first part covered, I did create the metabox and displays where it should. Code below(the display part is just copied from Custom Link).
//handler for adding dividers function add_divider_function() { global $_nav_menu_placeholder, $nav_menu_selected_id; $_nav_menu_placeholder = 0 > $_nav_menu_placeholder ? $_nav_menu_placeholder - 1 : -1; $current_tab = 'create'; if ( isset( $_REQUEST['customlink-tab'] ) && in_array( $_REQUEST['customlink-tab'], array('create', 'all') ) ) { $current_tab = $_REQUEST['customlink-tab']; } $removed_args = array( 'action', 'customlink-tab', 'edit-menu-item', 'menu-item', 'page-tab', '_wpnonce', ); ?> <div class="customlinkdiv" id="customlinkdiv"> <input type="hidden" value="custom" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-type]" /> <p id="menu-item-name-wrap"> <label class="howto" for="custom-menu-item-name"> <span><?php _e('Title'); ?></span> <input id="custom-menu-item-name" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-title]" type="text" class="regular-text menu-item-textbox input-with-default-title" title="<?php esc_attr_e('Leave blank for empty divider'); ?>" /> </label> </p> <p class="button-controls"> <span class="add-to-menu"> <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> <input type="submit"<?php disabled( $nav_menu_selected_id, 0 ); ?> class="button-secondary submit-add-to-menu" value="<?php esc_attr_e('Add a Divider to the Menu'); ?>" name="add-custom-menu-item" id="submit-customlinkdiv" /> </span> </p> </div><!-- /.customlinkdiv --> <?php } //configure admin menus function configure_admin_menus() { remove_meta_box('add-category','nav-menus','side'); add_meta_box('add-divider','Divider','add_divider_function','nav-menus','side', 'default'); } add_action( 'admin_head', 'configure_admin_menus', 99 );