1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Forum/HL2RP flags.

Discussion in 'Programming' started by invadingaliens, Mar 2, 2013.

  1. Hey guys!
    I'm part of a new upcoming community, now, I'm not here to advertise them but I'm here to ask you guys a question.

    Would it be possible to give every forum member PET flags by default?
    I don't know PHP, so yeah.
     
  2. diablo1675

    diablo1675 Guest

    This would require alot of coding to webbased and your server.
     
  3. connall

    connall Guest

    Now don't hold me to this, PHP is not something I know all that well (if at all)

    As diablo pointed out it would require a bunch of custom coding but it is entirely possible. In registration the user would need to provide their SteamID (Steam usernames are very unreliable) and upon the account creation, the website would query the game servers database (so you would need to be able to allow external applications to connect to the database) to find all characters with that player steamID and make it to alter it to add the flags. Though this would only work on registration and not carry over to every character made after registration (I think.)

    There are only a few people on this site that know PHP well enough to do something like that, and of them I think only like one of them still visits the forum on a regular basis.
     
  4. Let's see if a phpro Replies.
     
  5. diablo1675

    diablo1675 Guest

    What Conn says is in essention true. BUT, I don't know how to do it, and most coders on here only know LUA or HTML. I'd look for a PHP coder on the internet that's specialized in games and such. If you don't want to, wait for someone to come to you.
     
  6. TJjokerR

    TJjokerR Formerly known as TJjokerR

    Just make a page in php that asks for the SteamID, where people can "Redeem" their PET flags. Check whether that forum account CAN actually redeem the flags, and go.

    It's not hard to make at all, PHP is one of the easiest languages you can learn.
     
  7. connall

    connall Guest

    Would involve editing core forum files. I'm pretty sure SMF would be rather easy to edit if you knew PHP as it has a separate file for editing.

    You could learn php yourself or try digging around the forum software code, see if you can't pick anything up. If your worried about screwing up your website, if you use something like SMF, MyBB or phpBB (or something along that lines) then I could set aside an area on my domain and give you access to the FTP to that domain and let you edit the files for the forums to your hearts content without fear of destroying your own community site.
     
  8. TJjokerR

    TJjokerR Formerly known as TJjokerR

    You will not have to edit any core files, you could just create a new page and require all needed SMF/phpBB/whatever libraries to check if someone is logged in or to modify something in their database entry.
     
  9. Razor

    Razor Guest

    I am pretty sure it can be done trough a hook.
    If I am not wrong, PHP supports hooks just like GLUA.

    Also I am pretty sure one could do something in ASP.NET for it too. That shouldn't be that hard.
     
  10. TJjokerR

    TJjokerR Formerly known as TJjokerR

    You are wrong, there's no hook system in PHP by default.
     
  11. Razor

    Razor Guest

    I meant PHP Forums, sorry :L
     
  12. Micafire

    Micafire Exotec Gaming Director, Developer Wannabe Clockwork Customer

    I am a PHP Coder who wouldn't know the best of it yet, but it's fairly easy.

    There needs to be no hook, but as though I am using the Steam API, which would need a lot more work if you simply made it directly to the forum. This also saves convenience for your players, registering quickly and not having to dig for the Steam key is a treat.

    There should have a Steam connect for SMF(I am not really a SMF fan but I can explore it) and if there is, it should be able to retrieve the Public Steam ID, if not I know a solution.

    However, the forums will then need to have access to the Database, and I can see what I can do to fit all this into a simple plugin for SMF so that way it can update the user's data.

    However, this is on Vbulletin and it IS possible to return the Public Steam ID following STEAM_X:X:XXXXX.
     
  13. trurascalz

    trurascalz C16 Developer Legend

  14. Datzy

    Datzy Guest

Previous Readers (Total: 0)