Pages: 1 [2] 3 4 5 6 :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
DeTox MinRohim
Madhatters Inc. M. PIRE
|
Posted - 2007.06.25 16:33:00 -
[31]
Edited by: DeTox MinRohim on 25/06/2007 22:59:34
Be aware that sometimes, the trainingEndTime in the Character information is sometimes wrong... dunno what happened recently but it doesn't give the right value anymore on some characters.
It seems to add 10 hours to the real training end time. Example: http://eve.onewayweb.com/skillsheet.php?cid=902041617
This toon is finishing in 5 hours around 21H GMT tonight but according to the training xml file:
<trainingEndTime>2007-06-26 07:50:36</trainingEndTime>
Wich is wrong.
Note that on another char: http://eve.onewayweb.com/skillsheet.php#s16591
The training end time is right.
Can't do much until this is confirmed.
Scrap that... seems I was wrong.
------ This sig space is Read-only ! omgalink - Online Skillsheet |
Dan Treva
|
Posted - 2007.06.25 23:49:00 -
[32]
I downloaded the 2.0b zip file to give it a try...
Tells me the file is corrupt. May want to check it out. |
DeTox MinRohim
Madhatters Inc. M. PIRE
|
Posted - 2007.06.26 00:30:00 -
[33]
Originally by: Dan Treva I downloaded the 2.0b zip file to give it a try...
Tells me the file is corrupt. May want to check it out.
mm... working fine on my side and I'm on a different computer from the one the zip was made. Tested the archive and all was good.
Here is a rar file instead of a zip made with winrar [ HERE ]. Maybe it'll do better for you?
------ This sig space is Read-only ! omgalink - Online Skillsheet |
Perin Ashedge
Minmatar Total Information Technology
|
Posted - 2007.06.26 01:28:00 -
[34]
Edited by: Perin Ashedge on 26/06/2007 01:30:02 Edited by: Perin Ashedge on 26/06/2007 01:29:41 I am working on a modification that mimics what Dejah Carter did, and will be making it downloadable when I have it working. That will probably be my first version of the script as I intend on doing a little bit more (and maybe some code optimizations as well as an input for people to add theirs (say, corp members, etc)).
Edit: A halfway related question, but what did you use to insert your "license" in to every one of your items?
|
Keav
Minmatar Spitfire Inc
|
Posted - 2007.06.26 17:12:00 -
[35]
Edited by: Keav on 26/06/2007 17:12:10 The path not found could be because you are specifying an absolute path instead of relative, assuming you have created the necessary folder in the right place.
I also get similar errors relating to fopen and fwrite. I know for a fact that my server provider has php running in safe mode (look here for an explination) so I guess that's the reason.
I'm not a programmer but is there a way that the xml can be parsed on the fly rather than written to a temp folder? Because that appears to be my issue...
Thanks in advance
|
DeTox MinRohim
Madhatters Inc. M. PIRE
|
Posted - 2007.06.26 17:36:00 -
[36]
Edited by: DeTox MinRohim on 26/06/2007 17:36:01
Originally by: Perin Ashedge
Edit: A halfway related question, but what did you use to insert your "license" in to every one of your items?
License ?
Originally by: Perin Ashedge
More Edits: Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of xml_parser_set_option(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /xxx/yyy/zzz/eve.palehorsegaming.com/corp/includes/xml.php on line 82
mmm, this would mean removing the & in front of some of the $this->parser in the xml.php file.
Might change the behavior of the class though. Will have to test it.
Originally by: Perin Ashedge
Warning: fopen(../www/characters/perinashedge.xml) [function.fopen]: failed to open stream: No such file or directory in /xxx/yyy/zzz/eve.palehorsegaming.com/corp/includes/charxml.php on line 77
What Keav said
Originally by: Keav
I'm not a programmer but is there a way that the xml can be parsed on the fly rather than written to a temp folder? Because that appears to be my issue...
Yes it is possible. the reason it's not done is that in case you have a lot of visits, you would be hammering the eve server with the same request of the same xml file while the data it contains can be calculated by you (time left to train for example). That's why it is saved in a file for 60 minutes.
You can reduce the time by changing line 46 in the charxml.php file (see the 60*60) to something like 60*30 for 30 minutes or 60*15, etc...
I'll make that as an option next time in the config file.
------ This sig space is Read-only ! omgalink - Online Skillsheet |
Keav
Minmatar Spitfire Inc
|
Posted - 2007.06.26 18:03:00 -
[37]
It's ok, I just got it working!!
Had my xml folder in the wrong place! Duuhh! It has to go OUTSIDE your public_html folder, i.e. up the tree one step.
After that I realised that my ftp prog had changed all the filenames to lower case but some of the include and Smarty files are capitalised. Corrected that and now all working
Nice one DeTox!
|
Dan Treva
|
Posted - 2007.06.26 18:35:00 -
[38]
The RAR file worked for me. Might be an XP bug with ZIP files.
I did find a missing file, and a small bug.
If you have no skill training: level_act.gif is missing If you have a skill but not trained to lvl1: level0.gif is missing If you have no skill training, there is no border on the bottom of the cell where the skill name would normally appear. Maybe should say 'None' ?
|
Nilt
|
Posted - 2007.06.26 19:58:00 -
[39]
Originally by: Dan Treva The RAR file worked for me. Might be an XP bug with ZIP files.
I also had issues with the Zip file. I tried it with both Vista's built in (ugh), WinRAR on XP and WinZip on XP. It seems to have been corrupted in all cases. The RAR worked fine but I had to clean up some extra lines and such. That, I'm pretty sure, is an XP issue though.
My only suggestion would be to have an option to block the wallet balance if folks wish.
|
DeTox MinRohim
Madhatters Inc. M. PIRE
|
Posted - 2007.06.26 23:58:00 -
[40]
Originally by: Nilt
Originally by: Dan Treva The RAR file worked for me. Might be an XP bug with ZIP files.
I also had issues with the Zip file. I tried it with both Vista's built in (ugh), WinRAR on XP and WinZip on XP. It seems to have been corrupted in all cases. The RAR worked fine but I had to clean up some extra lines and such. That, I'm pretty sure, is an XP issue though.
Damn... that zip really came bad , gotta check or redo it or whatever first thing in the morning.
Originally by: Nilt
My only suggestion would be to have an option to block the wallet balance if folks wish.
As you can see on mine [ HERE ], it's simply a question of hiding the balance variable in the template.tpl.
Remove this (or change it):
<!--[$balance]-->
I'll soon have a SVN ready (cause I need it for other stuff anyway) and probably a TRAC so stuff like that will be followed more easily than on forum (that doesn't send mail notification when someone answers). Chears ------ This sig space is Read-only ! omgalink - Online Skillsheet |
|
Perin Ashedge
Minmatar Total Information Technology
|
Posted - 2007.06.27 06:30:00 -
[41]
Edited by: Perin Ashedge on 27/06/2007 06:34:45 Edited by: Perin Ashedge on 27/06/2007 06:31:49
Originally by: DeTox MinRohim Edited by: DeTox MinRohim on 26/06/2007 17:36:01
Originally by: Perin Ashedge
Edit: A halfway related question, but what did you use to insert your "license" in to every one of your items?
License ?
Yes, the /* License ?... what license?*/ /* This thing is free for you to take.*/
Originally by: Perin Ashedge
More Edits: Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of xml_parser_set_option(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /xxx/yyy/zzz/eve.palehorsegaming.com/corp/includes/xml.php on line 82
mmm, this would mean removing the & in front of some of the $this->parser in the xml.php file.
Might change the behavior of the class though. Will have to test it.
Did not change a thing when I removed them.
Originally by: Perin Ashedge
Warning: fopen(../www/characters/perinashedge.xml) [function.fopen]: failed to open stream: No such file or directory in /xxx/yyy/zzz/eve.palehorsegaming.com/corp/includes/charxml.php on line 77
What Keav said
Hahaha, I had the darned thing set to the folder perameters that my server uses, which don't match with the live server (the test is just /www/ instead of /path/to/my/website/). Fixed this part and the character sheet shows up now, but with the xml.php issue still. I set it to ../ and it works on both. :D
Originally by: Keav It's ok, I just got it working!!
Had my xml folder in the wrong place! Duuhh! It has to go OUTSIDE your public_html folder, i.e. up the tree one step.
After that I realised that my ftp prog had changed all the filenames to lower case but some of the include and Smarty files are capitalised. Corrected that and now all working
Nice one DeTox!
My files are properly named, but I am still having trouble with the deprecated xml. Everything still seems to run fine, however.
|
DeTox MinRohim
Madhatters Inc. M. PIRE
|
Posted - 2007.06.27 06:42:00 -
[42]
Originally by: Perin Ashedge
Yes, the /* License ?... what license?*/ /* This thing is free for you to take.*/
Oh, well I know there are a few nifty tools that can create you empty files with pre-written stuff like this but I don't use them. Old CTRL-C/CTRL-V worked fine in this case.
Originally by: Perin Ashedge
My files are properly named, but I am still having trouble with the fwrite();.
That might happen if the fwrite tries to write in a file but the with no content (empty variable) or the folder is not writable maybe. If the folder is writable, delete the temp xml files and reload to see if that changes something.
------ This sig space is Read-only ! omgalink - Online Skillsheet |
Perin Ashedge
Minmatar Total Information Technology
|
Posted - 2007.06.27 06:56:00 -
[43]
Edited by: Perin Ashedge on 27/06/2007 06:55:41
Originally by: DeTox MinRohim
Originally by: Perin Ashedge
Yes, the /* License ?... what license?*/ /* This thing is free for you to take.*/
Oh, well I know there are a few nifty tools that can create you empty files with pre-written stuff like this but I don't use them. Old CTRL-C/CTRL-V worked fine in this case.
Ah, okay :D I use the CTRL-C/V, was just curious how you did it.
Originally by: Perin Ashedge
My files are properly named, but I am still having trouble with the fwrite();.
That might happen if the fwrite tries to write in a file but the with no content (empty variable) or the folder is not writable maybe. If the folder is writable, delete the temp xml files and reload to see if that changes something.
Folder /character/ is 777 and had xml in it; I deleted it and still I get the error and no skillsheet. Since it doesn't work, I switched the "../characters/" to "../" and it works fine, but dumps the character xml into the base folder :/ I don't get how either of those are different... and still the error.
|
Incarna Varaj
|
Posted - 2007.07.27 19:06:00 -
[44]
Nice tool, thanks.
I've noticed that the level0.gif is missing. Here is one folks can use if they like.
Will have to rename it to level0.gif
|
Xolkiyr85
|
Posted - 2007.08.10 11:33:00 -
[45]
Was curious, how would you pass a variable to the eveconfig.php file? Everything I've tried causes the entire thing to die. I am doing this because I've modified the code to pull the various variables from a database. (Side Note: All sensetive variables are md5 encrypted)
So, how would I pass variables to the eveconfig.php file?
|
DeTox MinRohim
Madhatters Inc. M. PIRE
|
Posted - 2007.08.10 19:03:00 -
[46]
Edited by: DeTox MinRohim on 10/08/2007 19:10:16 Edited by: DeTox MinRohim on 10/08/2007 19:04:08
Originally by: Xolkiyr85 Was curious, how would you pass a variable to the eveconfig.php file? Everything I've tried causes the entire thing to die. I am doing this because I've modified the code to pull the various variables from a database. (Side Note: All sensetive variables are md5 encrypted)
So, how would I pass variables to the eveconfig.php file?
The eveconfig file is only included in the main file... Not much action done in it.
After, the $eveconfig array is available in the main file so you can do whatever you want with it :)
From the moment you see
require_once('eveconfig/eveconfig.php');
After that, you can play with the $eveconfig array.
------------------ After our convo, seems to me that the solution for you is simply to drop the eveconfig file and build the eveconfig array yourself using the information of each pilots you have in your DB.
------ This sig space is Read-only ! omgalink - Online Skillsheet |
Lex Karkahn
|
Posted - 2007.08.12 16:42:00 -
[47]
I have this setup and working for a couple different chars, but I do not get the very top bar I'm seeing elsewhere that links to the other characters not currently being shown. Do I need to do something in config to enable this?
Thanks, Lex
|
Keav
Minmatar Spitfire Inc
|
Posted - 2007.08.15 11:13:00 -
[48]
Originally by: Lex Karkahn I have this setup and working for a couple different chars, but I do not get the very top bar I'm seeing elsewhere that links to the other characters not currently being shown. Do I need to do something in config to enable this?
I have the same problem, looks like my template file is missing the necessary bits but no idea if I need to change anything else.
Thanks
|
Keav
Minmatar Spitfire Inc
|
Posted - 2007.08.15 18:48:00 -
[49]
Ok, below is the code you need for two characters:-
Quote: <div style="float:right;position:relative;top:12px;margin-left:-120px">لل<a href="skillsheet.php?cid=<!--[if $characterID eq '1111111111']-->2222222222<!--[else]-->1111111111<!--[/if]-->" title="<!--[if $characterID eq '1111111111']-->CHARACTER2<!--[else]-->CHARACTER1<!--[/if]-->"><img src="http://img.eve.is/serv.asp?s=64&c=<!--[if $characterID eq '1111111111']-->2222222222<!--[else]-->1111111111<!--[/if]-->" width="32" height="32" class="mbAvatar" style="border:1px solid gray" alt="<!--[if $characterID eq '1111111111']-->CHARACTER2<!--[else]-->CHARACTER1<!--[/if]-->" /></a></div>
Insert this in the Template.tpl file immediately after line 83. It doesn't replace anything, just insert the extra lines.
Replace the 1111111111's with the char id of character 1 and the 2222222222's with the char id of character 2. Then replace "CHARACTER1" with character 1's name and "CHARACTER2" with character 2's name.
The relevent character details must be completed in the eveconfig.php file also.
You'll also need to put the charinfo.png file in the images folder too...
I'm just too good to you!
|
DeTox MinRohim
Madhatters Inc. M. PIRE
|
Posted - 2007.08.23 16:09:00 -
[50]
Will we ever get a mail notification when there is an answer in our OP........ anyway.
Lex, Keav said it. It was a modification I made in my template, original idea from Dejah Carter on page 1.
themes/default/template.tpl is a html file that you can modify like you want. (make backups of course).
------ This sig space is Read-only ! omgalink - Online Skillsheet |
|
Aleyah Dawnborn
|
Posted - 2007.08.27 17:50:00 -
[51]
Keav/DeTox,
If I have more than two characters (I have four) and I want to make the top bar, how can I go about doing that?
Thanks in advance. >.>
|
Measter1
Minmatar The Aussie Connection Corp
|
Posted - 2007.08.28 20:14:00 -
[52]
Originally by: Keav Ok, below is the code you need for two characters:-
Quote: stuff
Insert this in the Template.tpl file immediately after line 83. It doesn't replace anything, just insert the extra lines.
Replace the 1111111111's with the char id of character 1 and the 2222222222's with the char id of character 2. Then replace "CHARACTER1" with character 1's name and "CHARACTER2" with character 2's name.
The relevent character details must be completed in the eveconfig.php file also.
I'm just too good to you!
I noticed when i used this that it put the image over the top corner of the attributes section, if you change the style to
Quote: float:right;position:relative;margin-top:-34px;
and put whole lot on line 95(after the picture of the selected character), it'll put the image on the bottom right corner of the current characters image.
|
Perin Ashedge
Minmatar Total Information Technology
|
Posted - 2007.09.01 23:19:00 -
[53]
Edited by: Perin Ashedge on 01/09/2007 23:23:32
Originally by: Aleyah Dawnborn Keav/DeTox,
If I have more than two characters (I have four) and I want to make the top bar, how can I go about doing that?
Thanks in advance. >.>
I am currently looking for a way to step through the eveconfig file and have it build a link list that you can insert anywhere you please.
------ Total Information Technology is currently looking for miners. |
Flav Mine
Amarr Absolute Damage Inc
|
Posted - 2007.09.05 09:56:00 -
[54]
I am looking at doing the same. However I am rewriting it a little to use mysql database calls. When you enter someones details it will save the api information to a database, then any future call will be via that information. A list will also be able to be called easily.
As I am also incorporating this into our existing smf forum software, i will hopefully have this as a pre-requisite for people to signup with us, it will verify that your details are correct then let you proceed whilst saving that information. And for reasons of privacy, only the member who owns the character and the admins of the site will be able to view it.
As I said this is in development, and once complet I will be more than happy to share the standalone code and smf version of it.
Would anyone be interested in this.
|
Flav Mine
Amarr Absolute Damage Inc
|
Posted - 2007.09.05 12:24:00 -
[55]
Ok. This has proven to easier than expected. I should have a clean standalone version by tomorrow night. This will allow you to enter the information via a form, which will save it to the database. From there all you have to do to call it is use eg:
skillsheet.php?name=600460034
Where name = Character ID of a Char you have previously submited via the form.
You can have as many chars as you want. this will make the other char options within the eveconfig file obsolete.
I will further develop this so you can either have a list of everyone youe have imported or/and a search option.
If anyone has any suggestions then please let me know and I will see what I can do.
|
Perin Ashedge
Minmatar Total Information Technology
|
Posted - 2007.09.06 03:08:00 -
[56]
Originally by: Flav Mine I am looking at doing the same. However I am rewriting it a little to use mysql database calls. When you enter someones details it will save the api information to a database, then any future call will be via that information. A list will also be able to be called easily.
As I am also incorporating this into our existing smf forum software, i will hopefully have this as a pre-requisite for people to signup with us, it will verify that your details are correct then let you proceed whilst saving that information. And for reasons of privacy, only the member who owns the character and the admins of the site will be able to view it.
As I said this is in development, and once complet I will be more than happy to share the standalone code and smf version of it.
Would anyone be interested in this.
I would be very interested in this as I am porting this as well as a few other php programs to mysql so that data is managed easier with less redundancy. Depending on how yours works out, I may integrate some of my tools into it. :) ------ Total Information Technology is currently looking for miners. |
DeTox MinRohim
Madhatters Inc. M. PIRE
|
Posted - 2007.09.07 15:17:00 -
[57]
Edited by: DeTox MinRohim on 07/09/2007 15:25:45
Interesting all this
Might be interesting to make it an option. File Cached or Database Cached.
I've integrated it in my board code already with an option for Privacy (Public/Alliance/Corp/Personal). http://killboard.m-pire.co.uk/skillsheet.html (Pilots go to the ingame page to the portrait page and yada yada).
But it uses custom modifications in the board and the sheet.
------ This sig space is Read-only ! omgalink - Online Skillsheet |
Flav Mine
Amarr Absolute Damage Inc
|
Posted - 2007.09.11 07:09:00 -
[58]
Well I have integrated this into our smf site, though there was a LOT of customisations within smf and the skill script to get this working. It is also used alongside the custom fields package for smf, though you don't really need it. I am now trying to tidy the code and make it into a package that you can easily install onto the latest smf package. Feel free to take a look.
Linkage
The footer for the skills page is missing for no other reason than a bug in the code, I should have this resolved in the next 12 hours.
|
Grez
Minmatar Sybrite Inc.
|
Posted - 2007.09.11 17:13:00 -
[59]
Might be easier to use:
"$eve_filepath = getcwd().'/temp'; // Remember to chmod it 777"
instead of :
"$eve_filepath = '/home/yoursite/xxx/yyy/temp'; // Remember to chmod it 777"
Also, if you're scared about people reading that directory for whatever reason, just CHMOD it to 333, that way no-one can read it. ---
|
Cypherous
Minmatar Liberty Rogues
|
Posted - 2007.09.13 10:17:00 -
[60]
Ok looks good not tried it yet, does this support multiple users because i want to throw up a passworded section on our corp site so we can see each others skills etc, obviously its API based so people can unsubscribe to it as they wish any help is appreciated. ---------
Liberty Rogues Website
|
|
|
|
|
Pages: 1 [2] 3 4 5 6 :: one page |
First page | Previous page | Next page | Last page |