1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

KAG generator - your own signature ;)

Discussion in 'General Discussion' started by bartez, Apr 6, 2012.

?

How rate you this script?

  1. Perfect

    19 vote(s)
    24.4%
  2. Good

    40 vote(s)
    51.3%
  3. It's OK

    13 vote(s)
    16.7%
  4. Bad

    0 vote(s)
    0.0%
  5. Very bad...

    6 vote(s)
    7.7%
  1. bartez

    bartez Bison Rider

    Messages:
    117
    Hello. I created small script, which create a signature with our account information. Demo:
    [​IMG]
    [​IMG]

    In website, I suggested oryginal GUI from KAG. I use only 1 image (background) rest is coded in xHTML & CSS3. Signatures generated from API, and if not released this: https://wiki.kag2d.com/wiki/Account_Status I can't upgrade this script.

    Please rate my job, and if you graphic, and can do new signature project please send this with source(.PSD,.xcF).
    Link to generator: http://generator.kag2d.pl/
     
  2. Froghead48

    Froghead48 Haxor

    Messages:
    703
    Me Gusta tres bien im gonna use it :)
     
  3. GloriousToast

    GloriousToast Haxor Donator

    Messages:
    1,463
    great job ima use it too
     
  4. ParaLogia

    ParaLogia tired Administrator Global Moderator Forum Moderator Tester Official Server Admin

    Messages:
    1,133
    Not gonna use it, but it's great!
     
  5. trelawney

    trelawney KAG Guard Tester

    Messages:
    771
    Great, but you ought to work a bit on the contrast of Nick/Status/Rank. They're barely legible.
     
    Contrary and Froghead48 like this.
  6. Jackard

    Jackard Base Burner

    Messages:
    852
    What is its purpose? Posting your name and rank on another forum?

    idgi
     
    Ej likes this.
  7. bartez

    bartez Bison Rider

    Messages:
    117
    I know this, but I'm not a designer this is for only test ;) Ago i add new graphic, but i must rewrite PHP script to OOP.

    @UP
    Yes, but new API been release I add more function(online,offline, IP server who play).
    </br>--- merged: Apr 7, 2012 10:12 AM ---</br>
    I add today new function - you can change text color ;)
     
    JacKD and trelawney like this.
  8. Dark_Ham

    Dark_Ham Shipwright

    Messages:
    144
    This is great! Nice work buddy! :D
     
  9. Shadlington

    Shadlington THD Team THD Team Administrator Global Moderator

    Messages:
    1,562
  10. knightl

    knightl Base Burner

    Messages:
    453
    Theres little normal about shad :)
     
  11. bartez

    bartez Bison Rider

    Messages:
    117
    I use this API, but I don't set switch for Role=4 :P
    [​IMG]

    Today I rewrite do Object PHP and do more backgrounds + fonts ;)
     
  12. Arthurox

    Arthurox Bison Rider

    Messages:
    131
    Good job bro i like it ;).
     
  13. bartez

    bartez Bison Rider

    Messages:
    117
    Maybe I add Google + and Facebook like widgets to site ;P and nations flag :)
     
  14. BlueLuigi

    BlueLuigi :^) Forum Moderator Donator Tester

    Messages:
    3,620
    Mine refuses to show as Gold Player or anything, just as NormalPlayer.
     
  15. bartez

    bartez Bison Rider

    Messages:
    117
    Repaired :)
     
  16. Shadlington

    Shadlington THD Team THD Team Administrator Global Moderator

    Messages:
    1,562
    There's not much point in showing active status - that just says that they've activated their account.
    If there was data like 'last login time' that would make a useful field, but that isn't available (yet).
     
  17. bartez

    bartez Bison Rider

    Messages:
    117
  18. Shadlington

    Shadlington THD Team THD Team Administrator Global Moderator

    Messages:
    1,562
    Ah I see now.

    Anyways, its a nice little script - well done :)

    Do you have any plans to release the source? It would make a lovely example for other developers.
     
  19. bartez

    bartez Bison Rider

    Messages:
    117
    Better not(Mess in the code) :) Maybe if I finish rewrite this to class.
    It's very simple, just use file_get_contents and json_decode function in php with second parameter is true and we have a array.

    Code:
    $playerdata = json_decode(file_get_contents("https://api.kag2d.com/player/".$user]."/info"),true);
    $playeravatar = json_decode(file_get_contents("https://api.kag2d.com/player/".$user."/avatar/s"),true);
    
    And we have example values:
    Code:
    $playerdata = json_decode(file_get_contents("https://api.kag2d.com/player/bartez/info"),true);
    echo $playerdata['username'];
    return: bartez
     
    JacKD likes this.
  20. Shadlington

    Shadlington THD Team THD Team Administrator Global Moderator

    Messages:
    1,562
    Yeah that's similar to how the forum authentication code works, though we use a different part of the API ;)