getButterfly
Resume

NAVIGATION

ATTRIBUTION

getButterfly
Dublin, Ireland

All Content Copyright ©2018
getButterfly

Personal Livescore

Personal Livescore plugin allows the administrator to run and maintain a livescore system without the need to sign up for various web services or feeds.

Unlike all the other plugins, this plugin is entire controllable by the administrator, and does not require any third-party account. The plugin is white-labeled and offers an embeddable version for other sites. The embeddable version is 100% mobile/tablet compatible and works in real time.

Personal Livescore is now free. The plugin has been unsupported since 2017.

livescore-site-version livescore-mobile-version livescore-retina

Features: HTML5 compliant, works with all themes, fast and performant, can be translated in any language, comes with several languages by default (more are added with every update), archive page, customizable copyright line.

Installation

  1. Upload the ‘personal-livescore’ folder to your ‘/wp-content/plugins/’ directory
  2. Activate the plugin via the Plugins menu in WordPress
  3. Create and publish a new post/page, add an image or more and add this shortcode: [ livescore ]
  4. A new Livescore menu will appear in WordPress Settings area
  5. See usage examples below

Usage Examples

  • Add the shortcode [[livescore]] to a post or a page or use [[livescore id="4"]] to show a single match
  • Use the shortcode [[livescore mode="archive"]] to display an archive of past matches/scores

Styling Examples

Inside the /css/ folder there are 2 separate files, style-red.css and style-tan.css, use them either to change current colours, or as a base for your own styles, including custom fonts.

Match/Score Status

A game/match status is 0 if the game has passed (archive), 1 if the game is active (live) or 2 if the game is in the future (upcoming). A status of 3 indicates a future match, but hidden from widget view.

backend-livescore-settings backend-livescore-calendar backend-livescore-manager

Watch this quick video tutorial about Livescore configuration.

See how scores are updated in real-time, in less than 5 seconds, without page reload.


2 comments on “Personal Livescore

  1. Hello. I’m trying to implement a responsive table to view live games, modifying your page code pl-refresh.php, but unfortunately blank page. I’ll write you the code maybe you can help, I thank you in advance.

    [code]
    get_results(“SELECT * FROM ” . $wpdb->prefix . “livescore WHERE pl_active=1 AND pl_id=” . $rel . ” ORDER BY pl_datetime DESC LIMIT 1″, ARRAY_A);
    else
    $results = $wpdb->get_results(“SELECT * FROM ” . $wpdb->prefix . “livescore WHERE pl_active=1 ORDER BY pl_datetime DESC”, ARRAY_A);

    $pl_is_active = ” . __(‘Finale’, ‘pl’) . ”;

    $display .= ” . get_option(‘pl_label_live’) . ”;

    foreach($results as $row) {
    if($row[‘pl_set’] != 0) $pl_set = ‘ ‘ . __(‘SET’, ‘pl’) . ‘ ‘ . $row[‘pl_set’] . ”;
    $display .= ”;
    $display .= ”;
    $display .= ”;
    $display .= ”;
    $display .= ” . $row[‘pl_datetime’] . ”;
    $display .= ” . $row[‘pl_sport’] . ”;
    $display .= ” . $row[‘pl_location’] . ”;
    $display .= ” . $row[‘pl_team1’] . ‘ vs ‘ . $row[‘pl_team2’] . ”;
    $display .= ” . $row[‘pl_score1’] . ‘:’ . $row[‘pl_score2’] . ”;
    $display .= ‘SET ‘ . $row[‘pl_set’] . ”;
    $display .= ”
    Link with href
    ”;
    $display .= ”;

    }

    ”;
    ”;

    content collapse

    // begin display goals
    $goals_results = $wpdb->get_results(“SELECT * FROM ” . $wpdb->prefix . “livescore_goals WHERE goal_match_id = ” . $row[‘pl_id’], ARRAY_A);
    if($wpdb->num_rows > 0) {
    $display .= ”;
    $display .= ‘Dettagli partita’;
    foreach($goals_results as $goals_row) {
    $display .= ” . $goals_row[‘goal_time’] . ‘ ‘ . $goals_row[‘goal_scorer’] . ”;
    }
    $display .= ”;
    }
    // end display goals

    $display .= ”;
    $pl_set = ”;
    }

    // display upcoming scores
    $results = $wpdb->get_results(“SELECT * FROM ” . $wpdb->prefix . “livescore WHERE pl_active=2 ORDER BY pl_datetime DESC”, ARRAY_A);

    $pl_is_active = ‘»’;

    $display .= ” . get_option(‘pl_label_upcoming’) . ”;
    foreach($results as $row) {
    $display .= ”;
    $display .= ” . $row[‘pl_sport’] . $row[‘pl_location’] . ” . ‘ ‘ . $row[‘pl_datetime’] . $pl_is_active . ”;
    $display .= ” . $row[‘pl_team1’] . ‘0’;
    $display .= ” . $row[‘pl_team2’] . ‘0’;
    $display .= ”;
    }

    // banner ad
    // $display .= ”;

    $display .= ” . get_option(‘pl_copyright_line’) . ”;

    echo $display;

    [end code]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.


My Battle Tested Recommendations

Jetpack
Dreamhost
WordPress.com
CodeCanyon
SEMrush

Disclaimer: These recommendations contain affiliate links.