Riza

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 46 total)
  • Author
    Posts
  • in reply to: Make Google Maps mandatory #1223471
    Riza
    Participant

    Feel free to reply in ~24 hours and hopefully I’ve got something functional for you by then.

    Here I am 🙂

    in reply to: Event lists doesn't show the list of events #1223469
    Riza
    Participant

    Thank you for the clear answer.

    in reply to: Near > Location not working #1222399
    Riza
    Participant

    Is there a way to add UK to all searches by modying the plugin? All events entered to the site are in UK and all searches will be in UK.

    In fact you may even consider adding a setting to do that as you already have a setting for default country: “Tick to add the deafult country to all search results”

    What do you says?

    in reply to: Make Google Maps mandatory #1221852
    Riza
    Participant

    It works but not fully. My code is below.

    // Check required event fields
    add_filter( 'tribe_events_community_required_fields', 'my_community_required_fields', 10, 1 );
    
    function my_community_required_fields( $fields ) {
    
        if ( ! is_array( $fields ) ) {
            return $fields;
        }
    
        $fields[] = 'venue';
        $fields[] = 'EventShowMapLink';
    
        return $fields;
    }

    From what I understand and what logic says, if there is no venue selected nor entered I should get an error for that. In fact even though there is no venue selected nor entered I only get the “Event Show Map Link is required” error message. I tried to change the order of the fields line but nothing has changed.

    I still need your help.

    BTW, thank you for the excellent support.

    in reply to: Google maps position/size change on single event view #1221851
    Riza
    Participant

    Here is one:

    http://www.yourvalleynews.co.uk/valley-event/snowdrop-weekends-throughout-february/2017-02-04/

    The map is very narrow and tall, it looks odd. However, when the viewport is narrow then the map goes down and becomes wider. I want move the map down and make it wider at all viewports. Preferably do that with CSS alone.

    in reply to: Event lists doesn't show the list of events #1221749
    Riza
    Participant

    Your first stop should be the Events → Settings → Display admin screen, where you should take a look at the Events template setting. By default you should be able to choose between these options:

    Default Events Template
    Default Page Template

    You may also see other templates that are specific to your theme.

    So try experimenting with these template options, and remember to save your changes!

    Thank you, however, the section above doesn’t explain what the options do. What is the purpose of the selection?

    in reply to: Near > Location not working #1221519
    Riza
    Participant

    I apologise. I was in the process of changing the event system, you were too quick 🙂

    The correct event page is at:

    http://www.yourvalleynews.co.uk/valley-events

    in reply to: Community entured recurring event not fully created #1221165
    Riza
    Participant

    False alarm! It simply took a long time for the recurring events to appear.

    Strangely though, even though I have only published 11 events the remaining events were published automatically. My VPS must be running on coal 🙂

    in reply to: Event lists doesn't show the list of events #1221164
    Riza
    Participant

    Sorted! I was using Default Page Template. Switched to Default Events Template and my calendar appeared.

    Can you explain to me (or point to a document) where the page template or even blank page can be used?

    in reply to: Event lists doesn't show the list of events #1220547
    Riza
    Participant

    I’ve installed and activated the “TEC Addon: Divi Theme Pagination Fix” plugin, no change.

    I’ve downgraded from PHP7.0 to 5.6, no change. Both version’s error logs are attached.

    I hope the logs will tell you something and you can find a solution.

    I do realise the position you may have to take on not able to support all themes but Divi is not yet another theme. More than 5000 people have answered a survey from Elegant Themes specifically on Divi. Just imagine how many theme installations should be out there…

    • This reply was modified 9 years, 3 months ago by Riza.
    in reply to: Event lists doesn't show the list of events #1219984
    Riza
    Participant

    I’m sorry. I missed the change to default WP theme.

    I can now report you that when I switch to Twenty Fifteen theme the page displays both existing events. However, even if I switch to the main Divi theme (I use a child theme) I only see what you see, one partial event.

    Does this mean that you are not compatible with Divi?

    Riza
    Participant

    That did it. Thank you very much.

    Your support is examplrary 🙂

    Riza
    Participant

    FYI, the original code that works is also below:

    /*
    * This changes the venue link to the venue website URL if that is set.
    * NOTE: Uncomment the add_filter() line to enable this function.
    */
    function tribe_set_venue_website ( $link, $postId, $display, $venue_url ) {
    $venue_link = tribe_get_venue_website_link( tribe_get_venue_id( $postId ) );
    // Only swaps link if set and full HTML <a> link is set
    if ( !empty( $venue_link ) ) {
    if ( $display ) {
    $link = $venue_link;
    } else {
    $venue_url = tribe_get_event_meta( tribe_get_venue_id( $postId ), '_VenueURL', true );
    $parseUrl = parse_url( $venue_url );
    if ( empty( $parseUrl['scheme'] ) ) {
    $venue_url = "http://$venue_url";
    }
    $link = $venue_url;
    }
    }
    return $link;
    }
    add_filter( 'tribe_get_venue_link', 'tribe_set_venue_website', 100, 4 ); 
    
    Riza
    Participant
    /*
    * This changes the venue link to the venue website URL if that is set.
    * NOTE: Uncomment the add_filter() line to enable this function.
    */
    // Single Events
    if ( tribe_is_event() && is_single() ) {
    // Rest of snippet
    function tribe_set_venue_website ( $link, $postId, $display, $venue_url ) {
    $venue_link = tribe_get_venue_website_link( tribe_get_venue_id( $postId ) );
    // Only swaps link if set and full HTML <a> link is set
    if ( !empty( $venue_link ) ) {
    if ( $display ) {
    $link = $venue_link;
    } else {
    $venue_url = tribe_get_event_meta( tribe_get_venue_id( $postId ), '_VenueURL', true );
    $parseUrl = parse_url( $venue_url );
    if ( empty( $parseUrl['scheme'] ) ) {
    $venue_url = "http://$venue_url";
    }
    $link = $venue_url;
    }
    }
    return $link;
    }
    add_filter( 'tribe_get_venue_link', 'tribe_set_venue_website', 100, 4 ); 
    }

    Above broke the site. My PHP is VERY bad, may I ask you to see if I have done a syntax error?

    Riza
    Participant

    What happens if you remove the snippet? Does the Venue Name show up properly?

    Yes

Viewing 15 posts - 16 through 30 (of 46 total)