Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter sopedro

    (@sopedro)

    One more thing,

    I’m listing the events below venue map, but how can i list only the events of that venue.

    Right now i’m getting a list of all events in all venues.

    Regards,

    Plugin Author ThemeBoy

    (@themeboy)

    Hi Pedro,

    Are you loading event-blocks.php via a page template? The template requires an id, so something like this should work:

    sp_get_template( 'event-blocks.php', array( 'id' => get_the_ID() ) );

    The translation system has been changed to eliminate complicated functions. Replacing all instances of

    SP()->text->string( $string )

    with

    __( $string, 'sportspress' )

    will bring the template up to date.

    Please let me know if there are any other new features that are affecting the templates. I’d be happy to help you.

    Plugin Author ThemeBoy

    (@themeboy)

    With the venue events, is this in the taxonomy-venue.php template?

    Thread Starter sopedro

    (@sopedro)

    You’re the man,

    The solution you gave me work very well, thanks.
    I don’t know if i did the right thing, but i change the taxonomy-venue.php to place a map in full screen, than in venue-map.php i list the events below map.

    Then i create another file venue-map-list.php and i call this file from event-venue in this way <?php sp_get_template( 'venue-map-list.php', array( 'meta' => $meta ) ); ?>, so i can template this file too…

    Note: I like the new translation system, more simple to use as wordpress. 🙂

    Regards,

    Pedro

    Thread Starter sopedro

    (@sopedro)

    Hi Themeloy,

    Just one suggestion, in event-performance.php i moved the if condition <?php if ( $has_players && $show_players ): ?> outside the table, without this hack, even if i switch off the players from events it shows an empty table.

    Regards,

    Plugin Author ThemeBoy

    (@themeboy)

    Hi Pedro,

    That sounds like a good solution.

    Regarding the event performance table, the reason the if condition is inside the table is because we still want to show the total performance even when individual players aren’t displayed. That way, you can add performance per team, like fouls, attempts, etc.

    Glad to hear you like the new translation system too 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘error after upgrade!’ is closed to new replies.