![]() |
hehe... and I thought it was just me. :)
|
I've installed PHP on my windows 2003 server and set up the EverQuest 2 Scripting Engine Generator (version 0.07) as outlined in the readme file, but it isnt working for me. :(
Here is the link for the sig image: My Sig When I load it I see the following errors: <br /> <b>Notice</b>: Undefined index: sn in <b>D:\WebSites\Paragon\eq2sig\image.php</b> on line <b>6</b><br /> <br /> <b>Notice</b>: Undefined index: m in <b>D:\WebSites\Paragon\eq2sig\image.php</b> on line <b>7</b><br /> <br /> <b>Notice</b>: Undefined variable: handle in <b>D:\WebSites\Paragon\eq2sig\includes\global.php</b> on line <b>40</b><br /> <br /> <b>Notice</b>: Undefined variable: handle in <b>D:\WebSites\Paragon\eq2sig\includes\global.php</b> on line <b>40</b><br /> <br /> <b>Notice</b>: Undefined variable: handle in <b>D:\WebSites\Paragon\eq2sig\includes\global.php</b> on line <b>40</b><br /> ‰PNG Any idea what I did wrong? Nevermind... Removed PHP and manualy installed and it works perfectly. PHP windows installer is evil :p Next question: Can I use MSSQL for the DB? |
No clue
Ok, Im a php newb. Quoting code and such doesnt work for me. I installed Octavius' files on my server, but i get this message:
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /"removed my servername for privacy"/eq2sig/includes/global.php on line 8 8:Access denied for user: ' removed servername for privacy '(Using password: YES) (note, i removed my servername on these boards, but it is correct in my address) I wish there was a "How to install your sig generator, For Dummys" post. Anyone able to help? Den |
what is the   thing? |
i havent look at the code, but is a no breaking space (in html if there is more than 1 space they are ignored and treated as just one, so if you want to have more than one space between letters you have to use )
|
How do i get rid of it? I know nothing of html
Code:
<?php |
Alright I think I figured it out. I am not a hardcore programmer but I like to play around. So instead of that error we got I replaced it with Player status. Here is what I got for you:
Go into the Dir: /themes/default open the file themes.php in notepad change the following lines in NORMAL SIGNATURE MODE from Code:
imagestring($image_out, 2, 15, 56, $player['rank'], $color);Code:
imagestring($image_out, 2, 15, 56, "Player Status: ".$player['status'], $color);You can also change this for the other file in the panel folder if you want to use the other backround. view below to see my Sig |
Quote:
If I follow what you say to the T, when I link to the "fake" image, I end up with it just showing my player id, what am I missing if you do not mind sharing. Thanks. |
in the image.php change:
Code:
$pid = get_var($HTTP_GET_VARS['cid'], "pid");Code:
$pid = "000000000";this way you won't have to have any extra stuff on the URL of your signature, allowing it to function on all sites that allow images. |
got it thanks a lot! :)
|
One last question. I been searching everywhere but can't find the answer. I have this code in my theme.php:
Code:
imagestring($image_out, 2, 135, 4, "Player Status: ".$player['status'], $color);:nana: |
The code w/ database caching your using is not setup to parse the Achievments page. However, mine is. Mine is also much more "readable" in coding standards of my own at least. There's no theme files, or anything like that. 2 files, config, and image. Difference in mine is that I use a different php command to do the text, so I don't get that crappy default GD font.
So... if you wanted Quests Completed, you would have to add code parse the achievements page, and then add the SQL to cache it if wanted. Or maybe I'll just post the code later :rolleyes: |
Quote:
All I need is the quest completed equivalent of "$player['status']". I figured I would have to add the proper tables etc but without knowing this key piece of info it makes it a little hard. While I can do a lot with PHP I have never really done HTML parsing before. So while the answer may be obvious to you it is not to everyone. ;) Anyways, if yours supports the same thing as his and has the generation capabilities and themes etc then I would not complain about receiving an IM with it attached :D Thanks for your time. |
Well I am working on a remake of this mod by octavius. As Drum said it is some very messy code. I will be commenting it all, at least the parts I understand enough too lol. I am also changing where he has Rank to Quests completed. I would also like to add lastkilled, lastkilledby and where.
That will not be until a later version. I so far have it using TTF instead of the crap default stuff. So if your server doesn't have support for TTF in your GD install you are going to be out of luck. Now I will be IM'ing Octavius soon to make sure he is ok with me releasing my remake of his system. So as long as he doesn't deny it I will try to get something put together in a week or two. In my plan is to also add a UI for users to navigate to to generate the link. It is easy enough to do but again it will not be for a week or two at the soonest. Have too much going on and not enough time to do it lol. If anyone can offer up the parse information for the last killed stuff I would appreciate it. I know some people don't like to share and if not that is fine I am sure it can be found if I keep trying lol. Thanks! P.S. If released I will start my own thread so to have a fresh start :) Examples: ![]() ![]() ![]() |
Yeah, my code is based off his.
Mine isn't set up in theme-friendly-format. But... all the things you need to edit are in one place so, it doesn't matter. As for the parsing of pages. I have a format that makes it, if I might say, hella easy to figure out what number matches which stat, ect. Indeed this thread is quite long for someone looking at it the first time, so anything new, I would say it's best to start a new thread. Plus, this topic was just started as me showing my sig, and not really "how" to make one... but like I said, I may as well give it out... but I'm not including the text lines to my whole sig because I know someone will just change the player id, and have some identical sig... which makes it very boring :) |
Yeah mine is only for use with my guild at my guild site. It is too bad your thread got highjacked lol :)
If you would not mind IM'ing the code to me to save me some time cleaning his current code. I do need the intergration with the db so my entire guild can use this. So I mainly want the code you commented maybe that would explain some of the stuff I am currently confused about ;) Gotta run talk to you later. |
Best I can do is within 2 or 3 days time worth... but I'll post it.
|
Nice Thanks Drum :) I will put this on the backburner until then. :nana:
|
With reference to Octavius's themed sig gen, to make a sig with transparent background you use the following code in your theme.php file.
Code:
$image_get = "themes/theme1/sig.png";http://av.mmog-tng.com/sig/image.php...nye&img=ornate Hope this helps whoever trying to make cool themes :) |
lol if the original image already has a transparent background (like a gif) you don't have to do anything special to it.
and for those waiting for me to post the code, it's coming. I've been busy. |
Apparently, the original Octavius theme.php code could not output the PNG with transparency even if the original PNG image is transparent, hence the mod suggested here. ;)
|
Hey all,
I'm pretty much a neophyte at all this kind of stuff, but I have been able to get Octavius' script to work, add new backgrounds, move text around (I know, not a big deal to most ;) )...but I was wondering if someone could either give me tips on how to change the font or point me in the right direction...hopefully somewhere with the beginner in mind :) I can change the font size no problem, but as for changing the default font or using a truetype font...that I haven't figured out yet. |
Anyone?
Okay...how about this...over at http://www.eqsig.com/ it looks like you can add your own picture (character portrait) to the signature. Is there a way to add a similar feature to Octavius' script? |
parsing
Ok I've been learning php recently and started customizing Octavius's signature code. I got my custom colors, fonts, and placements down. What I am having trouble doing is parsing the html in order to get extra stats, like number of kills and such. I realize some stats are on different pages. Perhaps someone here can explain how html parsing works or provide a link or 2 for some good reference docs, so that i may learn on my own. I have tried google but can't find anything substantial.
Thank you for your time. |
Quote:
|
that was relatively easy. in Octavius's sig files you need to edit the theme.php file.
instead of imagestring use imagettftext example: Code:
imagettftext($image_out, 9, 0, 10, 36, $color, $font, $player['adventurer']);example: Code:
$font = 'font/arial.ttf'; |
So no one can point me in the right direction to learn how to parse html?
|
Well I was supposed to post my code on how to easily take each txt piece from the various pages, and post my examples, but I've 1) been low on time, and 2) really don't play EQ2 anymore.
Hopefully I'll post it one of these days. Basically you'll want the parser code, and instead of displaying the specific array numbers onto your graphic, you just want to echo all of what's in the array. just a simple FOR loop, then you take the numbers you want for your "newly wanted stats" ect. I've modified the parser a bit since Octavious, because somethings just don't work, if they're multi-worded or you only want 1 part of it to have custom text, or whatever. The "real" PITA (pain in the ...) is to add in for extra pages like Achievements page, because you have to add all the DB stuff for All of those, and with SQL, need them in order, ect. I did that already, and just need to post it, but I'll need to find what I did to put it out into a simply array for you. Anyhow, sorry for saying little in many words. |
Ok, so lets see if i understand you any. The Octavius code is parsing for specific text and what I should do is parse the entire page and echo the parse output so i know where the text is that i want?
If i sort of have that right it kinda brings me back to my original question. is there a website or something where I can learn about html parsing commands and what its doing? maybe somewhere in www.php.net? I tried a search on that site but can't get many parsing commands to show up. I do appreciate you taking your time to reply and help a php beginner :) |
New Dynamic Sig generator eqsig.com
Hey guys I have been working out the bugs on my sig generator in the past few weeks and it is now working pretty well. Its only been up for about two weeks and already have over 100 people sign up. I am using it right now in my signature, and there are random example sigs on the website.
http://www.eqsig.com EDIT: for some reason this got merged w/ this post, which was totally a different service. remotely hosted and i have wrote my own code |
With the .htaccess tag Drums posted you can still use options on the end of the url. You just need to put somthing like null=.gif and the end to fool the forums checking code.
This is my normal url to my sig http://www.crusadersvalorous.org/lan.../sig/toran.gif and here is one I use for soe restricted site http://www.crusadersvalorous.org/lan...=soe&null=.gif and here is one I use sites that have odd ball size restriction http://www.crusadersvalorous.org/lan...=300&null=.gif ![]() Yes I am still working on the transparency when the image gets resized:/ Other then that it works pritty good. |
Ok whats up with IE? In Firefox the back ground is tranparent like it is coded to do but when I look at it with IE it has black (10,10,10) back ground I used. Does IE blow that bad it can't even display graphics right? /sigh
|
Hi guys, I have been 'offline' for some time, but started getting a bit of nostalgia so thought I would look in to see how the progress os going. Feel free to bounce ideas off me if you need. I don't intend to pick this script back up again, as it would not be fair to anyone else who has made progress with it, nor would it be fair to anyone if I picked it up, and dropped it again later.
I can at least offer my experience and knowledge on how I originally wrote the script, for those of you wishing to adapt it to your own needs. Good work to those who have made changes for the better. And no, I have not returned to Eq2, now I doubt will I ever. Just not in the cards right now. The web features I see have not made the move to live xml feeds, which is unfortunate, and part of the reason I am glad I am not a part of that community anymore. XML feeds would have made this script SO much easier to design / manage for more of the community. |
Quote:
For more information you should read these articles, as they cover it in great detail. From these you might begin to see why so many people consider the IE browser(despite being the most prominent) to be the worst browser in terms of compatibility and standards compliance: http://www.w3.org/Graphics/PNG/Inline-img.html http://www.w3.org/Graphics/PNG/all_seven.html http://www.w3.org/Graphics/PNG/inline-alpha.html Also go here, and scroll down to "Internet Explorer" in the list of supported browsers. This page is the official home of the PNG image format. http://www.libpng.org/pub/png/pngapbr.html |
I have no idea why, but this script is no longer working on my site (long delay and then finally just the ole red x where the sig should be) - I know I made no changes that would cause it to break. Anyone else having a problem?
Probably is my host (bravenet) but curious if anyone else experienced this - maybe a change at EQ2Players? Any ideas on what I can do to figure this out? Pretty much at a complete loss. |
Quote:
Does the imagettftext string parameters need to be defined in exactly the order you described, and/or does the $font definition need to be in a particular place? I'm no newbie to coding, although PHP is new to me as of a few months back. I'm an expert tweaker, so this breakage is dumbfounding me...everything looks right. I uploaded my fonts and everything. :p |
Quote:
Check this page out: http://us2.php.net/imagettftext |
htaccess
I am trying to get the .gif extension to work so I can post on a php.nuke site, but I just cant get it going. I have the .htaccess file and changed the .php to .gif just like its posted. What could I be doing wrong? Anyone want to walk thru the steps again?
Quote:
Code:
<?phpCode:
<FilesMatch http://www.wawwb.com/eq2sig/denuvesig.gif>Denuve |
1st I beleave
Code:
<FilesMatch http://www.wawwb.com/eq2sig/denuvesig.gif>I'll look when I get home from work to see how mine is, its been a while lol.. |
Changed it, still nothing. /cry.
Anymore hints? I need php for dummies I think. Im totally self taught and I cannot find the info anywhere. |
| All times are GMT -5. The time now is 06:40 AM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI