Link to "Adding team logos"

Message board links from 2010 as taken from the Internet Wayback Machine pages.
Post Reply
User avatar
admin
Site Admin
Posts: 159
Joined: Mon Aug 26, 2013 3:47 pm

Link to "Adding team logos"

Post by admin »

User avatar
admin
Site Admin
Posts: 159
Joined: Mon Aug 26, 2013 3:47 pm

Re: Link to "Adding team logos"

Post by admin »

08-23-2009 1:14 PM
mikehall
Top 10 Contributor
Joined on 08-09-2009
Chandler, AZ
Posts 456

Adding Team Logos
Reply Contact

For everyone who's asked: yes, you can now display team logos. You'll find the necessary files on the downloads page. To add the logos, just replace or add the included files to your existing pool directory.
Filed under: logos, customization
08-23-2009 6:06 PM In reply to
drizzt09
Top 10 Contributor
Joined on 08-22-2009
Ontario Canada
Posts 322

Re: Adding Team Logos
Reply Contact

awesome, looks good but something went wrong with updateScores.asp

When I log in as admin and go to update scores I get this error:

Microsoft VBScript runtime error '800a01f4'

Variable is undefined: 'ENABLE_SCORES_ADDON'

/w/a/v/waverly/updateScores.asp, line 12



11 <% '[ SCORES ADD-ON START ]
12 if ENABLE_SCORES_ADDON then %>
13 <link rel="stylesheet" type="text/css" href="styles/loadDialogs.css" />
14 <% end if
15 '[ SCORES ADD-ON END ] %>



Looks like it used to be:

11 <!-- [SCORES MOD START] -->
12 <link rel="stylesheet" type="text/css" href="styles/loadDialogs.css" />
13 <!-- [SCORES MOD END] -->


08-23-2009 6:48 PM In reply to
mikehall
Top 10 Contributor
Joined on 08-09-2009
Chandler, AZ
Posts 456

Re: Adding Team Logos
Reply Contact

You may be missing this in your config,asp file:

'--------------------------------------------------------------------------
' Add-ons.
'
' Note that these components rely on external web sources and are subject
' to changes with those sources. If problems occur, you can disable them
' here.
'--------------------------------------------------------------------------

'Enable online payments (via PayPal) flag.
const ENABLE_PAYPAL_ADDON = true

'Online payment settings.
const PAYPAL_BUSINESS = "admin@example.net"
const PAYPAL_ITEM_NAME = "2009 Football Pool"
const PAYPAL_INVOICE_PREFIX = "FP09-"

'Enable live scoreboard and scores loader flag.
const ENABLE_SCORES_ADDON = true

'**************************************************************************
'* End configuration code. *
'**************************************************************************

Those were added to the final 3.0 version. Just cut and paste those in and you should be fine.
08-23-2009 8:36 PM In reply to
drizzt09
Top 10 Contributor
Joined on 08-22-2009
Ontario Canada
Posts 322

Re: Adding Team Logos
Reply Contact

You the man, that did it. Thanks.
08-24-2009 12:09 PM In reply to
Smokey Jones
Top 10 Contributor
Joined on 08-24-2009
Posts 84

Re: Adding Team Logos
Reply Contact

Sweet little mod here Mike! Really simple to implement!
Filed under: version 3.0, logos, customization
08-30-2009 9:45 AM In reply to
Richard
Top 50 Contributor
Joined on 08-30-2009
Posts 8

Re: Adding Team Logos
Reply Contact

Thanks MIke!

I had been doing this every year manually, thanks for making it much easier!
09-02-2009 9:11 AM In reply to
jkl
Top 75 Contributor
Joined on 09-01-2009
Posts 1

Re: Adding Team Logos
Reply Contact

Hi Mike,

I was wondering if the team logos were available for version 2.3 as well?

Thanks,

Jake
09-02-2009 2:36 PM In reply to
mikehall
Top 10 Contributor
Joined on 08-09-2009
Chandler, AZ
Posts 456

Re: Adding Team Logos
Reply Contact

I haven't been doing any updates for the older version but if you want to try adding it yourself it's not too hard.

You'll need to take these files from the download and add them to your pool:
graphics/teamLogos.png
includes/teamLogos/asp
styles/teamLogos.css

For any page you want to use them on, add the style sheet and the include file:

<link rel="stylesheet" type="text/css" href="styles/teamLogos.css" />

<!-- #include file="includes/teamLogos.asp" -->

Then you can add a logo anywhere on the page by inserting this:

<% = call DisplayTeamLogo(teamID) %>

where teamID will vary depending on the page you're working on. For example, in entryForm.asp it would be games(i).visitorID or games(i).homeID.

Page 1 of 1 (8 items)
Post Reply