Guild RP´s implemented in HP

If you need support, you can get help here!
Vynard
Warder
 
Posts: 22
Joined: Oct 05, 2012 00:59

Postby Vynard » Dec 25, 2012 13:30

Hi there,
i would like to ask, if there is a code to put the Guild Realmpoints and/or the LWRP into the the top header from our guild-forum??
is it like the code for the signature ???
maybe somebody can list some codes so i can pick up that one i am searching for.
i used the searchfunction but didn´t find anything, maybe i search for the wrong words.....
would be nice if somebody can help me

User avatar
davidoof
Phoenix Knight
 
Posts: 1142
Joined: Mar 21, 2007 01:00
Location: near Berlin

Postby davidoof » Dec 29, 2012 11:30

here is the php code you need

i alrdy tested it, it works and im a php beginner

https://www.lima-city.de/thread/php-werte-aus-webseite-auslesen
Back to NF, NEW RA.

User avatar
davidoof
Phoenix Knight
 
Posts: 1142
Joined: Mar 21, 2007 01:00
Location: near Berlin

Postby davidoof » Jan 01, 2013 17:39

there are 2 ways i think, the better one you can do it with this code, in this way you create a picure
Code: Select all
<?php
Header("Content-Type: image/png");
# Hier wird der Header gesendet, der später die Bilder "rendert" ausser png kann auch jpeg dastehen
$width = 500; # Später die Breite des Rechtecks
$height = 200; # Später die Höhe des Rechtecks
$img = ImageCreate($width, $height); # Hier wird das Bild einer Variable zu gewiesen
$black = ImageColorAllocate($img, 0, 0, 0); # Hier wird der Variable $black die Farbe schwarz zugewiesen
# Die drei nullen bestehen aus den RGB-Parametern. 255, 0, 0 wäre z.B. rot. ($img muss am Anfang stehen)
ImageFill($img, 0, 0, $black); # Hier wird mit ImageFill() das Bild gefüllt an den Koordinaten 0 und 0 mit der Variable $black, also Schwarz
ImagePNG($img); # Hier wird das Bild PNG zugewiesen
?>
1. version in html chart (without guildrang)

http://davidoof.lima-city.de/test.php

2. version with a dynamic png picture php only(with guildrang)

Image

i need need 3 days because i dont know much about php :rolleyes:
the background from the picture is bad, need to learn to work with gimp :lol:
Back to NF, NEW RA.

User avatar
davidoof
Phoenix Knight
 
Posts: 1142
Joined: Mar 21, 2007 01:00
Location: near Berlin

Postby davidoof » Jan 02, 2013 23:43

final version of 2 guild in one picture

http://davidoof.lima-city.de/bildn.php
Last edited by davidoof on Jan 12, 2013 19:01, edited 1 time in total.
Back to NF, NEW RA.

User avatar
Akip
Alerion Knight
 
Posts: 2123
Joined: May 04, 2006 00:00

Postby Akip » Jan 03, 2013 04:13

shouldn't it be members davi?
Image

User avatar
davidoof
Phoenix Knight
 
Posts: 1142
Joined: Mar 21, 2007 01:00
Location: near Berlin

Postby davidoof » Jan 03, 2013 17:58

Akip wrote:shouldn't it be members davi?


thx updated
Back to NF, NEW RA.

User avatar
Blue
Developer
Developer
 
Posts: 15822
Joined: Apr 22, 2005 00:00

Postby Blue » Jan 03, 2013 19:43

Don't forget to cache the results (60 seconds at least) and don't query the Herald on every call.
It's done when it's done. Thanks for your patience.
Every bug gets fixed. Sooner or later.

"It is an inescapable law of nature that the amount of satisfaction one gains from achieving something
is related to how hard it is and easy things can only elicit a fleeting superficial sort of pleasure."


Blue says, "you used macro tools or macro keyboard"
Pala says, "i am disabled. and i have a mechanic left hand that can be programed. its hard to play woith one hand"

[Appeal] Bxxxxxxxx: "why is RA first aid cann man i stealth use and not unstealth cann man ra if man use unstealth ?????????"
BannedUser: "i was not using automate game action my hand was fall on keyboard during i was sleep .... i was completly fall on keyboard ..."

Vynard
Warder
 
Posts: 22
Joined: Oct 05, 2012 00:59

Postby Vynard » Jan 06, 2013 02:03

a mask where i only i have to change name of guild would be nice :D :D :D :D :D

User avatar
davidoof
Phoenix Knight
 
Posts: 1142
Joined: Mar 21, 2007 01:00
Location: near Berlin

Postby davidoof » Jan 07, 2013 19:25

atm i try to build what blue said, but its nearly impossible without using a db

i try it with a textfile atm qq
Back to NF, NEW RA.

User avatar
Fortyseven
Forum Moderator
Forum Moderator
 
Posts: 643
Joined: Apr 01, 2009 00:00
Location: V.N. Milfontes, PT

Postby Fortyseven » Jan 07, 2013 23:31

For an outline on how to cache data, please refer to this page. It does complicate your script, but it's standard procedure to keep server loads and traffic to a minimum (for values that aren't necessarily updated on every call, it doesn't hurt either way).
Image
Image
Image

User avatar
Blue
Developer
Developer
 
Posts: 15822
Joined: Apr 22, 2005 00:00

Postby Blue » Jan 08, 2013 01:19

davidoof wrote:atm i try to build what blue said, but its nearly impossible without using a db

i try it with a textfile atm qq

Just save the response as file. Its easy.
It's done when it's done. Thanks for your patience.
Every bug gets fixed. Sooner or later.

"It is an inescapable law of nature that the amount of satisfaction one gains from achieving something
is related to how hard it is and easy things can only elicit a fleeting superficial sort of pleasure."


Blue says, "you used macro tools or macro keyboard"
Pala says, "i am disabled. and i have a mechanic left hand that can be programed. its hard to play woith one hand"

[Appeal] Bxxxxxxxx: "why is RA first aid cann man i stealth use and not unstealth cann man ra if man use unstealth ?????????"
BannedUser: "i was not using automate game action my hand was fall on keyboard during i was sleep .... i was completly fall on keyboard ..."

User avatar
davidoof
Phoenix Knight
 
Posts: 1142
Joined: Mar 21, 2007 01:00
Location: near Berlin

Postby davidoof » Jan 10, 2013 23:43

i changed my free provider again to an with sql and infinite sockets
learned in 3 days to use/write/read from sql database and do a time request

the script first check for old data and after 1,01-1,59 min he get new data
easy to see old data has a red title text colour and new green one
Back to NF, NEW RA.


Return to Support

Who is online

Users browsing this forum: No registered users and 12 guests

Wednesday, 07. May 2025

Artwork and screen shots Copyright © 2001-2004 Mythic Entertainment, Inc. All rights reserved. Used with permission of Mythic Entertainment. Mythic Entertainment, the Mythic Entertainment logo, "Dark Age of Camelot," "Shrouded Isles," "Foundations," "New Frontiers," "Trials of Atlantis," "Catacombs," "Darkness Rising," the Dark Age of Camelot and subsequent logos, and the stylized Celtic knot are trademarks of Mythic Entertainment, Inc.

Valid XHTML & CSS | Original Design by: LernVid.com | Modified by Uthgard Staff