Forum integration

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Account Upgraded | Title Enabled! Hymn is offline
    MemberRank
    Jan 2007 Join Date
    269Posts

    Forum integration

    I'm working on an SMF mod, to allow gunz to semi-integrate into it. So far I've managed:

    Dual Account Registration: When you register for the forums, it automatically registers you to the gunz server. (about 40% done, the actual script is working, but there is issues that will come around when the server is down, looking for suggestions on ways to prevent this from happening, best way would just be to shut down registration until the gunz server is up)

    I'm also considering, instead of dual registration on the registration script, just make a page which parses all the account information from the mysql database (forums) and just asks for a password (since the passwords in forums are encrypted).

    Stats: Levels, experience, bounty, characters, etc, can all be pulled and displayed on the forums if done correctly. I'm about 75% done with this, I've gotten an account name to parse from the server, the rest of it is easy as changing two variables.

    Management menu: Haven't started on this, but I plan on making a page which allows you to edit your account directly, names, genders, etc.



    I'm looking for suggestions, anything that you could pull from the database, any ideas? Also, I need someone to write a tcp/ip guide to mssql (I got mine working, miraculously) for this to be effective.


  2. #2
    Browser. Nova is offline
    MemberRank
    Nov 2008 Join Date
    --Location
    400Posts

    Re: Forum integration

    Nice idea.

    Best of luck!

  3. #3
    Infraction Banned Domega is offline
    MemberRank
    Jun 2009 Join Date
    134Posts

    Re: Forum integration

    For dual account registration a simple solution would be to put the user information in a file if Gunz server is down and on Matchserver startup register those.

  4. #4

    Re: Forum integration

    good luck i already have it.

  5. #5
    Mako is insane. ThePhailure772 is offline
    MemberRank
    Sep 2007 Join Date
    1,115Posts

    Re: Forum integration


  6. #6
    Account Upgraded | Title Enabled! alfredao is offline
    MemberRank
    Jan 2008 Join Date
    Coronel FabriciLocation
    705Posts

    Re: Forum integration

    Wow, nice idea , :D

  7. #7
    Account Upgraded | Title Enabled! Hymn is offline
    MemberRank
    Jan 2007 Join Date
    269Posts

    Re: Forum integration

    Quote Originally Posted by ThePhailure772 View Post
    Easy indeed, lacking features bro. Also, I'm 100% certain you don't have dual registration, so I'm assuming you have a box where they can enter their account name.

    Also when I'm done I'll be releasing this as a forum mod package, instead of doing the whole "haha look what I did" thing.

  8. #8
    Account Upgraded | Title Enabled! Guy is offline
    MemberRank
    Apr 2009 Join Date
    919Posts

    Re: Forum integration

    The idea is very aged, and while it will work, I recommend forcing the users to enter their "Display Name" to be something different than that of their username, for security reasons.

    Anyways, the best solution is to cache all registration data, and notify the user that the server appears to be down, on the event that the script fails to connect to the server database.

  9. #9
    Mako is insane. ThePhailure772 is offline
    MemberRank
    Sep 2007 Join Date
    1,115Posts

    Re: Forum integration

    Quote Originally Posted by Hymn View Post
    Easy indeed, lacking features bro. Also, I'm 100% certain you don't have dual registration, so I'm assuming you have a box where they can enter their account name.

    Also when I'm done I'll be releasing this as a forum mod package, instead of doing the whole "haha look what I did" thing.
    Dual-Registratrion -> SetRegIsterHook(), OnHook(), if(Down) SetCronJob(); done.

  10. #10
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Forum integration

    very nice idea, even better that its for SMF <3

  11. #11
    Account Upgraded | Title Enabled! Guy is offline
    MemberRank
    Apr 2009 Join Date
    919Posts

    Re: Forum integration

    Quote Originally Posted by ThePhailure772 View Post
    Dual-Registratrion -> SetRegIsterHook(), OnHook(), if(Down) SetCronJob(); done.
    1) There's an "l" in your "SetRegIsterHook()" statement, instead of an i.
    2) Only you would think of turning a simple modification to the registration script, into a complicated series of hooks, requiring the use of cron.

  12. #12
    Sharing is caring KillerStefan is offline
    MemberRank
    Feb 2007 Join Date
    NetherlandsLocation
    2,554Posts

    Re: Forum integration

    Nice stuff, Hymn!

  13. #13
    Mako is insane. ThePhailure772 is offline
    MemberRank
    Sep 2007 Join Date
    1,115Posts

    Re: Forum integration

    Quote Originally Posted by gWX0 View Post
    1) There's an "l" in your "SetRegIsterHook()" statement, instead of an i.
    2) Only you would think of turning a simple modification to the registration script, into a complicated series of hooks, requiring the use of cron.
    The cron is for when the server is down, what you would do is add the account to a table under mysql and cron would check check every hour so (or not) if Gunz is up so it can put the queued accounts intro the database.

  14. #14
    Account Upgraded | Title Enabled! Guy is offline
    MemberRank
    Apr 2009 Join Date
    919Posts

    Re: Forum integration

    Quote Originally Posted by ThePhailure772 View Post
    The cron is for when the server is down, what you would do is add the account to a table under mysql and cron would check check every hour so (or not) if Gunz is up so it can put the queued accounts intro the database.
    It'd be easier to have the server daemon check for new files on load, rather than use cron; also, if the machine is hosted with MSSQL, odds are, you'll be on a Windows machine, in which case, Task Scheduler would be the wiser choice.

  15. #15
    Mako is insane. ThePhailure772 is offline
    MemberRank
    Sep 2007 Join Date
    1,115Posts

    Re: Forum integration

    Quote Originally Posted by gWX0 View Post
    It'd be easier to have the server daemon check for new files on load, rather than use cron; also, if the machine is hosted with MSSQL, odds are, you'll be on a Windows machine, in which case, Task Scheduler would be the wiser choice.
    That's true aswell there. Although, most people have a second host for web based areas. I was just saying cron because it's easier for people with cPanel access to understand.



Page 1 of 2 12 LastLast

Advertisement