| Author |
Thread Statistics | Show CCP posts - 0 post(s) |

Keav
Minmatar Spitfire Inc
|
Posted - 2007.06.26 17:12:00 -
[1]
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 
|

Keav
Minmatar Spitfire Inc
|
Posted - 2007.06.26 18:03:00 -
[2]
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! 
|

Keav
Minmatar Spitfire Inc
|
Posted - 2007.08.15 11:13:00 -
[3]
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 -
[4]
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! 
|

Keav
Minmatar Spitfire Inc
|
Posted - 2007.09.22 10:43:00 -
[5]
Nice mods Ryushi, however I'm having trouble getting your version working.
I have DeTox's ver running perfectly but when I try to add your modification for the pilot selection index page I get this error:
Fatal error: Call to undefined function: array_combine() in /bla bla/skillsheet_modded/index.php on line 111
The same error occurs on line 99 of skillsheet.php
The line is: $fulldetails = array_reverse(array_combine($pilotName, $pilotID));
I can't see anything wrong though, I'll keep working on it but in the meantime, any ideas??
Thanks in advance 
|

Keav
Minmatar Spitfire Inc
|
Posted - 2007.09.22 11:01:00 -
[6]
Fixed it I love Google - other search engines are available 
The array_combine function was only introduced in php version 5 so if your server is running previous versions the funtcion does not exist.
I found some code to emulate this function:
// array_combine function emulator for php < 5 //
function array_combine_emulated( $keys, $vals ) { $keys = array_values( (array) $keys ); $vals = array_values( (array) $vals ); $n = max( count( $keys ), count( $vals ) ); $r = array(); for( $i=0; $i<$n; $i++ ) { $r[ $keys[ $i ] ] = $vals[ $i ]; } return $r; }
// END EMULATOR //
Just post this into any file that uses the array_combine funtion somewhere above where the function is called.
To credit the right people I found the code at http://uk3.php.net/array_combine and it is Ivo van San****'s post that I used.

|
| |
|