Login

Username:

Password:


Lost Password?
Forum Index   -   Topic Index
   General
     Website Back to Full Speed
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
FireHorse
Posted on: 2011/4/30 3:28
Webmaster
Joined: 1970/1/1
From:
Posts: 1
Website Back to Full Speed
Hi Everyone

Many of you will have noticed I was offline last 2 days, this was due to a line fault. Telstra was out this morning and repaired a broken wire and everything is back to full speed again. I have noticed things very slow for the last 2 weeks so I am hoping the improved speed will be noticable for you all

thanks for your patience
FireHorse
ReddFigg
Posted on: 2011/5/1 3:52
Just popping in
Joined: 1970/1/1
From:
Posts: 0
Re: Website Back to Full Speed
Hi Fire (F)

Glad to see things are looking up! It was taking a very long time to submit posts.

I was wondering when you are going to change the trophies on the front page to reflect season 2 of 2010 as we are nearing the end of season 1 for 2011?

Cheers,
Redd
ReddFigg
Posted on: 2011/5/1 20:44
Just popping in
Joined: 1970/1/1
From:
Posts: 0
Re: Website Back to Full Speed
Hiyas Fire (F)

Just a few questions regarding profile trophies.

Here are some stats for KFC ? Kewl Friends Trivia C team who was moved from C grade into A grade by the system. The team is hazel, zippy, chicky and mechie. If you look at the bottom left of the membership profiles, the trophies are posted there. Here are my findings:

http://triviaarena.com/xoops/modules/profile/userinfo.php?uid=658 That is hazeleyednanny?s profile that shows her trophies. For some reason she has no second season trophy although they were awarded and she did have one a few weeks ago! She did play both season 1 and 2 with KFC in 2010.

http://triviaarena.com/xoops/modules/profile/userinfo.php?uid=227 That is zippy?s profile which shows two gold trophies in B grade! Zippy has never in her life played in B grade so both trophies are wrong and second season 2010 shows 2nd place trophy in C grade, and KFC won gold in the second season as shown below. So ALL of zippy?s trophies are incorrect. Does this affect the grading system?

http://triviaarena.com/xoops/modules/profile/userinfo.php?uid=42 There is chickynicky?s profile that has no 2010 trophies at all! Despite the fact she played both seasons in 2010 with Kewl Friends Trivia and trophies were awarded as shown below.

http://triviaarena.com/xoops/modules/profile/userinfo.php?uid=693 This is Mechie?s profile. She also doesn?t have a second season 2010 trophy although trophies were awarded. See below.

FINAL C GRADE MATCH - SEASON 2 ? 2010 ? KFC vs OAH
cheekygirl71 : !award 1st KFC C
StaffBot : hands HazeleyedNanny a shiny 1st place trophy Congratulations
StaffBot : hands Mechie07 a shiny 1st place trophy Congratulations
StaffBot : hands Zippy a shiny 1st place trophy Congratulations
eastcoastgirl : Terrific season, OAH..
StaffBot : hands chickynicky a shiny 1st place trophy Congratulations

http://triviaarena.com/xoops/modules/ ... ewtopic.php?topic_id=1175

here are some stats for KFB - Kewl Friends Trivia B grade team which is and has been lady, ddee, and ruserious

http://triviaarena.com/xoops/modules/profile/userinfo.php?uid=792
those are ddee?s trophies. Dee played B grade in Kewl Friends Trivia in both season 1 and 2, 2010. Trophy one shows gold in D grade in 2010 that is not correct because ddee played the first season in B grade, and season two shows second place in B grade that is also incorrect because KFB won gold in the second season. See trophies awarded below:

http://triviaarena.com/xoops/modules/profile/userinfo.php?uid=181
ruserious?s trophies have been reversed putting second season trophy in first place.

http://triviaarena.com/xoops/modules/profile/userinfo.php?uid=145
lady?s trophies have also been reversed putting second season trophy in first position.

FINAL B GRADE MATCH ? SEASON 2 ? 2010 ? KFB vs THC
StaffBot : hands ddee a shiny 1st place trophy Congratulations
StaffBot : hands ruserious213 a shiny 1st place trophy Congratulations
StaffBot : hands lady a shiny 1st place trophy Congratulations

http://triviaarena.com/xoops/modules/ ... ewtopic.php?topic_id=1172

This link below shows results for season 1 final game in 2010. DOH vs KFB in which DOH won first place gold. As you can see ddee was on the KFB team in season one in B grade, so she does not have a gold in D grade in season one as is on her profile. The coach had appropriately moved ddee from D grade to B grade in the year 2010 to reflect her skill level.

http://triviaarena.com/xoops/modules/ ... ewtopic.php?topic_id=1078

Any idea what is happening Firehorse? These trophies are not correct. How do trophies get added to the profiles?

Look forward to your response.

Cheers,
Redd
FireHorse
Posted on: 2011/5/2 1:32
Webmaster
Joined: 1970/1/1
From:
Posts: 1
Re: Website Back to Full Speed
Must be something screwed up in the code, I will go through it to find the bug, if anyone else can spot it let me know



; ==== Trophies and Awards Records ====

this file awards trophies to whole teams at presentation times with !award command (umpires only)
insert trophies to database and records data in 2 files  LeagueResults.ini
; and  awards.ini allows deleting by entire year only and shows awards in entire years
IMPORTANT line 62 contains the year table awards are to be inserted intoplease check this is correct

on 
*:TEXT:!award*:#:{
  
if ($hammervar(Umpire$nick) == $null) {
    
amsg ERROROnly Umpires may Award Trophies (type !showumps)
    
halt
  

  if (
$nick !isop #) {
    
amsg please take your hammer (+q$nick
    halt
  
}
  if ( !
$mysql_status ) { mysql_connect localhost 3306 }
  if ($
== $null) { amsg ERRORFormat = !award Place Team Grade halt }
  if (
$len($4) > 1) { amsg ERRORFormat = !award Place Team Grade halt }
  if ($
== 1st) var %thisaward 1
  
elseif ($== 2nd) var %thisaward 2
  
elseif ($== 3rd) var %thisaward 3
  
elseif ($== 4th) var %thisaward 4
  
elseif ($== seasonchamp) { 
    
set %thisaward SC
    set 
%thisAwardNick $3
    set 
%awardGrade $4
    set 
%AwardSeason $5
    AwardSeasonChamp
    halt
  
}
  elseif ($
== gradechamp) {
    
set %thisaward GC
    set 
%thisAwardNick $3
    set 
%awardGrade $4
    set 
%AwardSeason $5
    AwardGradeChamp
    halt
  
}
  else  { 
amsg ERRORFormat = !award Place Team Grade (eg 4th) | halt }
  if ($
== A) || ($== B) || ($== C) || ($== D) || ($== E)  set %awardGrade $upper($4)
  else { 
amsg ERROROut of RangeGrade does not exist halt }
  
set %thisteam $3
  set 
%awardTuple img]../../images/trophies/Trophy $+ %awardGrade $+ %thisaward $+ .jpg[/img
  if ( 
$readinileague/teamstats.iniGrade, %thisteam) == $null ) { amsg Team %thisteam not Listed $2 please try again halt }
  
set %team.grade $readinileague/teamstats.iniGrade, %thisteam)
  
set %awardYr $asctime(yyyy)
  var %
1
  
while $inileague/grades.ini,%team.grade,%x) { 
    if ( 
$readinileague/grades.ini, %team.grade,$inileague/grades.ini, %team.grade,%x))  == %thisteam ) { 
      
set %thisAwardNick $inileague/grades.ini,%team.grade,%x)
      
set %AwardUID $readiniUID.iniUID, %thisAwardNick)
      if (%
AwardUID == $null) { amsg ERRORNo Valid UID for %thisAwardNick (trophies.mrc) | return }
      if (
$readiniLeagueResults.ini, %currentseason, %thisAwardNick) != $null) { amsg ERRORAward Already Presented for Team %thisteam in Season %currentseason halt }
      if (
$awardVar(%awardYr, %thisAwardNick) != $null) {
        
set %yourAwards $awardVar(%awardYr, %thisAwardNick
        
set %newawards %yourAwards %awardTuple
      
}
      else 
set %newawards %awardTuple
      
if (%awardYr == $null) || (%newAwards == $null) || (%thisAward == $null) { amsg ERRORMissing Token for write (awards) | return }
      
writeini  LeagueResults.ini %currentseason %thisAwardNick %thisteam $+ %team.grade $+ %thisAward
      writeini  awards
.ini %awardYr %thisAwardNick %newawards
      mysql_query LeagueTeamAwards UPDATE  profile SET awards 
$+ $right(%awardYr2) $+ = $+ ' $+ %newawards $+ ' where profileid= $+ %AwardUID
      amsg hands 
%thisAwardNick a shiny (*) $2 place (*) trophy (y)  Congratulations (h5)
    }
    
inc %x
  
}
  
awardUnset
}

alias AwardSeasonChamp {
  if (
$len(%AwardSeason) != 3) || (%AwardSeason !isnum) { amsg ERRORFormat = !award gradechamp Nick Grade Season halt }
  if (%
awardGrade !isin ABCDE) { amsg ERRORFormat = !award seasonchamp Nick Grade Season halt }
  
set %AwardUID $readiniUID.iniUID, %thisAwardNick)
  if (%
AwardUID == $null) { amsg ERRORNo Valid UID halt }
  
set %awardYr 20 $+ $right(%AwardSeason2)
  
set %awardTuple img]../../images/trophies/Trophy $+ %thisaward $+ .jpg[/img]
  if (
$readiniLeagueResults.iniSeasonChamp, %awardGrade $+ %AwardSeason, %thisAwardNick) != $null) { amsg ERRORSeason Champ Already Presented in Season %AwardSeason halt }
  if (
$awardVar(%awardYr, %thisAwardNick) != $nullset %yourAwards $awardVar(%awardYr, %thisAwardNick
  
set %newawards %yourAwards %awardTuple
  writeini  LeagueResults
.ini SeasonChamp %awardGrade $+ %AwardSeason %thisAwardNick
  writeini  awards
.ini %awardYr %thisAwardNick %newawards
  mysql_query LeagueTeamAwards UPDATE  profile SET awards 
$+ $right(%AwardSeason2) $+ = $+ ' $+ %newawards $+ ' where profileid= $+ %AwardUID
  amsg 
(*)(*) %thisawardnick is Crowned Season Champ for season %AwardSeason (*)(*)
}

on admin:TEXT:!insertaward*:#:{
  
if (!$6) { amsg ERRORFormat = !insertaward Place Grade Nick Season Team halt }
  if ( !
$mysql_status ) { mysql_connect localhost 3306 }

  ; --- 
Place Check ---
  if ($
== 1st) var %thisaward 1
  
elseif ($== 2nd) var %thisaward 2
  
elseif ($== 3rd) var %thisaward 3
  
elseif ($== 4th) var %thisaward 4
  
else  { amsg ERRORFormat = !insertaward Place Grade Nick Season TeamType @awards for commands halt }

  ; --- 
Grade Check ---
  if ($
!isin ABCDEset %thisAwardGrade $upper($3)
  else { 
amsg ERROROut of RangeGrade does not exist halt }

  ; --- 
Nick Check ---
  
set %thisAwardNick $4
  set 
%AwardUID $readiniUID.iniUID, %thisAwardNick)
  if (%
AwardUID == $null) { amsg ERRORNo Valid UIDCheck the Nick halt }

  ; --- 
Season Check ---
  
set %awardYr $asctime(yyyy)
  
set %AwardSeason $5
  
if ($right(%AwardSeason2) != $right(%awardYr2)) set %awardYr 20 $+ $right(%AwardSeason2)
  if (
$len($5) != 3) { amsg ERRORInvalid Season halt }
  if (%
awardYr !isnum) || (%awardYr 2003) { amsg ERRORInvalid Year halt }

  ; --- 
Team Check ---
  if (
$len($6) != 3) { amsg ERRORNo Such Team halt }
  
set %awardteam $6

  
; --- Check Awarded ---
  if (
$readiniLeagueResults.ini, %AwardSeason, %thisAwardNick) != $null) { amsg ERRORAward Already Presented for %thisAwardNick in Season %AwardSeason halt }

  var %
awardTuple = [ img]../../images/trophies/Trophy $+ %thisAwardGrade $+ %thisaward $+ .jpg[/img
  
set %yourAwards $awardVar(%awardYr, %thisAwardNick)
  
set %newawards %yourAwards %awardTuple
  writeini  LeagueResults
.ini %AwardSeason %thisAwardNick %awardteam $+ %thisAwardGrade $+ %thisaward 
  writeini  awards
.ini %awardYr %thisAwardNick %newawards
  mysql_query LeagueIndiviAwards UPDATE  profile SET awards 
$+ $right(%awardYr2) $+ = $+ ' $+ %newAwards $+ ' where profileid= $+ %AwardUID
  amsg awards 
$2 place Trophy to %thisAwardNick (yCongratulations (h5)
  
awardUnset
}

on admin:TEXT:!remaward*:#:{
  
if ($== $null) { amsg ERRORFormat = !remaward Year Nick halt }
  if ($
2004) || ($!isnum) || ($len($2) != 4) { amsg ERRORInvalid Year  halt }
  var %
awardYr = $2
  
var %thisAwardNick = $3
  
if ($readiniawards.ini, %awardYr, %thisAwardNick ) == $null) { amsg ERRORNo Awards Found for $3 in %awardYr halt }
  var %
AwardUID $readiniUID.iniUID, %thisAwardNick)
  if (%
AwardUID == $null) { amsg ERRORNo Valid Member IDcheck nick halt }
  var %
1
  
while %{
    var %
awardseason = %$+ $right(%awardYr2)
    if (
$readiniLeagueResults.ini, %awardseason, %thisAwardNick ) != $null) { 
      
remini  LeagueResults.ini %awardseason %thisAwardNick 
      amsg award in season 
%awardseason removed
    
}
    
inc %x
  
}
  
remini  awards.ini %awardYr %thisAwardNick
  mysql_query LeagueIndiviAwards UPDATE  profile SET awards 
$+ $right(%awardYr2) $+ =0 where profileid= $+ %AwardUID
  amsg Awards 
for $3 in %awardYr Reset
}

on *:TEXT:!showawards*:#:{
  
;if ($== $null) { amsg ERRORFormat = !showaward Year (Nick) | halt }
  if ($
2004) || ($!isnum) || ($len($2) != 4) { amsg ERRORInvalid Year (4 digits) | halt }
  var %
awardYr = $2
  
if ($== $null) var %thisAwardNick $nick
  
else {
    var %
thisAwardNick = $3
    
var %AwardUID $readiniUID.iniUID, %thisAwardNick)
    if (%
AwardUID == $null) { amsg ERRORNo Valid Member ID Found for %thisAwardNick check name halt }
  }
  var %
1
  
var %0
  
while %{
    var %
awardseason = %$+ $right(%awardYr2)
    if ( 
$readiniLeagueResults.ini, %awardseason, %thisAwardNick) != $null) {
      var %
showawards $readiniLeagueResults.ini, %awardseason , %thisAwardNick)
      
inc %y
      amsg Season 
%%awardYr %thisAwardNick placed position $right(%showawards1in $mid(%showawards,4,1Grade
    
}
    
inc %x
  
}
  if (%
== 0amsg No Awards Found for %thisAwardNick in %awardYr
}
alias awardVar 
  return 
$readiniawards.ini, %awardYr, %thisAwardNick )
}
alias awardUnset {
  unset %
thisAwardNick
  
unset %AwardUID
  
unset %thisAwardGrade
  
unset %awardYr
  
unset %newawards 
  
unset %yourAwards
  
unset %awardTuple
  
unset %awardGrade
  
unset %thisteam
  
unset %team.grade
  
unset %checkAwarded
  
unset %checkAwardNick
  
unset %AwardSeason
  
unset %awardteam
}


FireHorse
Posted on: 2011/5/2 2:12
Webmaster
Joined: 1970/1/1
From:
Posts: 1
Re: Website Back to Full Speed
After reviewing the above code I have come to the conclusion it is due to finals matches being played in 2011 and not 2010. I am as yet uncertain exactly how it went wrong or how to fix it yet so will need further time to study it.

As is normally the case with the code I write there is a backup redundancy record system so I will write code to extract all records from that system and re-populate the trophies database. This will take about 3 hours to write this code so might take me a few days to get to it.

Will keep you posted as I go

cheers
FireHorse
Threaded | Newest First Previous Topic | Next Topic | Top

Register To Post