WordPress.org

Ready to get started?Download WordPress

Forums

PHPLeague
cant see the date (10 posts)

  1. piedro666
    Member
    Posted 1 year ago #

    Hi, I have a problem with displaying the date...
    I have a shortcode on my page [phpleague type = fixtures id = 2] and I can see the columns "Fixture","Match" and "Score", but the date column is empty...
    I have set the date in Dashboard - >Fixtures and Dashboard -> Result
    Can you help me with this problem, please?

    http://wordpress.org/extend/plugins/phpleague/

  2. robsanders
    Member
    Posted 1 year ago #

    +1

  3. piedro666
    Member
    Posted 1 year ago #

    ??
    I don`t understand....

  4. robsanders
    Member
    Posted 1 year ago #

    +1 as in i am having the same issue.

  5. piedro666
    Member
    Posted 1 year ago #

    Ok, but can you give me any solution for that or I have to wait for new update?
    Because then I can't use this plugin :(
    Thank you

  6. robsanders
    Member
    Posted 1 year ago #

    I wont be able to give you a solution as i am having the same issue.

    Maybe give the developer a chance to respond here in the forum.

  7. piedro666
    Member
    Posted 1 year ago #

    Hi, I have solved this problem by editing phpleague-front.php on the line 268,314,331
    You should replace:

    $output .= '<td>'.strftime("%a %e %b, %H:%M", strtotime($row->played)).'</td>';

    with

    $output .= '<td>'.strftime("%Y-%m-%d", strtotime($row->played)).'</td>';

    and then you can see the date when you use the shortcode
    [phpleague type = fixtures id = XX]

  8. robsanders
    Member
    Posted 1 year ago #

    @piedro666 - you sir, are a star

  9. Fitshase
    Member
    Posted 1 year ago #

    Where is phpleague-front.php file located? I can't seem to find it anywhere!

  10. Fitshase
    Member
    Posted 1 year ago #

    Sorry - found it now in the dashboard. I was looking in the folders on the web server.

    I've used your edit to change the date to d-m-y and I've also managed to remove the fixture number column as well.

    Now all I need to work out is how to sort the table by the fixture date not the fixture number.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic