J.D. Grimes
Forum Replies Created
-
There are some settings, but nowhere for me to set the max and min upload sizes for events manager.
Here is what I think is happening. We are using multisite, but the plugin isn’t activated network wide. The image settings are only shown on Events > Settings > General > Images Sizes if the installation isn’t multisite. For multisite installations these settings are shown on the network settings page. But there isn’t any network settings page unless the plugin is network activated. So there is nowhere these settings are displayed if the plugin is activated on a single site when using multisite. At least this is what I think is happening.
I’m also using Events Manager Pro 2.3.5 if that makes any difference.
I’m not seeing it in either location. I’m using version 5.4.2. I do have some other plugins installed that affect media and image sizes, but I don’t know why it would cause this not to show up on the Events > Settings > General tab.
Forum: Plugins
In reply to: [CubePoints] Has this plugin been abandoned?@madegood – I would like to. I’m actually planning on releasing an improved version in the near future. ??
Oh, the only thing that I think could be improved in this solution is if events manager supplied a way to check whether the maps JS was loaded and a way to load it (better yet, a function that could be called which would perform its own check and load it only if needed). That way there would be no worries about updating the API version, etc.
Thanks.
For anyone else trying to do this, here is what I ended up doing:
// Make sure that Google Maps API is loaded. if ( typeof google !== 'object' || typeof google.maps !== 'object' ) { var script_src = ( EM.is_ssl ) ? 'https://maps.google.com/maps/api/js?v=3.8&sensor=false&callback=em_maps' : 'https://maps.google.com/maps/api/js?v=3.4&sensor=false&callback=em_maps'; jQuery.getScript( script_src ); } // Now initialize all maps. em_maps();
In this case, each map was being loaded and there was only one map in the DOM at any one time. Otherwise, it would probably not be a good idea to just use
em_maps()
. You’d probably want to pull some from its source (in/wp-content/plugins/events-manager/includes/js/events-manager.js @line 715
) but only target any new maps. In this case, all maps on the page were always new.Thanks, I was just hoping there might be a more forward compatible solution. Like maybe set a global JS variable (like
em_maps_is_loaded
) and give it a true or false value based on whether the maps were loaded. Then developers could check if they had been loaded yet. Also, could you create a named JS function to load the scripts? Then we could just do something like this:if ( ! em_maps_js_is_loaded ) { em_load_maps_js(); } // Maps are now loaded. // ... Do stuff here ...
I think this would be better, because then I don’t have to worry about if I’m loading a compatible version of the API, or creating my own check to see if the API is already loaded. In other words, it would be more forward compatible. So if you could add something like this it would be great. Meanwhile, I’ll try to find a short term solution. Thanks.
Forum: Plugins
In reply to: [CubePoints] Has this plugin been abandoned?Before the site went down there was a post made for beta testers for CubePoints 4 to sign up. I did, but nothing has come of it.
Forum: Plugins
In reply to: [CubePoints] Has this plugin been abandoned?Have any of you tried contacting that email address?
I just tried, and as I suspected, it doesn’t really exist:
550 Unrouteable address
.I wouldn’t have expected a reply anyway. I’ve tried to contact them about the plugin multiple times before and I never received a response. I even offered to take over the plugin’s development if they were ready to pass it on. Nothing.
Thank you for the link! I’ll definitely do that. Oh, and if you do take this suggestion, could you post back here and let me know what the name of the condition will be? Thanks.
Forum: Plugins
In reply to: [CubePoints] Has this plugin been abandoned?I don’t think that it has been fully abandoned, but I have tried to contact the authors on more than one occasion and I’ve never received a response.
Forum: Plugins
In reply to: [CubePoints Buddypress Integration] Cannot see all members under manageThis is probably due to a JavaScript conflict. Try disabling other plugins and see if it helps. If you know how to use the web console on your browser, you can probably determine the problem from there.
If all else fails, you can go to the Add Points page and adjust the user’s points from there (you can subtract too). But that may not be exactly what you are needing.
Here’s how I’m getting around it for now, though I would still like to figure out what is going on here.
I’m outputting the dates like this:
$em_event->output( '#_{j M Y} #@_{ \t\o j M Y}' );
Works beautifully! But if I do this:
$em_event->output( '#_EVENTDATES' );
Or this:
$em_event->output( '#j #M #Y to #@j #@M #@Y' );
It just displays the current time.
This is just using regular events.
I’ve found that the value of
$start
and$end
are actually the current timestamp. How could that be happening? When I manually generate the timestamp like this, it is correct:$em_event = new EM_Event( $post->ID ); strtotime( $em_event->event_start_date . " " . $em_event->event_start_time )
I don’t see anything in the docs about
strtotime()
returning the current time automatically. So the values of$event_start_date
and$event_end_date
must change after$start
and$end
are loaded, or$start
and$end
get reset somewhere. I don’t see anything like that in the code though.I think I know why this is happening. I looked at
/classes/em-event.php
, and here is what I found. The#_EVENTDATES
and#_EVENTTIMES
placeholders are displayed using the WordPress functiondate_i18n()
. It uses the class vars$start
and$end
and passes them todate_i18n()
as the timestamps for the start and end time/date respectively. The other time placeholders (#_24HSTARTTIME #_24HENDTIME #_12HSTARTTIME #_12HENDTIME
) use the class vars$event_start_time
and$event_end_time
. So these are two placeholders do indeed work a little bit differently than the others.So why is the current time being displayed? It turns out that
date_i18n()
displays the current time by default. This will only happen, however, when booleanfalse
is supplied as the timestamp parameter. Like I said above, the$start
and$end
class variables are supplied to the function on each time it is called, respectively. These variables are loaded on lines 299 and 300, usingstrtotime()
. This function returns false on failure, so apparently that is the problem.$this->event_start_date." ".$this->event_start_time
must not be a valid time in this case. Why?