droptank21's Recent Forum Activity

  • I believe the term is onion-skinning. And for now, you would have to code it using animation frames and arrays I suspect.

  • Do a search on MD5, SHA-1 or SHA-256

  • Copy the url of your Ajax Request into the browser bar and click go. If it returns your xml data then the issue is not your Ajax request but how the Ajax.LastData is being handled client side.

  • Your issue was that you were trying to run two AJAX requests at the same time, login and login_info. So, essentially, the Ajax.LastData returned was the data run by the last completed Ajax Request - the user's level - and the username was never returned back to the client side.

    The easy fix was to run the login Ajax request and then when Ajax(login) is completed run the login_info Ajax request. The system gets one and sets the username then gets their level (admin or student) and sets that data to the user_Type variable.

    Here is the corrected capx Here

    All in all, you are definitely going in the right direction. You have done a very good job expanding upon the login system and even put my php skills to shame.

    Imagine trying to code all of this in actionscript... <img src="smileys/smiley5.gif" border="0" align="middle"> Thank goodness for C2.

  • Works fine. Use the following files. Here

    Create a new database in phpmyadmin named "test". Then import the database.sql file to that database.

  • SQL file?

  • Post all of your files please. I'll have a look and see what is going on.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Did you make sure to modify the sql info to match your database?

  • george

    Here is the fix.

    Step 1. Modify your login event sheet to look like this:

    <img src="https://dl.dropbox.com/u/44787590/logineventfix.jpg" border="0">

    login event fix

    Step 2: Replace login.php with this version: login.php

    Should work like a charm. <img src="smileys/smiley2.gif" border="0" align="middle">

  • shoesims

    You have the same issue on the register event. Remove the ajax request under on ajax completed.

  • shoesims

    Your login event is duplicating the ajax login call.

    Basically you have the system making an ajax request each time the ajax request is completed causing it to endlessly loop.

    (ie) Run ajax request -> on completed -> run ajax request -> on completed...

    and on and on until infinity.

    Remove the second Ajax request under the event On Login Completed. ( Ajax -> http://localhost/avibppt/test/login.php?username="& UsernameTxt2.Text & "&password=" & PasswordTxt2.Text)

  • george

    I see what you mean. I have the same error on my end. I think I have a way of fixing it by assigning the error given by the php else statement. Will post when I have it done.

droptank21's avatar

droptank21

Member since 6 Apr, 2011

None one is following droptank21 yet!

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

18/44
How to earn trophies