psmorrow
Forum Replies Created
-
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] myCred gatewayok, thanks!
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] myCred gatewayThanks Caimin,
Are you aware if myCred appears as a gateway option if I purchase the Pro version of Events Manager? The myCred documentation suggests this is the case, but it would be helpful if you can confirm this for me.
http://codex.mycred.me/chapter-iii/gateway/events-manager/
Many thanks!
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] attribute valueThanks!
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] attribute valueActually, I’ll share more details about what I’m trying to do…in case there’s a kind soul out there that can help me figure this out.
The end goal is to add a hpyerlink to contact a person on skype. This works only partially:
function my_em_custom_content($content){ $data = xprofile_get_field_data( 'Skype ID', bp_loggedin_user_id()); $content .= '<a href="skype:'.$data.'?call">Call Me on Skype<br />'; return $content; } add_filter('em_content','my_em_custom_content');
It only works partially because the “Call me on Skype” hyperlink, is only displayed when the event owner and the user are the same person….when a user tries to view the details of another member’s event, no skype hyperlink 🙁 Can anyone share why this is happening???
Also, I am envisioning my next issue being that I don’t want to display the skype id of the logged in user….perhaps I’ll cross that bridge after I figure this first issue out 🙂
Any help anyone can provide would be awesome!
- This reply was modified 7 years, 2 months ago by psmorrow.
function my_em_modify_default_ticket($EM_Ticket) { if ( empty($EM_Ticket->ticket_id) ) { $EM_Bookings->event_rsvp_box = 'checked'; } } add_filter('em_ticket', 'my_em_modify_default_ticket', 10, 2);
Can you kindly help me with this code? I can’t figure it out. Many thanks in advance and sorry for the trouble!
would it be possible to add a custom function to bp-custom.php in plugin folder?
Found solution, which works great:
function my_em_modify_default_ticket($EM_Ticket) { if ( empty($EM_Ticket->ticket_id) ) { //you can modify any property in $EM_Ticket such as spaces or the ticket name, add or delete lines as necessary $EM_Ticket->ticket_spaces = 1; //ticket spaces $EM_Ticket->ticket_name = 'Custom Ticket Name'; //ticket name $EM_Ticket->ticket_description = 'Ticket Description'; //ticket description $EM_Ticket->ticket_price = 1; //ticket price //etc. } } add_filter('em_ticket', 'my_em_modify_default_ticket', 10, 2);
Thanks Angelo! Would this be possible with php?
Thanks Angelo!