• Go to the Game
  • Registration
  • Introduction
  • One Minute Interactive Introduction
  • Contact

Developers blog about Operation-B - The Free Strategy Browser Game

validation

Technical web release v3.0.2

Posted on June 9, 2014

web release v3.0.2 There has been a new release for the game involving some new features and fixes.
It is now possible to directly validate your e-mail address from the registration e-mail. Just a single click will give you notifications about players who join your game, turn switches and game endings.

We noticed that several e-mail address had an incorrect syntax. Therefore we added a check, using the following regular expression, during registration to see if the e-mail address has the correct syntax.

preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/", $email) == 0

Finally we also noticed that the Google Analytics pagetracker wasn’t recording our goals. This happened after the switch to the new universal analytics.

Previous goal tracker

	<script type="text/javascript">
		window.onload = function()
		{
			try 
			{
				pageTracker._trackPageview("/funnel_G1/completed.html");
			} 
			catch(err) {}
		} 
	</script>

New goal tracker based on this information

	<script type="text/javascript">
		window.onload = function()
		{
			try 
			{
				ga('send', 'pageview', {
					'page': '/funnel_G1/completed.html',
					'title': 'Registration Completed'
				});
			} 
			catch(err) {}
		} 
	</script>
Posted in: release | Tagged: feature, release, validation

Tags

android app bugfix compression conquest design feature game overview gzip improvement introduction jquery new round portal release technical turn timelimit validation

Follow us on

Follow us on Facebook @OpBnet Follow us on Twitter @OpBnet Follow us on Google+ RSS feed

Recent Posts

  • Conquest round – October 18
  • Android App release 1.4
  • Conquest round – August 13
  • Out with the old, in with the new
  • The need for speed

Recent Comments

    Archives

    • October 2014
    • August 2014
    • June 2014
    • May 2014

    Copyright © 2018 Operation-B - Behind the Scenes.

    Theme by ThemeHall.