diff --git a/Templates/Ajax/quest_core.tpl b/Templates/Ajax/quest_core.tpl index 903e09ea..b2ddaf15 100644 --- a/Templates/Ajax/quest_core.tpl +++ b/Templates/Ajax/quest_core.tpl @@ -628,7 +628,7 @@ $temp['uid']=$session->userinfo['id']; $ranking->procRankReq($temp); $displayarray = $database->getUserArray($temp['uid'],1); $rRes=$ranking->searchRank($displayarray['username'],"username"); -if ($rRes!=$rSubmited){ ?> +if (!isset($rSubmited) || $rRes!=$rSubmited){ ?> {"markup":"\n\t\t

\"\" <\/h1>
”<\/i>

<\/div>
\"\/>
<\/span><\/div>\n\t\t

<\/div>\n\t\t","number":"-16","reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} {"markup":"\n\t\t

\"\" <\/h1>
”<\/i>

<\/p>\"Lumber\"100  \"Clay\"90  \"Iron\"100  \"Crop\"60  <\/div>
<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":16,"reward":{"wood":100,"clay":90,"iron":100,"crop":60},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} @@ -958,7 +958,7 @@ $temp['uid']=$session->userinfo['id']; $ranking->procRankReq($temp); $displayarray = $database->getUserArray($temp['uid'],1); $rRes=$ranking->searchRank($displayarray['username'],"username"); -if ($rRes!=$rSubmited){?> +if (!isset($rSubmited) || $rRes!=$rSubmited){ ?> {"markup":"\n\t\t

\"\" Task 4: Other Players<\/h1>
”In you play along with billions of other players. Click 'statistics' in the top menu to look up your rank and enter it here.”<\/i>

Order:<\/p>Look for your rank in the statistics and enter it here.<\/div>

<\/span><\/div>\n\t\t

<\/div>\n\t\t","number":-4,"reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":0} {"markup":"\n\t\t

\"\" Task 4: Other Players<\/h1>
”Exactly! That's your rank.”<\/i>

Your reward:<\/p>\"Lumber\"40  \"Clay\"30  \"Iron\"20  \"Crop\"30  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t","number":4,"reward":{"wood":40,"clay":30,"iron":20,"crop":30},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":0} @@ -1065,7 +1065,7 @@ $temp['uid']=$session->userinfo['id']; $ranking->procRankReq($temp); $displayarray = $database->getUserArray($temp['uid'],1); $rRes=$ranking->searchRank($displayarray['username'],"username"); -if ($rRes!=$rSubmited){ ?> +if (!isset($rSubmited) || $rRes!=$rSubmited){ ?> {"markup":"\n\t\t

\"\" Task 14: Advanced!<\/h1>
”Look up your rank in the player statistics again and enjoy your progress.”<\/i>

Order:<\/p>Look for your rank in the statistics and enter it here.<\/div>

<\/span><\/div>\n\t\t

<\/div>\n\t\t","number":"-18","reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":0} {"markup":"\n\t\t

\"\" Task 14: Advanced!<\/h1>
"Well done! That's your current rank."<\/i>

Your reward:<\/p>\"Lumber\"100  \"Clay\"90  \"Iron\"100  \"Crop\"60  <\/div>
Continue with the next task.<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":18,"reward":{"wood":100,"clay":90,"iron":100,"crop":60},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":0} diff --git a/Templates/Ajax/quest_core25.tpl b/Templates/Ajax/quest_core25.tpl index f31b4b4b..7bcd14af 100644 --- a/Templates/Ajax/quest_core25.tpl +++ b/Templates/Ajax/quest_core25.tpl @@ -630,7 +630,7 @@ $temp['uid']=$session->userinfo['id']; $ranking->procRankReq($temp); $displayarray = $database->getUserArray($temp['uid'],1); $rRes=$ranking->searchRank($displayarray['username'],"username"); -if ($rRes!=$rSubmited){ ?> +if (!isset($rSubmited) || $rRes!=$rSubmited){ ?> {"markup":"\n\t\t

\"\" <\/h1>
”<\/i>

<\/div>
\"\/>
<\/span><\/div>\n\t\t

<\/div>\n\t\t","number":"-18","reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} {"markup":"\n\t\t

\"\" <\/h1>
”<\/i>

<\/p>\"Lumber\"100  \"Clay\"90  \"Iron\"100  \"Crop\"60  <\/div>
<\/a><\/span><\/div>\n\t\t

<\/div>\n\t\t","number":18,"reward":{"wood":100,"clay":90,"iron":100,"crop":60},"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} @@ -874,7 +874,7 @@ $temp['uid']=$session->userinfo['id']; $ranking->procRankReq($temp); $displayarray = $database->getUserArray($temp['uid'],1); $rRes=$ranking->searchRank($displayarray['username'],"username"); -if ($rRes!=$rSubmited){?> +if (!isset($rSubmited) || $rRes!=$rSubmited){ ?> {"markup":"\n\t\t