EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   Chit-Chat (https://www.eq2interface.com/forums/forumdisplay.php?f=2)
-   -   Cool dynamic sig (my own) (https://www.eq2interface.com/forums/showthread.php?t=1116)

Drumstix42 02-01-2005 09:11 AM

I discovered my problem with background images and color, in that it was only when I used a GIF, and used the PHP gif functions. They still worked, but text was all in white. It works great with JPEGs though. So hopefully I can come up with a more creative background. I really like Humudce's BG :p

Humudce 02-01-2005 12:18 PM

I actually have 2 different backgrounds that I use. I tried to do a Merge File but it doesn't work with Gif files so I did 2 different backgrounds and change them depending on the Alignment of my Guild Members for example.




Drumstix42 02-03-2005 09:55 PM

Fonts are fun! :cool:

Did a little more modifying to my sig now. To better see the difference.

Here's the old one:



And the new:



*reload the page if both don't show*

0ctavius 02-04-2005 04:14 PM

This is not terribly difficult to accomplish. I acctually wrote my own signature generator from scratch and added some other features.

Namely I was tired of having to parse data from the eq2players website all the time, so I had it update an entry in a database instead, with a timestamp. If the data in the db is more than 4 hours old, it grabs the data from eq2players again, and updates the database.

The image I generate is then always pulled from my database. This reduces how many reads and parses have to be done from eq2players, as well as adds fault tolerance (in the event eq2player is down, my script will just use the database data without updating) I then added a feature that allows it to dynamically use a different background image based on what the user wants (passing a variable) and if the one they choose doesn't exist it will automatically use a default background image...

Another idea that I may add to my next version is the ability to instead put your personal stats (health, defense, etc...) in a tooltip for the image (alt attribute) instead of in the image itself.

Of course this would all be super easy if they just went ahead and added xml data to eq2players so we can get the data pure without having to parse it from an html page...

taco-man 02-04-2005 06:06 PM

ecellent work 0ctavius! any plans on releasing it to the public?

Drumstix42 02-04-2005 06:24 PM

I've had that idea since the begining of this discovery... but I haven't done much research on doing it. Having a database isn't a problem in my case though, have a phpBB forums at my site. But it is a good way of doing it. I wonder if it states somewhere when the stats get updated... It seems the player page gets updated much faster than the achievements page. And even longer would be the history of when and where you level'd up.

wdavis111 02-04-2005 08:33 PM

Quote:

Originally Posted by Drumstix42
Check this out :D

I got my php signature code from the eq2 forums and molded it how I liked, slapped in a background image, and woot. My site picture links to my site, and my eq2 picture links to my alts. Whatta think?

Drumstix42... I've searched for a while now on the SOE forums site and can't find the source code for all this... can you be more specific? Thanks!
:nana:

Drumstix42 02-04-2005 11:52 PM

It was in EverQuest II : The Help Desk : EQ2Players

topic was called somethign like Integrating EQ2 roster

there's a zip in the first posts, comes with guild roster code, and player code, the rest is for you to figure out :)

0ctavius 02-05-2005 11:08 AM

I will release a version that for the public soon. I have gotten a lot of requests for it. To be honest it is not completely dynamic in that some things like the guild id is hardcoded. I need to move it to the config file or even pass it as a variable before moving forward. Then I have a few small things to add to make something I am happy enough with to release to the public...

here is an example:
http://eq2.obsidian-aegis.com/script...9203&img=panel

Drumstix42 02-05-2005 12:15 PM

Yeah but stuff like that, using the PHP extension, you can't use that on all boards. That's why I use the GIF extension and use an HTACCESS file to let file be read as PHP.

Humudce 02-05-2005 01:00 PM

Quote:

Originally Posted by 0ctavius
I will release a version that for the public soon. I have gotten a lot of requests for it. To be honest it is not completely dynamic in that some things like the guild id is hardcoded. I need to move it to the config file or even pass it as a variable before moving forward. Then I have a few small things to add to make something I am happy enough with to release to the public...

here is an example:
http://eq2.obsidian-aegis.com/script...9203&img=panel

Wow looks nice...

zoriouz 02-05-2005 02:06 PM

yeah it does!

Findarato 02-05-2005 04:48 PM

Looks nice, I might have to add a fancy version of my sig :D

0ctavius 02-05-2005 11:21 PM

You are right about the php versus gif thing. Some forums allow dynamic images, and some don't. There are ways to get around it though via HTACCESS or if you can't do that, you can use tinyurl.com to generate an image link. We had to do the same thing for a dynamic trillian plugin some guys and I were working on in the trillian plugin dev forums.

I am releasing version of my sig that doesn't use a database. Be aware this will mean that it has to load the soe page every time you refresh the image. This makes it take a few seconds to load depending on connection speed, and other factors. I will release a database version soon. FYI - this version is completely dynamic. It gets EVERYTHING about you from eq2players. This includes your guild name and id (which it then passes on to use in order to grab your guild rank from the roster page, and guild stats for the sig image). This means all you need is your player id, and it does the rest.

I almost released this with a minor bug though, so please watch for any others I might have missed. The bug I just fixed involved pulling up data on someone that was unguilded. It put some funny data into some of the arrays and displayed it on the image. Now I have it set up so that if you are unguilded, it will know, and it will use ------ for some of the values. It isn't the prettiest thing in the world, but the alternative was to create a different image depending on if you were guilded or not (which I may do soon anyway).

Those of you that are hoping to make your own image backgrounds, realize that it IS possible. I even added a theming capability so that you can make a yourname.png and a yourname.php in the iamge directory. Follow the format that the other similar php files have, and you will be fine. The php file stores placement data for the text, so you could theoretically customize where the text goes on your image as well (columns and rows). I may enhance this part further later as well.

As always, anyone wanting to modify my code, or add things, please let me know. Some of you may realize how much of a pain it can be if 4 or 5 people start releasing different versions of the same exact script. Letting me know your intended changes will allow me to integrate them into my own if it is something everyone wants, and make a single release...

and last but not least -- the link --
LINK UPDATED IN A LATER POST

P.S. I need people willing to provide mirrors for this. Possibly with the ability for me to upload. My site isn't really meant for mass downloading, so if the downloads and bandwidth start getting high, I may have to pull the file. Let me know if you would be willing to host this project. -- I may later release a full features website package that grabs everything you would ever need from eq2players to use on your own website. This would become a full blown project that would extend into when they start using xml feeds. I may or may not put this on sourceforge or somewhere similar. The database version uses a basically all the data you would need for a full blown roster. I know someone already has one out, but I can see this project becoming inclusive of a roster, player stats, signatures, and more...

UGH - time for bed...

Drumstix42 02-06-2005 01:18 AM

Yup that's what mine is, put in player ID, and your good. I just have it set inside the file though, so don't need any extension in the url. I'm intertested stilll in see the DB cache per say ;)

0ctavius 02-06-2005 07:49 AM

the main reason I passed mine as a variable is that mine is meant for multiple people to use. I am currently using it as a signature script for my guild, so that any member can use it. So I couldn't set the user id in a file without forcing only one person being able to use it...

I am going to modify the script a little later today. THe image size is currently more than 100px wide, which I think is the maximum that the eq2 forums allow. If you use this signature on their forums, it cuts off the end.

Some other features I am thinking about:
- more templates (possible miniature versions, for people that want to show multiple images per character / alt in the same signature)
- security feature so that you can lock down teh script (via config) to only your guild. (be aware that this script works perfectly with any guild, even when it uses a database. So you only need to secure it if you don't anyone being able to use it except you or your guild...
- possibly a flash version that allows you to use a flash signature that grabs variables from my php? would be cool

Nightlord 02-06-2005 08:24 AM

Woot!
 
FINALLY, I got it figured out. Can't do fonts... but colors work.

0ctavius 02-06-2005 08:51 AM

Current features (v0.4) -------------------------
- Streamlined fopen and fread method for getting data from eq2players. It also supports multiple words. It gets the whole field, not just a certain number of letters. No more guild names getting cut off...
- Templated Images. Can create custom backgrounds with custom theme files that define how and where the image is placed.
- print_array function that is used in the test.php file. Use this file just like you would the image.php, except instead of outputting the image, it will print the arrays for you in readable format. This way you can see exactly what data is being collected and what can be used in an image (with some GD knowhow)

Image Test ---------------------------------------




Coming Up (New Features in next version) --------------------------
- ability to set the img type to gif, jpg, or png from within the template for each background
- ability to set signature display to simple, normal, or enhanced
(simple would only have name, rank, and guild which can be used as a small img in a group of images for multiple alts)
(normal is what you see now)
(enhanced would be longer and have stats such as stamina, health, etc...)
- ability to secure the script to only be usable by members of a specific guild (your guild) or only a specific player id (you) so that no one else can use your script (be aware the database version will be multi-user capable without consequences, except for maybe bandwidth and database usage)
- ability to define in the config whether to use a database or not. If you say yes, it will automatically create a table based on the data you provide in the config file. It will store player info and guild info in tables for a basic caching functionality. A setting in the config determines the timeout before it gets new data and updates the database (basically a TTL). Each db entry is timestamped so that it can be updated on this schedule... (default timeout will be 4 hours)
- possibly a roster page that displays all members of a given guild. Would use the same database (or none if database is set to false) for caching player data.
- a better readme with version history
- instruction in the readme on how to use tinyurl.com or HTACCESS depending on which you are able to do...
- GD fonts included and configurable in the background templates
LINK UPDATED IN A LATER POST

ger 02-06-2005 11:31 AM

0ctavius, beautiful work. I tried to download it, but I was asked for a username/password. Is this meant to be a limited release? Or did I just miss something in one of the posts? Either way, keep up the great work.

Humudce 02-06-2005 03:36 PM

Yes it's looking for a password to download.

0ctavius 02-07-2005 08:43 AM

Quote:

Originally Posted by Humudce
Yes it's looking for a password to download.

That was my fault guys. I uploaded it without resetting permissions. it is a security feature on my server that I use to prevent malicious files. I just forgot about my own security feature (I use IIS on my own server)

Try now as it should be working fine:
http://0ctavius.com/eq2sig_nodb.zip

database version coming today...

lusny 02-07-2005 10:58 AM

dynamic image..
 
umm, Is phpBB2 not support dynamic image?
I know vBulletin board is support that.
I did use [img][/img] BBcode(at phpBB2) but, I cant see correct signature.
anyone know How can I use dynamic image on phpBB2?

0ctavius 02-07-2005 11:17 AM

Quote:

Originally Posted by lusny
umm, Is phpBB2 not support dynamic image?
I know vBulletin board is support that.
I did use [img][/img] BBcode(at phpBB2) but, I cant see correct signature.
anyone know How can I use dynamic image on phpBB2?

Both vBulletin and phpBB2 disable dynamic images by default.

To get it to work without using an HTACCESS file, you will need to do the following:

Find out what the address would be for your image first and foremost. You will need to copy this to your clipboard (CTRL-C). So for example, mine is
http://eq2.obsidian-aegis.com/scripts/eq2sig/image.php?cid=223319203&img=panel

Now you must go to tunyurl.com and there is a place to enter your http address for it to make it "tiny". Paste the code you got a second ago for your dynamic signature, into that box, but do NOT hit submit yet. This next part is very important. At the end of your address, add the following exaxtly as I have it:
&blah=

So my new complete http dynamic signature address is:
http://eq2.obsidian-aegis.com/scripts/eq2sig/image.php?cid=223319203&img=panel&blah=

Hit submit, and it will give you a tinyurl. Most likely something like this:
http://tinyurl.com/3odgl

Now in the forums of your choice, instead of using the long dynamic signature you had previously, type in http://tinyurl.com/3odgl/blah.png (png is the file format I have been using, but in future version you want to change png to whatever the final image will be, either jpg, png, or gif.).

Here are examples: Two different links that do the exact same thing...
http://tinyurl.com/65jh6/blah.png
http://eq2.obsidian-aegis.com/script...mg=panel&blah=

EDITED: Removed images and used links. Too many dynamic images in a single thread = more time to display each image... LOL

Hideki 02-07-2005 11:18 AM

If i try your page 0ctavius the result of my Sig result of this :

http://eq2.obsidian-aegis.com/script...2302&img=panel

Did i miss something ?

lusny 02-07-2005 12:03 PM

I did follow your advice. but, not work now.
http://lusny.new21.net/sig/image.php...5101&img=panel is url
and used http://lusny.new21.net/sig/image.php...mg=panel&blah=
but, didnt give tiny url
Am I wrong?
when I use test.php then that just give eq2players parse result.


yes, this board can view dynamic url. but my phpBB borad is not work.

Hideki 02-07-2005 12:08 PM

If i use the link given by Lusny it's seems to work better :

http://lusny.new21.net/sig/image.php...2302&img=panel

0ctavius 02-07-2005 12:30 PM

Quote:

Originally Posted by lusny
I did follow your advice. but, not work now.
http://lusny.new21.net/sig/image.php...5101&img=panel is url
and used http://lusny.new21.net/sig/image.php...mg=panel&blah=
but, didnt give tiny url
Am I wrong?
when I use test.php then that just give eq2players parse result.


yes, this board can view dynamic url. but my phpBB borad is not work.

your link is:
http://lusny.new21.net/sig/image.php...5101&img=panel
new link is:
http://lusny.new21.net/sig/image.php...mg=panel&blah=
tinyurl link is:
http://tinyurl.com/3qw4c
your signature link is:
http://tinyurl.com/3qw4c/blah.png

As far as it not working on your phpBB2 board., I am not sure what to tell you. test.php is just something I am using right now, because my live image.php is using a database backend (yes, it is the new script I will be releasing today :D ). As far as I know, phpBB2 uses standard bbcode, so [ img] tags should work. You should be putting in:
[*img]http://tinyurl.com/3qw4c/blah.png[*/img] (without the * of course)

On a side note, blah is just something I came up with. it can be literally anything. I was just trying to make it easier for novices to figure out...

0ctavius 02-07-2005 12:39 PM

Quote:

Originally Posted by Hideki
If i try your page 0ctavius the result of my Sig result of this :

http://eq2.obsidian-aegis.com/script...2302&img=panel

Did i miss something ?

You really don't want to use mine buddy. Download it and try it yourself. The code I have for download is current, and doesn't do what you just got. using my test.php from my website is going to give you varying results, because I am actually currently testing and upgrading the script. You are atempting to use something that is halfway into the next version :p

That is why when you did the same thing but from Lusny's site, it worked fine - because the one he has is the one I released. The one on my site is not a release script yet and still undergoing tweaks (database, etc...)

I think I need to pull the files from my website and only keep the release copy there. That way you can't accidentally use my development version. I just got lazy I guess :eek:

Drumstix42 02-07-2005 12:59 PM

Another reason why I haven't made anything for simply anyone to use... the time helping others with their problems :p

0ctavius 02-07-2005 01:11 PM

Quote:

Originally Posted by Drumstix42
Another reason why I haven't made anything for simply anyone to use... the time helping others with their problems :p

That may be true, but I actually don't mind. For one I take pride in my work, and more often than not the little bugs and issues that you miss are found by other people. So I let people use it, test it, poke at it with sharp sticks or whatever they want, and in the end my script gets better...

But then again, this is what I do for a living - Network Administration, with a hint of tech support...

FYI - the old links I had here for my signature script on my guild's website will no longer work. I moved it to another directory. I also only have the release version up there, and my test version (with database) is hidden away on a private test server. I updated all of my posts with the latest urls so nothing should be broken in the above posts.

Drumstix42 02-07-2005 02:12 PM

Quote:

Originally Posted by 0ctavius
But then again, this is what I do for a living - Network Administration, with a hint of tech support...

That's cool :)

I'm only 16 so... I've yet to take up a career choice :rolleyes:

maxh 02-07-2005 05:32 PM

hey 0ctavius
very nice job
but i think the problem most ppl have isnt the tiny url
but that the page is just blank

http://www.maxh.net/eq2sig/image.php...6205&img=panel
im not a total php noob
well lets say im an enduser who was forced to get some skills
www.maxh.net
www.totsm.com

but i couldnt get your script to run :/

http://tinyurl.com/5mzck

wth am i doin wrong?

lusny 02-07-2005 09:05 PM

thanks for answer.
that working now. :)

ger 02-07-2005 10:21 PM

Quote:

Originally Posted by 0ctavius
But then again, this is what I do for a living - Network Administration, with a hint of tech support...

Ah, the life of a tech geek. ;) I'm tech support with a hint of network admin hehe. :D

Back on topic, a suggestion: might it be possible to allow players to pass their character's surname via an argument since EQ2Players doesn't list it? And some more praise (now that I got it downloaded and working) this thing is so very, very cool. A dancing banana for you, sir! :nana:

Itanius 02-08-2005 01:05 AM

Does anyone have or know where to find the scripting hooks for the data at EQ2Players? I'm referring to the stats like Quests completed, Last Killed By, etc. A list of all those hooks would be great, but I can't seem to find them anywhere.

Thanks :)

ger 02-08-2005 08:33 AM

Quote:

Originally Posted by Itanius
Does anyone have or know where to find the scripting hooks for the data at EQ2Players? I'm referring to the stats like Quests completed, Last Killed By, etc. A list of all those hooks would be great, but I can't seem to find them anywhere.

Thanks :)

The code to grab that info would be the same as what's used to grab name, guild, etc. except you'd have to parse http://eq2players.station.sony.com/e...chievements.vm instead of http://eq2players.station.sony.com/en/pplayer.vm

0ctavius 02-08-2005 10:07 AM

Quote:

Originally Posted by Itanius
Does anyone have or know where to find the scripting hooks for the data at EQ2Players? I'm referring to the stats like Quests completed, Last Killed By, etc. A list of all those hooks would be great, but I can't seem to find them anywhere.

Thanks :)

Give me another day. I was going to release the database version of my script last night (actually database and NO database in one script, you can turn it off in the config file) but I decided to wait another day to add a few things. One of those things is a file that lists the arrays in their complete form. That way you can see EXACTLY which array key goes to which value. So you want to figure out which key is used to display the zone you were last killed in? My script does in fact parse it, you just need to know the array key.

And beyond that, I am adding an admin interface, to let you manage the entries in the database, and possibly some other settings.

As for the suggestion of adding the ability for a surname. Yes I can do that easily. My first version of this script (long before it was released here) actually had that, but I found that if you are in a guild with a long name, and your name is long, it looks pretty bad on your sig. But I will add the feature anyway, and let you decide whether to use a surname or not :p

Also a quick tip. For those of you who have asked how I was able to get the guild rank dynamically. I pull the guild roster for your guild id dynamically, and then do an array search for your player name (that matches the name from the array gotten earlier in teh script). The array key that is returned is a number, and the key just before that is where your guild rank will be. So I simply take the key, and subtract 1 from it and then use that new value to grab the key where your guild rank is.

Drumstix42 02-08-2005 11:41 AM

You make it sound more complicated than it is.

0ctavius 02-10-2005 08:23 AM

It is for people that don't know how. The post was meant for them, not you...

Anything is hard until you are told or learn on your own how to do it...

By the way, nice sig ger, I like the purple and green...

Drumstix42 02-10-2005 12:48 PM

Just meant how you explain it makes it even confusing to me. :p


All times are GMT -5. The time now is 03:50 PM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI