View Single Post
  #1  
Old 05-10-2004, 07:02 PM
Zach's Avatar
Zach Zach is offline
 
Join Date: Nov 2001
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Live Sports Scores (wouldnt really call this a hack?)

This is more or less just a template mod, or whatever


An two examples of forums with it -
http://www.ecardbets.com/forums/index.php?
http://sportsforum.ws/

All that needs to be added, on any page, not just vBulletin is this -

Code:
<!---Start Fantasy Sports Wire Scoreboard http://www.fantasysportswire.com --->
<script src="http://fantasybaseball.ws/scripts/FantasySportsWire.com.scoreboard.js"></script>
<center style="display:none"><a href=\"http://sportsforum.ws/\">Fantasy Football</center>
<!---End Fantasy Sports Wire Scoreboard http://www.fantasysportswire.com --->


That will put the first example in the page - (the second example is slightly modified to fit into my page)

Two nicest things about this ticker is the transition (IE only) is very smooth - have not looked at it in Netscape, but assume it just changes. Also if you accept cookies, third party cookies in this instance, or put fantasybaseball.ws in your list of accepted cookies, it will remember what the last score was that you saw - so as someone changes pages, it just keeps going forward showing you the next score, instead of looking at the same score over and over that just happens to be the first one.


The first example, all that was changed was the navbar, dropped the stuff out of the box down below, and put the scores in that box - seemed to fit well like that -

took

Code:
<if condition="is_array($navbits)">
			<table cellpadding="0" cellspacing="0" border="0">
			<tr valign="bottom">
				<td><a href="#" onclick="history.back(1)"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
				<td>&nbsp;</td>
				<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php?$session[sessionurl]">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
			</tr>
			<tr>
				<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
			</tr>
			</table>			
		<else />
			<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
		</if>
out from where it is, and put it on the very bottom after everything else, added

Code:
<br />
at the very end after that

then where that was added the code for the scorebaord

Code:
<!---Start Fantasy Sports Wire Scoreboard http://www.fantasysportswire.com --->
<script src="http://fantasybaseball.ws/scripts/FantasySportsWire.com.scoreboard.js"></script>
<center style="display:none"><a href=\"http://sportsforum.ws/\">Fantasy Football</center>
<!---End Fantasy Sports Wire Scoreboard http://www.fantasysportswire.com --->

and last there was two

Code:
<br />
<br />
In there, that was the last thing outputted before, I removed one of them so its just

Code:
<br />


(which in essense takes the navbar location and puts one break on either side of it so it looks ok)


As I said I wouldnt call this a hack but figured outers might like it. I will be honest, its a tool to promote myself - but I think its much better than any other scoreboard I have seen - there is not a logo to another site or anything on it non stop, or any other bs, the link in the scoreboard bit, I am not going to run around and see if its there or not, but since its not gonna be visible or take up space, no reason to remove it. It will just be centered off in nowhere land
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01198 seconds
  • Memory Usage 1,783KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete