Help with XML guild cards

Discussion in 'General Discussion' started by Arcee, Jan 9, 2004.

  1. Arcee

    Arcee Loyal Freddie

    Im lookign for some information on how to get XML guild member cards for my guilds signatures.

    There is one website i have found that produces these -
    http://www.vanen.planet-multiplayer.de/

    But i want unique ones for my own guild.

    Here are some examples -

    http://vanen.planet-multiplayer.de/cards/LexVitae/Nyana.jpg
    http://vanen.planet-multiplayer.de/cards/Requiem/Nyane.jpg

    They do have a XML scripting forum on that site, but i cant understand German.

    Anyone know of an english site with info on how to do this?

    Cheers
     
  2. Arcee

    Arcee Loyal Freddie

    no one knows how these are done? :wij:
     
  3. MesS°

    MesS° Fledgling Freddie

    I wanna know too... :p
     
  4. Arcee

    Arcee Loyal Freddie

    grr

    someone must know!
    ah well nm :eek6:
     
  5. pixie.pebr

    pixie.pebr Fledgling Freddie

    Not knowing PHP very well (but reading up on it), I'd say you need to get the data from the XML and put it in a variable, then import the backgroundimage with the PHP command 'imageCreateFromGif' and add the text from the XML on top of it with the 'imageString' command.

    No easy way to explain it, especially since I don't know exactly how to myself yet.
    But look up imagemanipulation with PHP, since that is what you need.
     
  6. Arcee

    Arcee Loyal Freddie

    Ok cheers.
     
  7. Takhasis

    Takhasis Can't get enough of FH

    I have just finished writing one that lets u specify the following:

    picture name (any url to a jpg)
    guild ID (on excal only for now)
    char name (so it can find u)

    just doin some final testing, hope to post it tomorrow - stay tuned.
     
    • Like Like x 1
  8. Takhasis

    Takhasis Can't get enough of FH

    Almost done - some examples...
     

    Attached Files:

  9. Arcee

    Arcee Loyal Freddie

    Good job m8. Looking nice.

    Would you be able to help me in anyway? Would i need special webspace to host the pictures? How does it work?
     
  10. Takhasis

    Takhasis Can't get enough of FH

    its written in PHP, so u need a website that will support PHP, the pictures can be anywhere on the web, because the way i've written it, you call the php with the link to the pic.

    If i can get it uploaded to my guild site today, i'll post example link here and u can try it..
     
  11. Teknoid

    Teknoid Fledgling Freddie

    Nice work.
    Could you please post your PHP code used for this, would be nice feature to have as a forum sigi. or just have your own website showing your char stats (something i am working on now but i need the XML data to be updated again on exc)

    thx
     
  12. Takhasis

    Takhasis Can't get enough of FH

    http://www.realmdefenders.net is our guild website, and yes, i'll quite happily post the php code once i got it working fully - almost there :)
     
  13. Gromnir

    Gromnir Fledgling Freddie

    Nice looking project, cant wait till your done with it :eek:

    ^_^
     
  14. Takhasis

    Takhasis Can't get enough of FH

    All done now, just tryin to find a host for it... :)

    Some more examples...
     

    Attached Files:

    • test.jpg
      test.jpg
      File size:
      38.9 KB
      Views:
      216
  15. Teknoid

    Teknoid Fledgling Freddie

    some great work. look forward to seeing the code, hope you can add a little documents/comments so that i have a small idea what i am looking at, i havent touched php in ages 0_o
     
  16. Arcee

    Arcee Loyal Freddie

    Im not sure if my webspace (Blueyonder) supports PHP, but i could always buy some space i suppose for this purpose.
     
  17. Jpeg QuickStix

    Jpeg QuickStix Fledgling Freddie

    some good stuff there!i want one!
     
  18. Takhasis

    Takhasis Can't get enough of FH

    ok peeps here you go :)

    link to zip file with the charlogo.php and the fancy font file (mael)

    http://homepage.ntlworld.com/nsviper/charlogo.renametozip

    Place them on your server that support php in any folder ALONG WITH tahomabd.ttf ( i assume u can get hold of this yourself :))

    Example call to the file (can be an IMG SRC=blah blah call)

    //http://##your website##/charlogo/charlogo.php?pic=http://##any website link to any size picture##/stealth.jpg&guild=65&name=Takhasis%20DragonSlayer&txtcol=L&txtpos=TL

    // pic=url of pic - can be anywhere and any size
    // guild=guildid (currently excal only, but easy enough to change the charlogo.php
    // name=charname (EXACT spelling please)
    // txtcol=colour (L or D) for light or dark text
    // txtpos = TL, TR, BL, BR, CC = Top Left, Top Right, Bottom Left, Bottom Right, Centre

    Hope it works ok for u guys :)
     
  19. Teknoid

    Teknoid Fledgling Freddie

    says file is corrupt to me when i try to open the .zip
     
  20. Takhasis

    Takhasis Can't get enough of FH

    try link now...
     
  21. Takhasis

    Takhasis Can't get enough of FH

    Now can a mod PLZ let me have pic in my sig? /hugs :)
     
  22. Celery

    Celery Loyal Freddie

    Nice work :)

    Where can I find a Guild listing that shows me my Guilds' number in the XML ?

    I've found this before, but for the life of me I can't remember where :m00:
     
  23. Aremeriel

    Aremeriel Fledgling Freddie

    Since daoc-stats uses the same xml, I should think that you can find guild number there.. ;) So, I'd say that your Guild's ID is 154...

    http://daoc-stats.com/guild.php?server=Excalibur&id=154
     
  24. Celery

    Celery Loyal Freddie

    Excellent, thanks :)
     
  25. inqy

    inqy One of Freddy's beloved

    Code:
    Fatal error: Call to undefined function: imagecreatefromjpeg()
    in D:\appdata\web\webserver\daoc\charlogo.php on line 156
    :(

    (php server running locally)
     
  26. inqy

    inqy One of Freddy's beloved

    fixed. search for extension=php_gd2.dll if anyone else has that problem and make sure it's not commented out.
     
  27. Takhasis

    Takhasis Can't get enough of FH

    php file on the link above updated for 1 new parameter srvr

    when calling the php use srvr=Excalibur for excal guilds, pyrdwen etc etc etc

    u can work it out ;)

    PS, if u miss txtcol, txtpos, or srvr from the call, then they default to D,TL, and excalibur
     
  28. Celery

    Celery Loyal Freddie

    Same error here although I'm running on Linux - looks like I have to recompile PHP with GD support :p
     
  29. Wildfire

    Wildfire Fledgling Freddie

  30. Takhasis

    Takhasis Can't get enough of FH


    http://camelot-europe.goa.com/herald/servers/excalibur/guilds/391.xml

    Its failing because your guild ID 391 does not exist as an XML file on the excalibur server - is this right? have u checked your guild id?

    (edit) ah, seems the guild pages are unavailable at the moment - goa just finishing off fixing the XML pages...

    http://camelot-europe.goa.com/herald/servers/Excalibur/guilds/391.xml

    (edit 2) seems the host for the XML is CASE SENSITIVE for the server name, try calling the php with srvr=Excalibur or editing the php to change the default srvr (somewhere at the top of the code) to Excalibur... If i call the php on my guild website with your parameters and srvr=Excalibur it works fine...
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.