Live odds Script not running on website
-
I am running a live odd script on my sports website. https://wiseguysports.com/las-vegas-odds/1
But it script is not running fully. it keeps showing loading… all the the time.
But if i run the file separate not within a website it works fine.
https://wiseguysports.com/lines.php
Does any one can help to solve this issue.
-
What is the script?
if you go to that link: https://wiseguysports.com/lines.php
it shows some games states and other things.
Here is the script
<?php include 'host.php'; $sport = $_GET['sport']; $period = $_GET['period']; if (!$sport) $sport = 'nfl'; $default_sport = $sport; if (!$period) $period = '0'; if (!get_magic_quotes_gpc()) { $host = addslashes ($host); $sport = addslashes ($sport); $period = addslashes ($period); } ?> <html> <head> <title>Live Odds</title> <link rel="stylesheet" media="all" type="text/css" href="https://freeodds.sportsoptions.com/SOFreeOddsServer/odds.css"> <script language="JavaScript" src="https://freeodds.sportsoptions.com/SOFreeOddsServer/combined_Obfs.js" type="text/javascript"></script> </head> <body <?php echo 'onLoad="javascript:get_books();"';?>> <table cellspacing="0" cellpadding="0" width="1000"> <tr> <td valign="center" class="whitebg-left" width="400"> Sport - <?php if ($sport == 'nfl') echo '<b>NFL</b> | '; else echo '<a href="lines.php?sport=nfl&period=0">NFL</a> | '; if ($sport == 'ncaafb') echo '<b>College FB</b> | '; else echo '<a href="lines.php?sport=ncaafb&period=0">College FB</a> | '; if ($sport == 'nba') echo '<b>NBA</b> | '; else echo '<a href="lines.php?sport=nba&period=0">NBA</a> | '; if ($sport == 'ncaabb') echo '<b>College BK</b> | '; else echo '<a href="lines.php?sport=ncaabb&period=0">College BK</a> | '; if ($sport == 'mlb') echo '<b>MLB</b> | '; else echo '<a href="lines.php?sport=mlb&period=0">MLB</a> | '; if ($sport == 'nhl') echo '<b>NHL</b> | '; else echo '<a href="lines.php?sport=nhl&period=0">NHL</a> | '; if ($sport == 'cfl') echo '<b>CFL</b> | '; else echo '<a href="lines.php?sport=cfl&period=0">CFL</a> | '; if ($sport == 'arena') echo '<b>Arena</b> | '; else echo '<a href="lines.php?sport=arena&period=0">Arena</a> | '; if ($sport == 'wnba') echo '<b>WNBA</b>'; else echo '<a href="lines.php?sport=wnba&period=0">WNBA</a>'; ?> <p/> Lines - <?php if ($period == '0') echo '<b>Game</b> | '; else echo '<a href="lines.php?sport='.$default_sport.'&period=0">Game</a> | '; if ($period == '1') echo '<b>1st Half</b> | '; else echo '<a href="lines.php?sport='.$default_sport.'&period=1">1st Half</a> | '; if ($period == '2') echo '<b>2nd Half</b> | '; else echo '<a href="lines.php?sport='.$default_sport.'&period=2">2nd Half</a> | '; if ($period == '3') echo '<b>ML/RL</b>'; else echo '<a href="lines.php?sport='.$default_sport.'&period=3">ML/RL</a>'; ?> <p/> <!--Get changes every --><input type="hidden" size="4" id="changes_interval" value="60"><!-- seconds--> <input type="button" value="Clear Changes" onClick="clear_changes()"> <input id="toggle_game_gone_button" type="button" value="Hide started games" onClick="toggle_game_gone()"> <input type="button" value="Options" onClick="display_options_popup()"> </td> <td valign="center" align="center"> <a href="https://www.sportsoptions.com/" target="_blank"><img src="https://www.sportsoptions.com/promo/so_oddspage.gif" border="0"></a> </td> <td valign="center" align="right"> <table border="0" cellspacing="1" cellpadding="1"> <tr><td id="show_2_minute_color" class="redbg-right" height="10"> Line move in less than <b>2 minutes</b> </td></tr> <tr><td id="show_5_minute_color" class="yellowbg-right" height="10"> Line move in last <b>2-5 minutes</b> </td></tr> <tr><td id="show_10_minute_color" class="greenbg-right" height="10"> Line move in last <b>5-10 minutes</b> </td></tr> <tr><td class="whitebg-right" height="10"> No Line move in last <b>10 minutes</b> </td></tr> <tr><td id="show_game_gone_color" class="game-gone-left">Games with this background have started</td></tr> </table> </td> </tr> </table> <hr> <?php $url = 'https://freeodds.sportsoptions.com/SOFreeOddsServer/options_popup.html'; echo file_get_contents ($url); ?> <div id="odds_table"><?php if ($sport) echo '<h2>Loading page...</h2><hr>'; ?></div> <font color="#FFFFFF"><div id="last_check"></div></font> <div id="debug"></div> <script language="JavaScript"> table_width = 940; nofollow = false; sport_name = '<?php echo $default_sport; ?>'; page_period = '<?php echo $period; ?>'; books_url = '<?php echo 'books.php?host='.$host; ?>'; lines_url = '<?php echo 'schedule.php?host='.$host.'&sport='.$default_sport.'&period='.$period; ?>'; changes_url = '<?php echo 'schedule.php?host='.$host.'&sport='.$default_sport.'&period='.$period; ?>'; line_history_url = '<?php echo 'line_history.php?host='.$host; ?>'; clear_time = GetCookie ("clear-time-" + sport_name + page_period); if (!clear_time) clear_time = 0; options_popup = document.getElementById ("options_popup"); set_options_popup_values (); add_banner = false; var banner_counter = 0; function get_banner () { switch (++banner_counter) { case 1: return ('<span style="display:block;background-color:black;"><img src="https://www.sportsoptions.com/images/sports_logo.png"></span>'); case 2: return ("the second banner"); } return (""); // empty string for no banner } </script> </body> </html>
Do you know if you can get support from the people who gave you this script?
I have contact them they said they no idea how to use in a WordPres website.
Do you know which theme you’re using?
Sportimo Theme
I think adding this script to your theme will require heavy modification to a template file and so I recommend contacting your theme vendors/ authors about the best way to do this.
Where did you get this odds script? I’ve been looking for this script as I’ve seen it on other sites. I have looked everywhere.
- The topic ‘Live odds Script not running on website’ is closed to new replies.