lackadaize
Forum Replies Created
-
Ok. So it seems that it works fine when I’m not signed into the back-end. Nonetheless there is still that error on the back-end. So long as it works on the front end it’s fine with me. Otherwise I guess this is basically a bug report. Thanks though.
Also, to isolate issues. I tried it using the default JWeb Solutions likebox widget and that didn’t work either.
thank you. i’ll give it a go with that plugin.
I have looked for a second php.ini and don’t see one. I have done a number of things with my database over the last few days and found that there was a lot of unnecessary data in the wp_option table, much of it related to commerce and left over cron jobs from old plugins. I’m going to delete the wordfence tables and then attempt to re-install the plugin to see if the problem was due to a bloated database. If not I’ll have to move to something else. I’ll let you know if I need any more help with anything. Thank you much for your time.
I’ve had the exact same problem as suggys and I have plenty of memory available on my install. I love wordfence but my site is unbearable with the latest version. My problem is now that I can’t re-activate the plugin I’m not sure how I can get rid of all the wordfence entries in the database. I know I could just drop the wordfence tables but there must be some other stuff in the wordpress core tables as well I expect.
Forum: Plugins
In reply to: [Social Share Icons & Social Share Buttons] icon hover opacityThank you John. I suppose I was over thinking it. It worked when I turned off the fade effect and threw in the following rule:
.sfsiplus_inerCnt a:hover { opacity: .6 !important; }
Thank you very much for the help. It’s a nice simple plugin and I will definitely recommend it.
OK thank you.
a link written into a theme page template. I hardcoded the url into my theme template but if the page has to change in the future I thought maybe there was a way to automatically embed some php that would go to the Add Event page.
Actually, while I’m at it, do you know if there’s a way to write a templated link to the Add Event page by chance?
OK thank you for the quick reply.
Thank you so much caimin_nwl and angelo. I was able to make it work with the following code:
add_filter('em_event_output_placeholder','my_em_placeholder_mod_eventdatesend',2,3); function my_em_placeholder_mod_eventdatesend($replace, $EM_Event, $result){ if ( $result == '#_EVENTENDDATE' ) { $replace = date_i18n('m-d-Y', $EM_Event->end); } return $replace; } add_filter('em_event_output_placeholder','my_em_placeholder_mod_eventdates',1,3); function my_em_placeholder_mod_eventdates($replace, $EM_Event, $result){ if ( $result == '#_EVENTSTARTDATE' ) { $replace = date_i18n('m-d-Y', $EM_Event->start); } return $replace; }
I had previously tried to do a separate custom placeholder for #_EVENTENDDATE but didn’t realize that the priority had to be set to 2 instead of 1. I will likely add some else statements for my purposes but this seems to work.
Also as a sidepoint, incase anyone is looking for a solution to this, I’ve been able to integrate this with AddThisEvent so that if the user clicks on links for Outlook, Google, Yahoo, Hotmail, or iCalendar the event is automatically directed to their calendar. I still have a couple kinks to work out but for the most part it works just fine. Thanks again for your help. Event Manager rules and today is a good day ??
I’m clearly no php expert I just thought there must be a way to display the end date. I realize the elseif statement doesn’t make any sense.
Thanks a bunch. When I do the following code I get a start date (#_EVENTSTARTDATE) just fine:
add_filter('em_event_output_placeholder','my_em_placeholder_mod_eventdates',1,3); function my_em_placeholder_mod_eventdates($replace, $EM_Event, $result){ if ( $result == '#_EVENTSTARTDATE' ) { if( $EM_Event->event_start_date != $EM_Event->event_end_date){ $replace = date_i18n('d-m-Y', $EM_Event->start); } } return $replace; }
But, when I try to extend it to include an end date only (#EVENTENDDATE)with the following code it still shows the start date but nothing comes through for the end date:
add_filter('em_event_output_placeholder','my_em_placeholder_mod_eventdates',1,3); function my_em_placeholder_mod_eventdates($replace, $EM_Event, $result){ if ( $result == '#_EVENTSTARTDATE' ) { if( $EM_Event->event_start_date != $EM_Event->event_end_date){ $replace = date_i18n('d-m-Y', $EM_Event->start); } elseif ( $result == '#_EVENTENDDATE' ) { if ( $EM_Event->event_end_date != $EM_Event->event_start_date){ $replace = date_i18n('d-m-Y', $EM_Event->end); } } } return $replace; }
Do you happen to know anything about the architecture of the plugin that might explain this? Thanks again for your help. It’s greatly appreciated.
I’m not sure why the code command didn’t work in that last post so I’ll try again.
case '#_EVENTSTARTDATE': //get event start date $date_format = ( get_option('dbem_date_format') ) ? get_option('dbem_date_format'):get_option('date_format'); if( $this->event_start_date != $this->event_end_date){ $replace = date_i18n($date_format, $this->start); } break; case '#_EVENTENDDATE': //get event end date $date_format = ( get_option('dbem_date_format') ) ? get_option('dbem_date_format'):get_option('date_format'); if( $this->event_start_date != $this->event_end_date){ $replace = date_i18n($date_format, $this->end); } break;
`
I’m aware of this placeholder but I’m trying to integrate this plugin with AddThisEvent so that events can get imported directly into hotmail, outlook, yahoo, etc. onclick. All the placeholder’s work seemlessly with AddThisEvent but I specifically need to display only the start date and end date separately.
I tried overriding /events-manager/classes/em-event.php with the following code starting at line 1500:
`case ‘#_EVENTSTARTDATE’:
//get event start date
$date_format = ( get_option(‘dbem_date_format’) ) ? get_option(‘dbem_date_format’):get_option(‘date_format’);
if( $this->event_start_date != $this->event_end_date){
$replace = date_i18n($date_format, $this->start);
}
break;
case ‘#_EVENTENDDATE’:
//get event end date
$date_format = ( get_option(‘dbem_date_format’) ) ? get_option(‘dbem_date_format’):get_option(‘date_format’);
if( $this->event_start_date != $this->event_end_date){
$replace = date_i18n($date_format, $this->end);
}
break; `But it doesn’t want to override it when I put it in (theme)/plugins/event-manager/classes/em-event.php. This is why I’m asking what I’m doing incorrectly in adding the filter (referenced in my initialpost) to my theme functions.php file. Thanks again for your time.
I was able to make this work with two separate forms, but stylistically I may need to break it down into a ul li setup.