Help Desk

I would like to add Time and Venue to Event Title in Calendar View

  • Posts: 75 Topics: 16
    | Permalink

    I have already set up a staging site, and copied Map View file to:
    wp-content/themes/my-child-theme/tribe-events/pro [as outlined in your Themer’s Guide]
    I would now like to add the event time and venue to the Map View., instead of the address. How do I do that?

    Posts: 11239
    | Permalink

    Hi. Are you wanting to customize the map’s pin/tooltip content or the list of events below it?

    If the former, you might take a look at the source code of this extension:

    Hope that helps point you in the right direction. Please let me know how this goes for you.

    Posts: 75 Topics: 16
    | Permalink

    I installed the extension you mention above. Now, when I click on the pin for Raleigh, NC, I get the following:

    Music of Palestrina, Monteverdi – Raleigh [Event Title]
    Bach’s Coffee Cantata – Raleigh [Event Title]
    Address: 120 E. Edenton Street [Event Address]

    What I would like to see is:

    Music of Palestrina, Monteverdi – Raleigh, [Event Title] 10/12/18 [Event Date]
    Bach’s Coffee Cantata – Raleigh, [Event Title] 2/23/19 [Event Date]
    Christ Church Episcopal Church, Raleigh, NC [Venue Name, City, State]

    I would then be able to remove the city from the event title, which was a clumsy workaround!

    I think this is the part that needs to be edited:
    TribeEventsPro = {“geocenter”:{“max_lat”:36.09940000000000281943357549607753753662109375,”max_lng”:-76.826099999999996725819073617458343505859375,”min_lat”:32.78221099999999665897121303714811801910400390625,”min_lng”:-82.6451789999999988367562764324247837066650390625},”map_tooltip_event”:”Event: “,”map_tooltip_address”:”Address: “};
    var TribeEventsPro = {“geocenter”:{“max_lat”:36.09940000000000281943357549607753753662109375,”max_lng”:-76.826099999999996725819073617458343505859375,”min_lat”:32.78221099999999665897121303714811801910400390625,”min_lng”:-82.6451789999999988367562764324247837066650390625},”map_tooltip_event”:”Event: “,”map_tooltip_address”:”Address: “};</script> <script type=’text/javascript’ src=’https://www.ncbaroqueorchestra.org/wp-content/plugins/events-calendar-pro/src/resources/js/tribe-events-pro.min.js?ver=4.4.31′>

    Posts: 75 Topics: 16
    | Permalink

    I installed the extension you mention above. Now, when I click on the pin for Raleigh, NC, I get the following:

    Music of Palestrina, Monteverdi – Raleigh [Event Title]
    Bach’s Coffee Cantata – Raleigh [Event Title]
    Address: 120 E. Edenton Street [Event Address]

    What I would like to see is:

    Music of Palestrina, Monteverdi – Raleigh, [Event Title] 10/12/18 [Event Date]
    Bach’s Coffee Cantata – Raleigh, [Event Title] 2/23/19 [Event Date]
    Christ Church Episcopal Church, Raleigh, NC [Venue Name, City, State]

    I would then be able to remove the city from the event title, which was a clumsy workaround!

    I think this is the part that needs to be edited:
    TribeEventsPro = {“geocenter”:{“max_lat”:36.09940000000000281943357549607753753662109375,”max_lng”:-76.826099999999996725819073617458343505859375,”min_lat”:32.78221099999999665897121303714811801910400390625,”min_lng”:-82.6451789999999988367562764324247837066650390625},”map_tooltip_event”:”Event: “,”map_tooltip_address”:”Address: “};
    var TribeEventsPro = {“geocenter”:{“max_lat”:36.09940000000000281943357549607753753662109375,”max_lng”:-76.826099999999996725819073617458343505859375,”min_lat”:32.78221099999999665897121303714811801910400390625,”min_lng”:-82.6451789999999988367562764324247837066650390625},”map_tooltip_event”:”Event: “,”map_tooltip_address”:”Address: “};</script> <script type=’text/javascript’ src=’https://www.ncbaroqueorchestra.org/wp-content/plugins/events-calendar-pro/src/resources/js/tribe-events-pro.min.js?ver=4.4.31′>

    Posts: 11239
    | Permalink

    The extension is designed to display all events at a single venue. It accomplishes this by customizing the pin’s text. You can reference its codebase as a starting point, but I cannot assist you further toward your desired customizations.

    If you need some coding help, you may want to ask your own developer or reference our Customizations Documentation, which includes a link to Hire A Freelancer.

    Posts: 75 Topics: 16
    | Permalink
    This reply has been marked as private.
    Posts: 2046 Topics: 1
    | Permalink

    Hi there!

    We tweaked the tribe-events-ajax-maps.js file to help you and other customers who might want to customize the map tooltip in the future.

    These are the lines that we modified/updated (L56 to L80):

    Here’s the new extension file.

    Please note that for now, this is an unofficial extension. The code here was modified based on existing .js file in the “Display all events with the same venue in the map tooltip” extension and is keeping this functionality as well.

    I hope this helps!

    Regards,

    Patricia

    Posts: 75 Topics: 16
    | Permalink

    Hi, Patricia! I was so excited to receive your response and tried to install the new extension file, using the plugin installer. However, I got the following message:
    “The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature” What went wrong?

    Posts: 11239
    | Permalink

    Hi. Patricia’s .zip file worked just fine for me.

    Please try again. If it doesn’t work, you might want to unzip it and upload it manually via FTP (https://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation)

    Please let me know how this goes for you.

    Posts: 75 Topics: 16
    | Permalink

    I can’t unzip it! See screenshot of results from Win-Zip. Is there a better program I could use for un-zipping?

    I read through your article on Manual Plugin Installation, and have a question: where to find my FTP program?

    Posts: 75 Topics: 16
    | Permalink

    I unzipped it…using 3rd program! Have read all articles on FTP uploads…but that will have to wait until after Florence. Expecting high winds soon. So, if you don’t hear from me, it’s not because I’ve lost interest…just lost power or Internet access…lol!

    Posts: 75 Topics: 16
    | Permalink

    I unzipped it…using 3rd program! Have read all articles on FTP uploads…but that will have to wait until after Florence. Expecting high winds soon. So, if you don’t hear from me, it’s not because I’ve lost interest…just lost power or Internet access…lol!

    Posts: 75 Topics: 16
    | Permalink

    Patricia’s extension has been installed and activated on the staging site. I tried it, but nothing has changed. Does it have to be configured? If so, where?

    Posts: 75 Topics: 16
    | Permalink
    This reply has been marked as private.
    Posts: 75 Topics: 16
    | Permalink
    This reply has been marked as private.
    Posts: 11239
    | Permalink

    Sorry you’ve struggled so much with this. You shouldn’t have both of those Map View extensions (the two listed alongside each other in your wp-admin plugins list).

    Your Map View not displaying is usually fixed by re-saving your Permalinks at wp-admin > Settings > Permalinks.

    Please let me know how this goes for you.

    Posts: 75 Topics: 16
    | Permalink

    I deactivated the “Display Multiple Events…” extension, re-saved the Permalinks as instructed. The result is in screenshot below.

    Posts: 11239
    | Permalink

    This is what I see at your Map View: https://cl.ly/1d2337f596d1

    It looks like you deactivated the wrong one.

    If you still need assistance with this, please re-share your System Information in a Private Reply.

    Posts: 75 Topics: 16
    | Permalink
    This reply has been marked as private.
    Posts: 2046 Topics: 1
    | Permalink

    Hi again!

    Could you please remove the “The Events Calendar PRO Extension: Display the event date and venue name in the map tooltip” extension from your staging site and install this one instead? It’s the same extension, but with a small change so it can work properly with multiple events at the same venue. Here’s the updated code (L59-L98):

    Cheers,

    Patricia

    Posts: 75 Topics: 16
    | Permalink
    This reply has been marked as private.
    Posts: 2046 Topics: 1
    | Permalink
    This reply has been marked as private.
    Posts: 75 Topics: 16
    | Permalink
    This reply has been marked as private.
    Posts: 75 Topics: 16
    | Permalink
    This reply has been marked as private.
    Posts: 75 Topics: 16
    | Permalink
    This reply has been marked as private.
    Posts: 75 Topics: 16
    | Permalink
    This reply has been marked as private.
    Posts: 11239
    | Permalink
    This reply has been marked as private.
    Posts: 75 Topics: 16
    | Permalink
    This reply has been marked as private.
    Posts: 75 Topics: 16
    | Permalink
    This reply has been marked as private.
    Posts: 11239
    | Permalink

    Thank you. I did some more testing and confirmed an issue with this extension and asked Patricia to get back to it when she can.

    For now, we’ll need to wait based on her availability. Once it’s ready again, I’ll use my credentials to try it again.

    Thank you for your patience.

The topic ‘I would like to add Time and Venue to Event Title in Calendar View’ is closed to new replies.