Anonymous Characters for 5 Second Game

Events happening in the community are now at Drupal community events on www.drupal.org.
aaron's picture

Assuming the administrator gives access, anonymous users may now create and compete with characters at 5 Second Game (which is powered by the module of the same name). Additionally, if an anonymous user registers or logs in, they'll be able to claim that character as their own, allowing for saving any statistics, etc.

On the technical end, the module uses a $_SESSION variable to save the anonymous character in the session cookie, and creates a menu item to optionally claim the character after logging in. Currently, it's only displayed as a link in a message on login; I have to decide whether to dynamically create a link in the navigation menu, continue showing the message until the character's claimed or the message is set to be ignored, or to do nothing (or maybe to allow the admin to set that choice).

Apologies to anyone who's tried to play the game in the last month or so; I turned on Recaptcha for spam control, but forgot to configure it. I've switched to Mollom now, and everything's working fine.

(Cross-posted at AaronWinborn.com.)

Comments

Aaron, consider

litwol's picture

Aaron, consider this:

Instead of making users to register (lets asume some just never want to). Present them with a unique URL that holds special unique ID. all character information are associated with that unique URL. then, user can bookmark that URL and come back to it whenever they want from their computer and play the game. accessing from the URL once will refresh his session state and reload the proper character.


------------------
Sometimes interesting things appears on http://litwol.com

Interesting idea. The

aaron's picture

Interesting idea. The groundwork is already there. This would allow an anonymous user to even claim multiple characters. (Right now, it's only the latest created; if they create a new character, they lose the original.)

Aaron Winborn
Drupal Multimedia (book, in October!)
AaronWinborn.com (blog)
Advomatic (work)

Aaron Winborn
Drupal Multimedia (my book, available now!)
AaronWinborn.com
Advomatic

Games

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: