User Tag List

Results 1 to 6 of 6

Thread: Wordpress login from windows application

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Hristos's Avatar
    Join Date
    Jul 2006
    Location
    Makrygialos, Greece
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Wordpress login from windows application

    Hi,
    We have a wordpress site and the paid members can access all our online HTML5 games and/or use our windows applications without any time restrictions. In order to do so, they have to login to the website. So far we have been using the Web Control Object for our windows applications to check the level of the members.
    I have recently tried to improve the login system using the GET object with the hope that it would be faster and without the warning messages that appear while trying to login.
    But it has not been possible to POST the user name and the password with the default system of wordpress.

    The first method I tried:
    Add Post date "user_login" (this is the ID of the user name text box)
    Add Post date "user_pass" (this is the ID of the password text box)
    Get URL mysite.gr/wp-login.php
    On get complete I receive a login error mentioning that the text fields are empty.

    The second method I tried:
    Set user to "member user name"
    Set password to "member password"
    Get URL mysite.gr/wp-login.php
    On get complete I receive the html code as if the text fields were not filled.

    I made an external authentication system using the instructions on this page:
    https://www.webhostinghero.com/wordp...tion-with-php/

    This time it worked fine and amazingly fast but the problem is that the login is not recorded by the wordpress system so it is not possible to control simultaneous logins. If we fail to control this, then we cannot prevent sharing login credentials by users.

    Any ideas on how to use the default system of wordpress using the GET object?
    Maybe this is possible using the Web Query Object instead?
    Any help would be much appreciated!

  2. #2
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,003
    Mentioned
    20 Post(s)
    Tagged
    2 Thread(s)
    Hey Hristos,

    There are plenty of WP plugins that allow only one login per account, some that enable 1,2,3,x also... I think this would be the best route to go down, if you already have a successful login with your above authentication system...
    Want to learn Clickteam Fusion 2.5?




  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Hristos's Avatar
    Join Date
    Jul 2006
    Location
    Makrygialos, Greece
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you Danny,
    I am already using a membership plugin. The problem is that when I use the external authentication system, the login is not recorded. I can GET the membership level and stop the time restrictions but there is no record of the login. So any number of users would be able to use the same user name and password at the same time.
    The only way to record the user's login is the standard login system of wordpress. So far I have not found a way to use the standard wordpress user_login and user_pass fields.
    I tried different approaches with php and simple html like this https://backup.kidmedia.gr/app.html but the login is recorded only when I use the browser. When I use the GET object from my application nothing happens!
    The best solution I can think is using the external authentication system first and if the user is a member then make a second GET action to another php/html so that the login will be recorded. I am still trying to find out how ...

  4. #4
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,003
    Mentioned
    20 Post(s)
    Tagged
    2 Thread(s)
    Yes, it's a tricky one due to the way the login session is handled. When you use GET/POST, no cookie is created, thus no client-side session handling. I would try your way you suggested for the second GET to activate a second login, but this is certainly an interesting one.

    I will take a look deeper myself later this week, if you come up with anything in the meantime, please do post your results!
    Want to learn Clickteam Fusion 2.5?




  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Hristos's Avatar
    Join Date
    Jul 2006
    Location
    Makrygialos, Greece
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks again Danny!
    I am in a dead-end so far but I will keep trying!

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Hristos's Avatar
    Join Date
    Jul 2006
    Location
    Makrygialos, Greece
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am giving up!
    Although using the GET object is much faster (not more than 4 seconds) and it gives me the level of each user very easily, I could not find away to "count" the number of simultaneous logins for each user. The reason is that the custom login system is not detected by the default wordpress system and no workaround I tried made it work!
    I have decided to use the Web View Object instead of the Web Control Object I have been using so far, because it returned script error messages to the user and made the customer experience poor.
    The problem with the waiting time still remains (between 19 and 26 seconds just to show the page).

Similar Threads

  1. two windows in one application
    By Droggelbecher in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 25th October 2013, 06:04 PM
  2. login to game ussing wordpress
    By dascribe in forum Lacewing
    Replies: 3
    Last Post: 24th August 2011, 12:06 AM
  3. Help - Register/Login Application
    By MrXkill in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 6th February 2011, 04:39 AM
  4. Run Application as a windows service
    By Verd0uX in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th November 2008, 03:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •