Prediction Football Forum Index Prediction Football
Prediction Football
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

2.14 Wallchart second fix

 
Post new topic   Reply to topic    Prediction Football Forum Index -> Patches
View previous topic :: View next topic  
Author Message
JohnA
Site Admin


Joined: 11 Jul 2003
Posts: 4032
Location: Washington DC

PostPosted: Tue May 30, 2006 9:51 pm    Post subject: 2.14 Wallchart second fix Reply with quote

This is a replacement for the wallchart.php file. This contains a fix to prevent the user entering scores when the games is in the past.

http://www.predictionfootball.com/files/patches/v214/wallchart.zip


Last edited by JohnA on Wed May 31, 2006 3:57 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
AR



Joined: 29 Jan 2006
Posts: 50

PostPosted: Tue May 30, 2006 10:14 pm    Post subject: Reply with quote

Does it work with the fix of the tournamentfunctions.php

in the topic
http://www.predictionfootball.com/forum/viewtopic.php?t=1642

Or have i replace the original tournamentfunctions.php ???
Back to top
View user's profile Send private message
akky



Joined: 04 Mar 2006
Posts: 332
Location: UK South Coast

PostPosted: Tue May 30, 2006 10:18 pm    Post subject: Reply with quote

John

I've replaced it and got the below error

Parse error: parse error, unexpected $ in PredictionLeague/wallchart.php on line 766

Steve
_________________
Steve

www.help-2.com

comments welcomed.

announcement tonite
Back to top
View user's profile Send private message Visit poster's website
SilverBoy



Joined: 20 Sep 2005
Posts: 53

PostPosted: Tue May 30, 2006 10:37 pm    Post subject: Reply with quote

Hi john, I just downloaded the script now, did you fix the package or I must patch my copy?

anyway what is wallchart exactlly? and is there a way to do World cup prediction in my site with v 2.14?
Back to top
View user's profile Send private message Visit poster's website
JohnA
Site Admin


Joined: 11 Jul 2003
Posts: 4032
Location: Washington DC

PostPosted: Wed May 31, 2006 1:49 am    Post subject: Reply with quote

Silver, please post your question in a forum other than patches.

The file here replaces the wallchart.php from 2.13. The other wallchart patch replaces tournament functions.php.

akky, that line should be:
<div align="right"> <span class="teamname"><?php echo $teams['G47F']; ?></span>

What does yours have?

JohnA
_________________
Prediction Football
'You know the score'
Back to top
View user's profile Send private message Visit poster's website
AR



Joined: 29 Jan 2006
Posts: 50

PostPosted: Wed May 31, 2006 7:38 am    Post subject: Reply with quote

Hi John,

I think it's not the complete code
See the last line

<div align="right"&g
Back to top
View user's profile Send private message
akky



Joined: 04 Mar 2006
Posts: 332
Location: UK South Coast

PostPosted: Wed May 31, 2006 12:01 pm    Post subject: Reply with quote

as AR said, your posted code seems incomplete. Is their a post length set up on the forums. If so, you may have pasted more than it would accept.

Steve
_________________
Steve

www.help-2.com

comments welcomed.

announcement tonite
Back to top
View user's profile Send private message Visit poster's website
JohnA
Site Admin


Joined: 11 Jul 2003
Posts: 4032
Location: Washington DC

PostPosted: Wed May 31, 2006 3:56 pm    Post subject: Reply with quote

http://www.predictionfootball.com/files/patches/v214/wallchart.zip
_________________
Prediction Football
'You know the score'
Back to top
View user's profile Send private message Visit poster's website
AR



Joined: 29 Jan 2006
Posts: 50

PostPosted: Wed May 31, 2006 6:21 pm    Post subject: Reply with quote

I saw a little bug

i get these error's

Code:
Notice: Undefined variable: Txt_Second_Round in /home/httpd/vhosts/XXXXXXXXX/httpdocs/wallchart.php on line 795


Code:
Notice: Undefined variable: Txt_Second_Round in /home/httpd/vhosts/XXXXXXXX/httpdocs/wallchart.php on line 858


i saw in the language file
on line 485 $Txt_Roundsof16 = "Round of 16";

So i changed the code Txt_Second_Round in wallchart.php on line 795 and 858 in $Txt_Roundsof16

or i have to change $Txt_Roundsof16 to $Txt_Second_Round on line 485
in my language file ?


Last edited by AR on Thu Jun 05, 2008 9:42 am; edited 1 time in total
Back to top
View user's profile Send private message
JohnA
Site Admin


Joined: 11 Jul 2003
Posts: 4032
Location: Washington DC

PostPosted: Wed May 31, 2006 8:21 pm    Post subject: Reply with quote

It needs the updated lang.english.php

Last few entries:
$Txt_Join = "Join";
$Txt_Enable_Mini_leagues = "Enable Mini Leagues";
$Txt_Accept = "Accept";
$Txt_Unlock = "Unlock";
$Txt_Unlocked = "Unlocked";
$Txt_Lock = "Lock";
$Txt_Second_Round = "Second Round";
_________________
Prediction Football
'You know the score'
Back to top
View user's profile Send private message Visit poster's website
masterplumber



Joined: 05 May 2006
Posts: 21

PostPosted: Wed May 31, 2006 10:15 pm    Post subject: Reply with quote

Does the wallchart take account of timezone offset? My server is in the US. I had to take 6 hours off each fixture (5 hours UK time difference plus 1 hour European time) in insertwk2006.php (e.g. 18:00 changed to 12:00) to ensure that the fixtures displayed correctly in GMT for users in the UK.

Now when I look at the wallchart the fixtures are displaying the server time i.e. all of the fixtures are 6 hours out.
_________________
The Midnight Plumbers
Back to top
View user's profile Send private message Visit poster's website
JohnA
Site Admin


Joined: 11 Jul 2003
Posts: 4032
Location: Washington DC

PostPosted: Thu Jun 01, 2006 2:37 am    Post subject: Reply with quote

Thanks for the heads up.

JohnA
_________________
Prediction Football
'You know the score'
Back to top
View user's profile Send private message Visit poster's website
JohnA
Site Admin


Joined: 11 Jul 2003
Posts: 4032
Location: Washington DC

PostPosted: Thu Jun 01, 2006 3:35 am    Post subject: Reply with quote

The wallchart link has been updated to include the lang file and date fixes. You can also get this in 2.15 from the donors section.

JohnA
_________________
Prediction Football
'You know the score'
Back to top
View user's profile Send private message Visit poster's website
masterplumber



Joined: 05 May 2006
Posts: 21

PostPosted: Thu Jun 01, 2006 9:27 pm    Post subject: Reply with quote

Installed and appears to be working ok.

Couple of points about the English language file.

There is a typo (says predictoin rather than prediction somewhere within the help section

'Round of 16' is more commonly known as 'Last 16'

I know these are simple cosmetic things but thought you might like to know

Great work though - now looking pretty good
_________________
The Midnight Plumbers
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Prediction Football Forum Index -> Patches All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group