justbishop
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Displaying the Page Author’s Role NAMEThanks for the reply! Can you advise which file to add this to? Am I adding to the code I already have, or replacing? I tried adding it to the code in each file with no change in the output.
Adding fields for address on the shopping cart page would definitely be helpful to me, but I can’t seem to figure out how to get the code from github to work. I uploaded each plugin and activated them, but can’t find any way to actually set them up. Am I missing something?
Forum: Plugins
In reply to: [My Tickets - Accessible Event Ticketing] My Tickets My CalendarMarking as resolved.
Forum: Plugins
In reply to: [My Tickets - Accessible Event Ticketing] My Tickets My CalendarThat did it, thank you!
Forum: Plugins
In reply to: [My Tickets - Accessible Event Ticketing] My Tickets My CalendarHere’s a screenshot of where I DO NOT want the ticket purchasing form:
Forum: Plugins
In reply to: [My Tickets - Accessible Event Ticketing] My Tickets My CalendarAlso, is there a way to show the ticketing form ONLY on the single event page? It’s currently squishing itself into the date block on the calendar, and making the calendar look odd. I would just use a “display:none;” CSS tag wrapped in a conditional, but the single event page seems to be the same basic URL as the calendar page, and I can’t figure out a different conditional to use.
Forum: Plugins
In reply to: [My Tickets - Accessible Event Ticketing] My Tickets My CalendarAha! That fixed it, thank you!
I’m not sure I understand the point of setting something to continuous ticketing, now, though. So if you set an event to continuous ticketing, how would anyone purchase a ticket if the form doesn’t display anywhere for them to do so?
Forum: Plugins
In reply to: [My Tickets - Accessible Event Ticketing] My Tickets My CalendarHuh. I thought I had set 10 tickets to be available, but now there aren’t even fields to enter anything into under the “Available” column :/
I think I’d just overlooked the “Email event owner” radio buttons. Thanks!
Nevermind me, Gabriel and I figured it out. I was trying to “pay” for my own events :”)
Checked the console as directed and saw nothing (it said “top frame” in a drop down, and below it was nothing but “<“), so I’m creating a new user and contacting you now. Thanks for the help ??
Forum: Hacks
In reply to: Adding Custom Action Link to Admin User ListAhhhh! Everything is awesome! Thank you ??
So for posterity’s sake, here’s the finished snippet to go in the theme’s functions.php:
/* Add a 'View Profile' action link to user list */ function frontend_profile_action_link($actions, $user_object) { $actions['view profile'] = "<a class='view_frontend_profile' href='" . home_url( "/archives/author/" ) . $user_object->user_login . "'>" . __( 'View Profile', 'frontend_profile' ) . "</a>"; return $actions; } add_filter('user_row_actions', 'frontend_profile_action_link', 10, 2);
Forum: Hacks
In reply to: Adding Custom Action Link to Admin User ListThanks so much! Small success, but I still need some guidance…I’ve got the following code working to spit the correct ID# for each user out into the URL, but I’m not sure how to translate that to the user’s login:
$actions['view profile'] = "<a class='view_frontend_profile' href='" . home_url( "/archives/author/" ) . $user_object->ID . "'>" . __( 'View Profile', 'frontend_profile' ) . "</a>";
Thanks again for the help!
Forum: Hacks
In reply to: Adding Custom Action Link to Admin User ListSorry, maybe my wording was confusing? I’m calling the author archive page on the frontend (rendered by a customized author.php template file I’ve created) a frontend “profile”.
In any case, can anyone tell me where I may have gone wrong in building the URL?
Actually, I figured it out. There’s no option to put the existing “printable view” anywhere else without mucking around in the plugin code, but if anyone else is interested in this, here’s the code I placed after line 105 of the plugin file events-manager/admin/em-bookings.php:
<a class='button add-new-h2' target='blank' href='<?php echo EM_ADMIN_URL ."&page=events-manager-bookings&action=bookings_report&event_id=".$EM_Event->event_id ?>'><?php echo sprintf(__('Print %s','dbem'), __('Event', 'dbem')) ?></a>
It added a nice button to match the “View Event” and “Add Event” ones next to the event title on the single event admin screen that you can reach via the bookings dashboard.
In order for the button/link to function properly when clicked, the logged in user must have the capability to edit_others_events. I don’t really want my editors messing with events, so I’m going to remove all links to the edit event screen using various other methods a filter for the “Edit Event” link on the front end admin bar, a menu editor plugin to remove access to the event list in the back end, etc.)
Done and done ??