johnnydev
Forum Replies Created
-
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Adding new eventHa!
Thx a lot Marcus, it works! ??
Best regards
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Adding new eventWell I have 5.4.3 version of EM and WordPress 3.5.2. I see that there is 5.4.4 update of EM.
I will try to update EM ??
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Adding new eventHi Marcus,
Thx for the response!
Unfortunately it still not work. I have unchecked “read other location” for all users capabilities exept for admin. See the screenshot – https://4cf.pl/img/em/em-user.png
When I go to the website (not to wordpress dashboard) to “add new” event when I’m log as subscriber I see all created locations (most of them are created by admin). See another screenshot – https://4cf.pl/img/em/em-dropdown.png
Any thoughts what can I change to see only locantions created by subscriber?
Also I have a little problem with my wordpress – I can’t see/edit created users in dashboard. See the last screenshot – https://4cf.pl/img/em/wp-users.png
Maybe it’s connected?
Best regards
Hi Marcus,
thx for the replay, but unfortunately I don’t get this tutorial much.
Do I have to create separate js file or do I have to add it like this:
‘function em_maps() {
.
.
.
(line 932) jQuery(document).triggerHandler(’em_map_loaded’, [map, infowindow, marker]);
}
}
jQuery(document).bind(’em_maps_locations_hook’, function( e, map, infowindow, marker ){
…
});}’
Sorry I’m only a begginer and sometimes it’s confusing ??
Best Regards!
Hi,
sorry about that, I will try again.
I was searching a way to group markers on the location map (there is a google function called MarkerClusterer) it allow you to group markers into one when you zoom out the map. So then you have only one marker instead of 100 (when you have a 100 events in New York and you zoom out to world view :P).
I found this google function:
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
var markers = []; for (var i = 0; i < 1000; ++i) { var latLng = new google.maps.LatLng(data.photos[i].latitude, data.photos[i].longitude) var marker = new google.maps.Marker({ position: latLng, draggable: true, icon: markerImage }); markers.push(marker); } markerClusterer = new MarkerClusterer(map, markers)
but it didn’t work, so I check again a events-manager.js file and found that there was this function (well not exacly the same and incoplete)
you have in events-manager.js: in line 763 (or close to it) maps_markers[map_id] = []; some lines below you have a for function and then in line 781 (or close to it) maps_markers[map_id].push(marker);
But as you can see there is nowhere a “MarkerClusterer” variable. Then I tried to add it on my own but I still can’t get the effect I wanted. Maybe I added it in wrong line of code or missing something else.
Any thougths?
Thx for the replay! Best Regards
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Google MarkerHi,
thx for the tip!
I manage to change the marker ??
Just find in events-manager.js “jQuery(‘.em-locations-map’).each( function(index)…” (line 754 or 745 depend on em version) and add
var image = …
and then few line below in marker declaration just add
icon: image,Best Regards
Thx for the help Marcus!
I have registered custom taxonome and custom post type in my function.php file but still Subscribe2 plugin doesn’t send proper posts. I will try with other plugins, maybe I will get luck there ??
Best regards!
Forum: Plugins
In reply to: [Subscribe2 - Form, Email Subscribers & Newsletters] Custom post typeHi,
thx a lot for the help, but I can’t still get what I want ?? I have registered custom taxonome and custom post type. I really don’t know what to do next or what I’m missing here.
I will try with other plugins.
Best regards!
Thx for the replay!
I have one more question, what is it the name of custom taxonomies, is it the “event-categories” or something like that? Maybe I must in my function.php file also register a custom taxonomies?
Best regards!
Forum: Plugins
In reply to: [Subscribe2 - Form, Email Subscribers & Newsletters] Custom post typeHi,
thx for the replay! Is this code below enough? Or do I have to add something more? And I must add it in function.php file?
register_taxonomy( ‘event-categories’, ‘category’, $args );
Best Regards!
Hi agelonwl,
Sorry for the delay – I was on hollidays. Thx for the tip i will try those plugins. In the meantime i have a question: what is the name of EM custom post type? I found this code on forum:
function my_post_types($types) {
$types[] = ‘my_post_type’;
return $types;
}
add_filter(‘s2_post_types’, ‘my_post_types’);and I changed it to:
function my_post_types($types) {
$types[] = ‘event’;
return $types;
}
add_filter(‘s2_post_types’, ‘my_post_types’);but it still send me via subscribe2 plugin post created by wordpress itself (i.e. “hello world!”) not by events manager plugin (events etc.)
Best regards!
Hi,
well rss feed could be but I want to recive emails every time that specific category or author create new event. If it is possible with rss feed then yeah, it could be the answer ??
Or maybe I must combine event manager with another plugin? If so, I do not know if it (some subscribe plugin) would use event manager categories instead of wordpress categories.
Thx for the replay!