open All Channels
seplocked EVE Technology Lab
blankseplocked Skill sheet script v2.0 - (API Compliant)
 
This thread is older than 90 days and has been locked due to inactivity.


 
Pages: [1] 2 3 4 5 6

Author Topic

DeTox MinRohim
Madhatters Inc.
The Initiative.
Posted - 2006.10.15 02:52:00 - [1]
 

Edited by: DeTox MinRohim on 04/10/2007 15:28:49
Another useless little php script for viewing your character skills live online (and now in-game). No need to upload your xml files as it loads it automatically.

Version 2.0C-D - Changelog 04-10-2007

Moved to the EveOneWay Sourceforge Project
Added Capital Industrial Ships to the skill list file.
Missing level 0 image.

Version 2.0b - Changelog 25-06-2007

Change from GET to POST to be API Compliant. Only the charxml.php file was changed and can be replaced on a pre-existing 2.0.

Version 2.0 - Changelog 22-06-2007

Now use the EVE API Key instead of the account username and password. Check the eveconfig.php to make the appropriate changes. It uses the GET for the moment and will change it to POST when I'll have a bit more time to play with it.

Version 1.1b - Changelog

Thanks to Dreka Entaris for catching the line I forgot to add about the eveconnect parameter

Version 1.1 - Changelog

Again some fixes here and there including fix for an array php error catched by Ryushe on Eve-O.
Also fixed training time left error on timezone.
Option for offline - Need xml files updated manually. Untested yet, will need feedback

Version 1.0 - Changelog

Tiny fixes here and there, nothing major but less painful as it seems to have fixed the problem of not getting the xml files sometimes.

Version 0.5 - Changelog

Template based using the Smarty Engine (Uber but I love it) and HTML instead of XSL
In-Game template included (Script detects if you are viewing in or out game)
Multiple Characters/Accounts
Themes with possible different theme based on character
Configuration file moved to htaccess protected folder
Etc...

Script needs the CURL library for PHP so you need to check that with you host. Usually, a simple phpinfo() will tell you if you have "curl" compiled with your php setup. If you don't have it, you can ask your host to set it up... or... well... won't work.

Demos
Linkage 1
Linkage 2

RTFM - docs/manual.txt

Download LATEST VERSION HERE

Have fun and fly safe ! Wink

Quinten Wolf
Posted - 2006.10.25 20:08:00 - [2]
 

Hey DeTox,

I downloaded and set everything up, rechecked it.. but strangly.. it tells me that my charid is not found.

I rechecked my account, and its accurate.

What would be the reason for this?

Bambi
Existentialist Collective
Posted - 2006.10.29 12:21:00 - [3]
 

Thanks for this, its just what I have been looking for.
Hope you dont mind if I pick it apart to try to work out how this stylesheet malarky works...

Bambi
Existentialist Collective
Posted - 2006.10.30 15:22:00 - [4]
 

I dont want to cause any offense, but......

Can people vouch for this script package, that its kosher and not gonna send peoples passwords somewhere when they try to encode them?

I dont want to offend the author as it looks like a great bit of scripting, but people will go to extrodinary lengths just to rip off peoples accounts.

DeTox MinRohim
Madhatters Inc.
The Initiative.
Posted - 2006.10.30 17:33:00 - [5]
 

We really need a notification on this forum... unless I missed it.

Originally by: Quinten Wolf
Hey DeTox,
What would be the reason for this?



When I started this, I saw my char id change (although I think I was probably drunk) when I created another character on the same account. You just have to be sure... normally, your charid should be: 213192096 (I think).

Originally by: Bambi

Thanks for this, its just what I have been looking for.
Hope you dont mind if I pick it apart to try to work out how this stylesheet malarky works...



It's all open to see. Wink

Originally by: Bambi

I dont want to cause any offense, but......

Can people vouch for this script package, that its kosher and not gonna send peoples passwords somewhere when they try to encode them?

I dont want to offend the author as it looks like a great bit of scripting, but people will go to extrodinary lengths just to rip off peoples accounts.



Do not worry, I completly understand and I'm sure that you are not the only one that thought the same thing. As it is open (not encrypted in any way except your own password), it will be easy to someone that can read php to tell that if you took it from the link above, it's ... "kosher". Smile

Forgot to mention that it needs the CURL library for php so you have to check with your host for that... will update the first post.

Bambi
Existentialist Collective
Posted - 2006.10.30 19:32:00 - [6]
 

Edited by: Bambi on 02/11/2006 16:01:43
Edited by: Bambi on 02/11/2006 07:42:04
Edited by: Bambi on 02/11/2006 07:39:07
Cheers,
I have curl installed, so I'll have a look when I get some time.

Had a play with this during the long DT, cant get it to work properly. Got a feeling its my ISP failing to log into this website as the page just returns and empty template.
It doesnt appear to be writing any data top the xml file in the folder for data, although its writes the tpl file. (Yes its CHMOD 777)

I have issues loging into this site from the box that has my webserver on it, not sure why...

I have checked for CURL and have found this...
CURL Information libcurl/7.13.0 OpenSSL/0.9.7e zlib/1.2.2 so I guess its installed and working....


It works now, nfi why but it does so I'm happy

DeTox MinRohim
Madhatters Inc.
The Initiative.
Posted - 2006.11.02 16:05:00 - [7]
 

Edited by: DeTox MinRohim on 02/11/2006 16:06:52
The long DT made the server unable to give you your data... so it was kind of normal.

As of now, it should work... it is for me at least.

Note also that the script fetches 2 files, the normal character sheet and the training xml sheet and combines them. Sometimes (and unfortunatly because of the myeve site various... mm... little problems), the curl library misses the training file and get a html file instead. That leaves you with a "Curently training ..... ... blank".

Most of the times, either dump the 2 xml temporary files or wait for the next update. It's usually a 1 on 5 times that thing happens.

Wink

Bambi
Existentialist Collective
Posted - 2006.11.02 16:40:00 - [8]
 

I think the problems I am having are this end at the web site
I cant log in to the my characters section a lot of the time.

It was working perfectly earlier with 3 different accounts and characters, now its not.
:-(

DeTox MinRohim
Madhatters Inc.
The Initiative.
Posted - 2006.11.03 15:52:00 - [9]
 

Originally by: Bambi
I think the problems I am having are this end at the web site
I cant log in to the my characters section a lot of the time.

It was working perfectly earlier with 3 different accounts and characters, now its not.
:-(



koffmyeveloggingsystemftlkoff koff......Laughing

Bambi
Existentialist Collective
Posted - 2006.11.05 12:26:00 - [10]
 

no sh!t

these have to be some of the worst forums I have EVER attempted to use..
I has taken me about 10 mins of loggin in attempts just to get a reply box.
Probably wont be able to post this until Monday when i am at work...

DeTox MinRohim
Madhatters Inc.
The Initiative.
Posted - 2006.11.29 09:25:00 - [11]
 

Edited by: DeTox MinRohim on 29/11/2006 09:25:36
Major rework will be needed on the IGB version of the template as with Revelations, the IGB got some real hate from the devs apparently. Some page that were looking half decent are now totally screwed up and some that were at least working... now receive a "Page not supported"...

I say MEH !

kdRt
Posted - 2007.03.07 16:16:00 - [12]
 

Can I put the whole directory in the www directory ?

I've a restricted host, so my ftp logs on directly in the www directory

DeTox MinRohim
Madhatters Inc.
The Initiative.
Posted - 2007.03.08 02:37:00 - [13]
 

Yes most probably... the temp folder being outside of the browser capable range is only adding more security to the folder that must be writable. But as many other scripts, the temp folder can be in the www also (as long as it is mentioned accordingly in the config file).

I am currently 7500km away from home and will be back this weekend. I can repackage the thing that had some minor fixes here and there since last time. For example, I tweaked something and since then, I barely have the character sheet not getting the xml files problem anymore.

I'll update when it's done... probably friday night or saturday.
Wink

kdRt
Posted - 2007.03.08 02:42:00 - [14]
 

Sweet :)

DeTox MinRohim
Madhatters Inc.
The Initiative.
Posted - 2007.03.10 14:54:00 - [15]
 

There you go, repackaged to 1.0

Wink

Dejah Carter
pyROmaniacs
Posted - 2007.04.03 14:05:00 - [16]
 

Hi there.
I sort of improved on your script, by adding an index.php which grabs all configured characters and displays their portrait along with the name. Click on the portrait and you're taken to the skillsheet.php page for that character.
Also fixed some other minor issues such as no commas in the numbers etc.
One thing I did notice tho, for some strange reason I get a php error on the first char in the list, a char called Kahlen Rahl. If you have any idea what's going on right there, that would be helpfull :)
Overall very nice script.

My version is here: linky
If you want my changed version, let me know.

DeTox MinRohim
Madhatters Inc.
The Initiative.
Posted - 2007.04.05 16:46:00 - [17]
 

Originally by: Dejah Carter
If you have any idea what's going on right there, that would be helpfull :)


As you made a few changes here and there, I'd need to know what is your line 280 as it might differ from mine wich is:


$eveRender->Assign('Training', $skillTraining['skill']['skillName']);


I supposed you tried to delete the xml files cached. Research seems to point to an array not being an array... or ... something like that.ugh

Ryushe
Tengo Kagegetsu
Posted - 2007.04.09 00:20:00 - [18]
 

Originally by: DeTox MinRohim
Originally by: Dejah Carter
If you have any idea what's going on right there, that would be helpfull :)


As you made a few changes here and there, I'd need to know what is your line 280 as it might differ from mine wich is:


$eveRender->Assign('Training', $skillTraining['skill']['skillName']);


I supposed you tried to delete the xml files cached. Research seems to point to an array not being an array... or ... something like that.ugh

Found the problem; if you have a char added which is on the same account as your main, and either of them is training a skill, the other one will not display due to the assigned var for training not being an array, or having an actual value for that matter.
My fix:

if($skillTraining['skill']['skillName'] != '' )
{
$eveRender->Assign('Training', $skillTraining['skill']['skillName']);
$eveRender->Assign('ToLevel', $skillTraining['skill']['trainingToLevel']);
$eveRender->Assign('TrainingID', $skillTraining['skill attr']['typeID']);
$eveRender->Assign('trainingStartTime', $skillTraining['skill attr']['trainingStartTime']);
$eveRender->Assign('trainingEndTime', $skillTraining['skill attr']['trainingEndTime']);
$eveRender->Assign('TrainingTimeLeft', $skillTraining['skill']['TrainingTimeLeft']);
}

You should be able to figure out where this goes ...
This will make the error vanish as if by magic! :)

Also, I expanded on the multiple characters thingy I posted about; it now not only displays correctly on the index, but also on the skillsheet.php page at the top. It'll exclude the active char being viewed, and put the little portraits for the other defined chars there.

DeTox MinRohim
Madhatters Inc.
The Initiative.
Posted - 2007.04.11 00:16:00 - [19]
 

Edited by: DeTox MinRohim on 11/04/2007 00:13:02
Originally by: Ryushe

Found the problem; if you have a char added which is on the same account as your main, and either of them is training a skill, the other one will not display due to the assigned var for training not being an array, or having an actual value for that matter.

You should be able to figure out where this goes ...
This will make the error vanish as if by magic! :)


Nice catch, I thought I had a check about the other characters on the same account but apparently it wasn't complete. Smile

Will fix the package in the morning.
Originally by: Ryushe

Also, I expanded on the multiple characters thingy I posted about; it now not only displays correctly on the index, but also on the skillsheet.php page at the top. It'll exclude the active char being viewed, and put the little portraits for the other defined chars there.


Very nice Smile

For Epro, I don't have an offline version but I'll modify it so that it doesn't load from the eve site. Will be simple, a switch in the config (online/offline) and if offline, you'll have to update yourself the xml the script will be reading.

DeTox MinRohim
Madhatters Inc.
The Initiative.
Posted - 2007.04.11 09:36:00 - [20]
 

Updated OP for version 1.1

Epro
Minmatar
V I R I I
Posted - 2007.05.26 22:49:00 - [21]
 

Edited by: Epro on 26/05/2007 23:03:03
must be going mad, have ccp change the xml format, seems mine isn't working anymore

im being pod killed help :P

http://epro.unknown-heroes.com/skillsheet.php






$default = '130729818'; // For only one char, same as Character 1, for multiple, take one of them.

// Path for templates and xml files - MAKE THAT NON-BROWSABLE !
$eve_filepath = '/home/epro/xml'; // Remember to chmod it 777 (above document root)

// Online/Offline (true/false) - If offline, you'll have to manually put the xml character and training files in the temp folder.
$eveconnect = true;

// NO TOUCHING !
$eveconfig = array();

// Character 1
$eve_username = '********'; // left out for security
$eve_password = '*******';// no encoding, im using plain text password
$eve_encoded = 'no';
$eve_charname = 'Epro';
$eve_charid = '130729818';
$eve_theme = 'default';

Lionel Redstar
Gallente
Pure Skunkworks
Posted - 2007.05.31 07:15:00 - [22]
 

Edited by: Lionel Redstar on 31/05/2007 07:14:12
Originally by: Dejah Carter

My version is here: linky
If you want my changed version, let me know.


Nice mod.Very Happy
Can you put a link to your version in a archived format so it can be downloaded?

splatb0y
Caldari
Diabolus Ex Machina
The Amazing Onjoi and his Educated Rodents
Posted - 2007.06.02 19:22:00 - [23]
 

Originally by: Epro
Edited by: Epro on 26/05/2007 23:03:03
must be going mad, have ccp change the xml format, seems mine isn't working anymore

im being pod killed help :P

http://epro.unknown-heroes.com/skillsheet.php






$default = '130729818'; // For only one char, same as Character 1, for multiple, take one of them.

// Path for templates and xml files - MAKE THAT NON-BROWSABLE !
$eve_filepath = '/home/epro/xml'; // Remember to chmod it 777 (above document root)

// Online/Offline (true/false) - If offline, you'll have to manually put the xml character and training files in the temp folder.
$eveconnect = true;

// NO TOUCHING !
$eveconfig = array();

// Character 1
$eve_username = '********'; // left out for security
$eve_password = '*******';// no encoding, im using plain text password
$eve_encoded = 'no';
$eve_charname = 'Epro';
$eve_charid = '130729818';
$eve_theme = 'default';


getting the same error :(

Lionel Redstar
Gallente
Pure Skunkworks
Posted - 2007.06.04 06:57:00 - [24]
 

Originally by: splatb0y
Originally by: Epro
Edited by: Epro on 26/05/2007 23:03:03
must be going mad, have ccp change the xml format, seems mine isn't working anymore

im being pod killed help :P

http://epro.unknown-heroes.com/skillsheet.php






$default = '130729818'; // For only one char, same as Character 1, for multiple, take one of them.

// Path for templates and xml files - MAKE THAT NON-BROWSABLE !
$eve_filepath = '/home/epro/xml'; // Remember to chmod it 777 (above document root)

// Online/Offline (true/false) - If offline, you'll have to manually put the xml character and training files in the temp folder.
$eveconnect = true;

// NO TOUCHING !
$eveconfig = array();

// Character 1
$eve_username = '********'; // left out for security
$eve_password = '*******';// no encoding, im using plain text password
$eve_encoded = 'no';
$eve_charname = 'Epro';
$eve_charid = '130729818';
$eve_theme = 'default';


getting the same error :(


try changing in includes/charxml.php line 39:

if ( $config['eveconnect'] = true ) {

worked for me

splatb0y
Caldari
Diabolus Ex Machina
The Amazing Onjoi and his Educated Rodents
Posted - 2007.06.04 14:58:00 - [25]
 

mmm, tried that but then i get:

Fatal error: Call to undefined function curl_init() in /var/www/web368/html/splatboy/includes/charxml.php on line 52

Dreka Entaris
Posted - 2007.06.07 22:58:00 - [26]
 

Originally by: splatb0y
mmm, tried that but then i get:

Fatal error: Call to undefined function curl_init() in /var/www/web368/html/splatboy/includes/charxml.php on line 52


That means your host does not have cURL installed, so you can't use this script, sorry.



As for the script not working the author forgot to pass the eveconnect variable along to the new array.

Open index.php and find...

...
$config = $eveconfig[$cid];

$config['filepath'] = $eveconfig['filepath'];
$config['igb'] = $isigb;
...


Add on any empty line just below that, add this:

$config['eveconnect'] = $eveconfig['eveconnect'];


Then it works, enjoy. Very Happy

DeTox MinRohim
Madhatters Inc.
The Initiative.
Posted - 2007.06.18 13:42:00 - [27]
 

Edited by: DeTox MinRohim on 18/06/2007 13:42:47
Originally by: Dreka Entaris
...


Eeep Shocked Maybe one day, at least the OP will get mail notification when there is a new post.

Updated the zip and the OP with that one. Wink

I will install myself a SVN soon for other needs with maybe a TRAC or something so that kind of things doesn't get lost by... lack of awareness.

Expect also a big change anyway soon since the login details won't be needed when the EveAPI will get out in the open. The changes already in place and will be tested when the API is out. Smile

Dan Treva
Raptor Services LTD
Posted - 2007.06.21 17:17:00 - [28]
 

Edited by: Dan Treva on 21/06/2007 17:16:27
API is out =)

I have a strang 'bug' on my sheet.

My completion time is off by +5 hrs. I'm -5 GMT timezone. My server is set to my local time, but it's still not getting the correct completion time on the skills.

So the time is correct if I subtract the 5 hrs.

Maybe a setting that can be adjusted if time isn't calculated correctly?

DeTox MinRohim
Madhatters Inc.
The Initiative.
Posted - 2007.06.22 16:48:00 - [29]
 

Edited by: DeTox MinRohim on 22/06/2007 17:07:48
Check OP

Think I touched this part while changing the stuff to use the API so check with new version to see if it fixes your problem.

Version 2.0 - Changelog 22-06-2007

Now use the EVE API Key instead of the account username and password. Check the eveconfig.php to make the appropriate changes. It uses the GET for the moment and will change it to POST when I'll have a bit more time to play with it.

EDIT: Did a last minute change and reuploaded the zip. The portrait was fixed on my template.

DeTox MinRohim
Madhatters Inc.
The Initiative.
Posted - 2007.06.25 15:43:00 - [30]
 


Version 2.0b - Changelog 25-06-2007

Change from GET to POST to be API Compliant. Only the charxml.php file was changed and can be replaced on a pre-existing 2.0.

OP updated...



Pages: [1] 2 3 4 5 6

This thread is older than 90 days and has been locked due to inactivity.


 


The new forums are live

Please adjust your bookmarks to https://forums.eveonline.com

These forums are archived and read-only