• Hey Guest. Check out your NeoGAF Wrapped 2025 results here!

A NeoGAF iPhone Web App

Status
Not open for further replies.
Holy crap!

I didn't think it would go live this soon.

Good job, ckohler. Thank you once again

Nitpicky ui thing: fonts for the new posting buttons "spoiler", "list", etc don't match the clean helvetica used everywhere else

Aside from that, it's great and am using it right now. :D

edit: ok, back on my computer, I have one request for v 2.1. an edit button for our posts :)
 
Yup, I was just locked out as well. I had my iPhone on sleep for around 20 minutes then was logged out from the web app. Tried to log in once and got the locked out email a minute later :(
 
one more bug to point out that's new in 2.0.

the time zone setting no longer works for me. it's set as "eastern" but times are showing up 4 hours ahead.

this is with me logged out of the webapp.
 
I just got this email after trying to log in:

Your account on NeoGAF has been locked because someone has tried to log into the account with the wrong password more than 5 times. You will be able to attempt to log in again in another 15 minutes.
 
Just got his screen that said:

Login Quota Reached

The failed log in quota has been reached. Please wait 15 minutes before trying again.

Any idea what this is about? I had successfully logged in earlier.
 
Thanks guys. I've turned off log in's until I can figure it out. My worry is that once someone fails their attempts, it blocks everyone from that point on because it's the same IP. :p
 
ckohler said:
Thanks guys. I've turned off log in's until I can figure it out. My worry is that once someone fails their attempts, it blocks everyone from that point on because it's the same IP. :p

Hey, one quirk about logins that I ran into when working on MobileGAF: make sure that you send the md5 hash in the POST request in all lower case. Not sure if that's the issue you're experiencing. Let me know if I can help.

Edit: I misread your post. Yeah, you're right the IP address is the issue, I locked myself out many times due to this while testing logins with my previous NeoGAF webapp.

Edit 2: Architecturally this sounds kinda tough. Short of connecting via a tor gateway or anonymizer, I think the only quick answer is to send the login POST via an AJAX call from the client so GAF's server sees their IP and not your servers'.
 
Juice said:
Edit 2: Architecturally this sounds kinda tough. Short of connecting via a tor gateway or anonymizer, I think the only quick answer is to send the login POST via an AJAX call from the client so GAF's server sees their IP and not your servers'.
Once again, excellent idea Juice! I think the ajax option is the way to go. It'll limit logins to only ajax compatible mobile browsers, though.

Unfortunately, this means I'm going to need to do some serious rewriting. Kinda sucked because the method I had was quite elegant. You guys will just have to live without log-ins for now. :P
 
ckohler said:
Once again, excellent idea Juice! I think the ajax option is the way to go. It'll limit logins to only ajax compatible mobile browsers, though.

Unfortunately, this means I'm going to need to do some serious rewriting. Kinda sucked because the method I had was quite elegant. You guys will just have to live without log-ins for now. :P

Heh, restricting logins to mobiles with AJAX isn't so bad. The next MobileGAF release has so much heavyweight XML parsing & styling in it, I'm going to have everybody looking forward to the faster processors in the new iPhones :P
 
Update:

Version 2.1 is live. Let's give this another try. :)
Note, previous users will need to go into the Settings screen and reset their settings to how they like them as your old settings won't carry over.

Bug Fixes:
  • Login system completely re-written. After a week of struggling and almost giving up, I finally figured out a super-elegant way to make this work. It's a 10x better solution than what I had originally tried. Once caveat, it's still possible for someone to fail 5 login attempts and prevent other users from logging in for 15 minutes. However, I handle this much better and once you've successfully logged in, you stay logged in forever until you manually choose to log out.
  • Rewritten the way cookies are handled.
  • Improved error handling.
  • Now prevents users from logging in who don't have javascript.
  • When login attempt quota reached, prevents all new attempts for 15 minutes.
  • A few more wonky HTML corrections.

Features in progress:
  • Editing posts. - This should be in the next update. I don't think it will be hard to add at all.
  • Replying to PMs. - This might be tricker but I won't know until I try.

Oh, and I didn't have to resort to AJAX to make this work. In fact, I quickly realized that AJAX would never have worked due to cross-domain restrictions.
 
ckohler said:
Update:

Version 2.1 is live. Let's give this another try. :)
Note, previous users will need to go into the Settings screen and reset their settings to how they like them as your old settings won't carry over.

Bug Fixes:
  • Login system completely re-written. After a week of struggling and almost giving up, I finally figured out a super-elegant way to make this work. It's a 10x better solution than what I had originally tried. Once caveat, it's still possible for someone to fail 5 login attempts and prevent other users from logging in for 15 minutes. However, I handle this much better and once you've successfully logged in, you stay logged in forever until you manually choose to log out.
  • Rewritten the way cookies are handled.
  • Improved error handling.
  • Now prevents users from logging in who don't have javascript.
  • When login attempt quota reached, prevents all new attempts for 15 minutes.
  • A few more wonky HTML corrections.

Features in progress:
  • Editing posts. - This should be in the next update. I don't think it will be hard to add at all.
  • Replying to PMs. - This might be tricker but I won't know until I try.

Oh, and I didn't have to resort to AJAX to make this work. In fact, I quickly realized that AJAX would never have worked due to cross-domain restrictions.

Best app ever. Thanks for the hard work!
 
Median said:
I'm totally posting from the app right now, even though my computer is in front of me :D
I know it's Fucking awesome!
 
Ok, i have to ask.
What's up with the green line at the top of the page?
 
ckohler said:
That might not be perminant but it indicates when you are logged in on screens that detect logins.
Looks like if you reply in under a minute since your last post, the post just disappears.
 
ckohler said:
I don't think so. I just did this post in under 10 seconds (then edited it) and it took.

So we break the forum rule of multiple posting within a minute? I don't mean editing.

Editing is always possible. Hang, editing is in?

edit: Sorry I meant posting within a minute of your own last post.
 
mrkgoo said:
So we break the forum rule of multiple posting within a minute? I don't mean editing.

Editing is always possible. Hang, editing is in?

edit: Sorry I meant posting within a minute of your own last post.
Oh, I see what you mean. No, I don't think you can post more than one post in the same minute. It probably just looks like it works on my end but just gets rejected by GAF.
 
From computer. My second straight away iPhone post didn't take.

This one I got the "please wait".

As a side is the one minute length to stop spamming, or stop double posting?
 
This is freaking awesome. PM's don't seem to work for me (error something) but being able to post from my phone is so cool :D
 
ckohler said:
Oh, I see what you mean. No, I don't think you can post more than one post in the same minute. It probably just looks like it works on my end but just gets rejected by GAF.
Right, that's what I thought.

Good work!

I was initially struck back by the green line, but I think it's an elegant solution.

I love how your own posts are highlighted green
 
DoctorWho said:
What green line?
The really annoying one.
140f400.jpg
 
Sean said:
This is freaking awesome. PM's don't seem to work for me (error something) but being able to post from my phone is so cool :D
I was afraid of that. PMs are really hard for me to debug because I have only *my* account to check them against. If you can give me the error, maybe it'll help.
 
This is awesome, ckholer you amazing!

Small text FTW too.

One thing that's I always think is pointless tho is the "Updated Today" bar at the start of the posts, it's just stating the obvious, the later ones are useful but this one just wastes space. (I know it's a nit pick)

Still one of the most used things on my iPhone, now posting is awesome.

edit: I also have a error on pms
"Call to a memeber function childeren() on non object in ....private.php on line 223"
 
Here is what I get when I go to private messages.
snkj0p.jpg
 
ckohler said:
I was afraid of that. PMs are really hard for me to debug because I have only *my* account to check them against. If you can give me the error, maybe it'll help.

i took a screencap but i'm not near my computer to sync right now so i'll try my best typing it out:

Fatal erro: call to member function children() on non-object in home/choler/blahblah/private.php on line 223
 
Awesome, quota already hit when I tried, but awesome. Must wait another 12 minutes. =) BTW, your app was a life saver at E3. Great way to kill time when waiting for something.
 
Status
Not open for further replies.
Top Bottom