Discussion Forums  >  Uncategorized

Replies: 6    Views: 306

cjbarnard
I hate code!
Profile
Posts: 34
Reg: Jan 10, 2011
UK
640
06/28/11 06:57 AM (14 years ago)

Viewing Score without taking the quiz?

Is there a way to be able to view the scores from my v1.5 quiz without having to resit the quiz each time? Can I also get users to leave an email address so that I can congratulate them on a high score?
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
06/28/11 08:30 AM (14 years ago)
I'd imagine that if you jump into the quiz screens in Xcode and find where it returns the 'submit score' input you'll find the path to the scoreboard somewhere in the code. Maybe not, have a peek, not on laptop right now or I would. Seems like it would then be feasible and easy to add that url to a 'view scoreboard' button. People might not like their email address being posted in a 'public' scoreboard, maybe best to capture that in some other way.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/28/11 08:38 AM (14 years ago)
a) See the Scores withthout resetting them. Not sure what this means? Do you mean save them somewhere? If so, use your own Scoreboard ULR and fetch/save the results on your end. b) Email: You can add a login screen somewhere, ask the user to login. If they are, the logged in users info will be passed into the scoreboard. This approach will allow you to figure out which of your users are taking the quiz.
 
cjbarnard
I hate code!
Profile
Posts: 34
Reg: Jan 10, 2011
UK
640
like
06/28/11 12:12 PM (14 years ago)
HI David, what I meant was taking the quiz again, not resetting the scores. At the moment the only way that I know to see the scores is to take the quiz myself to reveal the scoreboard at the end. Can I see the scores without doing this? When I enter the scoreboard URL into safari all I get is {childItems:[ ]}
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/28/11 12:19 PM (14 years ago)
Ah... I see what you mean. I can't think of a way to do this without customizing some things. If you can create your own scoreboard URL and save the results on your backend you could wire up a right-nav button to a Custom URL screen. This Custom URL screen would be on your server and would output all the scores in a friendly way to it looks pretty. Entering the ScoreBoard URL into Safari isn't going to produce any 'child results.' Child results are scores. This is because the backend needs to know what quiz-screen you're working with. The app merges this information into the querystring (look at the URL, see the brackets) at run-time. Have a look at the sample scroreboard script to setup your own.
 
cjbarnard
I hate code!
Profile
Posts: 34
Reg: Jan 10, 2011
UK
640
like
06/28/11 12:25 PM (14 years ago)
I do run a website (built in iWeb) for the charity that I built the app for (www.nsba.org.uk) so if I made a new page here www.nsba.org.uk/appscores could I host the scores there? i have looked at the sample script but have never been down the php road before :-/
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/28/11 07:43 PM (14 years ago)
In theory you could host a plain-text file for your scoreboard data to show the scores but I don't know how you'de be able to 'accept' the new scores? You'll need some server side logic (like PHP) that knows what to do with the results passed by the phone.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.