open All Channels
seplocked EVE Technology Lab
blankseplocked [EVEOTS] Eve Online Teamspeak 3 API Registration with PHP5 v1.5
 
This thread is older than 90 days and has been locked due to inactivity.


 
Pages: 1 2 [3] 4 5 6

Author Topic

MJ Maverick
IronPig
Sev3rance
Posted - 2011.04.12 18:57:00 - [61]
 

Originally by: Mediek Ordos

If you changed register.php to have "TICKER | NAME" <<< would this be here line 192 // SET NICKNAME
$nickname = $corpTicker." ".$character;
// TRY TO CONNECT - GATHER DETAILS - GRANT PERMISSIONS - STORE DETAILS

and like this ? $nickname = $corpTicker."| A-C-E | ".$character; ? co's i am thick when it comes to php :-)
ps only to glad to help peeps


Hehe, no worries.

If you want "ACE | Mediek Ordos" then edit $nickname to:

[Line 193]
 			$nickname = $corpTicker." | ".$character;

[Line 247]
  		if ($alliancemate == true) {
$nickname = $corpTicker." | ".$character;
} else {
$nickname = $allianceTicker." | ".$corpTicker." | ".$character;
}


Mediek Ordos
Caldari
Association of Commonwealth Enterprises
Imperial 0rder
Posted - 2011.04.12 21:20:00 - [62]
 

Originally by: MJ Maverick
Originally by: Mediek Ordos

If you changed register.php to have "TICKER | NAME" <<< would this be here line 192 // SET NICKNAME
$nickname = $corpTicker." ".$character;
// TRY TO CONNECT - GATHER DETAILS - GRANT PERMISSIONS - STORE DETAILS

and like this ? $nickname = $corpTicker."| A-C-E | ".$character; ? co's i am thick when it comes to php :-)
ps only to glad to help peeps


Hehe, no worries.

If you want "ACE | Mediek Ordos" then edit $nickname to:

[Line 193]
 			$nickname = $corpTicker." | ".$character;

[Line 247]
  		if ($alliancemate == true) {
$nickname = $corpTicker." | ".$character;
} else {
$nickname = $allianceTicker." | ".$corpTicker." | ".$character;
}




ok nearly :-)
If you want "ACE | Mediek Ordos" then edit $nickname to:
I want to do this "| ACE | Mediek Ordos" then edit $nickname to:
or " RAGE | ACE | Mediek Ordos" then edit $nickname to:

MJ Maverick
IronPig
Sev3rance
Posted - 2011.04.12 21:34:00 - [63]
 

Originally by: Mediek Ordos

ok nearly :-)
If you want "ACE | Mediek Ordos" then edit $nickname to:
I want to do this "| ACE | Mediek Ordos" then edit $nickname to:
or " RAGE | ACE | Mediek Ordos" then edit $nickname to:

[Line 193]
 			$nickname = "| ".$corpTicker." | ".$character;

[Line 247]
  		if ($alliancemate == true) {
$nickname = "| ".$corpTicker." | ".$character;
} else {
$nickname = $allianceTicker." | ".$corpTicker." | ".$character;
}


Will produce:
| ACE | Mediek Ordos
and
RAGE | ACE | Mediek Ordos

Mediek Ordos
Caldari
Association of Commonwealth Enterprises
Imperial 0rder
Posted - 2011.04.12 22:32:00 - [64]
 

Originally by: MJ Maverick
Originally by: Mediek Ordos

ok nearly :-)
If you want "ACE | Mediek Ordos" then edit $nickname to:
I want to do this "| ACE | Mediek Ordos" then edit $nickname to:
or " RAGE | ACE | Mediek Ordos" then edit $nickname to:

[Line 193]
 			$nickname = "| ".$corpTicker." | ".$character;

[Line 247]
  		if ($alliancemate == true) {
$nickname = "| ".$corpTicker." | ".$character;
} else {
$nickname = $allianceTicker." | ".$corpTicker." | ".$character;
}


Will produce:
| ACE | Mediek Ordos
and
RAGE | ACE | Mediek Ordos


Already experimenting :-), ill try not to break it to much cheers MJ Razz

Dutch Psycho00
Posted - 2011.04.14 20:43:00 - [65]
 

i installed it on my server but when i enter my info i keep getting the following error :

API does not match the character you entered's account, make sure you have pasted your API details without any spaces either side and entered your characters name properly

here is the list of the debug mode for security reasons fragile info has been cleared

Debug: Running: Teamspeak 3 PHP Framework version: 1.1.5-beta

API Connection was established.

Checking...
Character: -----
Debug: User ID: ----------
Debug: API Key: -----------------------

Character ID: 0

Debug: Character List:
Debug: Dutch Psycho00
Debug: ------------
Debug: ---------------
Error: API does not match the character you entered's account, make sure you have pasted your API details without any spaces either side and entered your characters name properly. (Denied.)

anybody has any idea what this could be?

please let me know.

Moogless
Posted - 2011.04.14 21:08:00 - [66]
 

Edited by: Moogless on 14/04/2011 21:11:26
Originally by: Dutch Psycho00
i installed it on my server but when i enter my info i keep getting the following error :

API does not match the character you entered's account, make sure you have pasted your API details without any spaces either side and entered your characters name properly

here is the list of the debug mode for security reasons fragile info has been cleared

Debug: Running: Teamspeak 3 PHP Framework version: 1.1.5-beta

API Connection was established.

Checking...
Character: -----
Debug: User ID: ----------
Debug: API Key: -----------------------

Character ID: 0

Debug: Character List:
Debug: Dutch Psycho00
Debug: ------------
Debug: ---------------
Error: API does not match the character you entered's account, make sure you have pasted your API details without any spaces either side and entered your characters name properly. (Denied.)

anybody has any idea what this could be?

please let me know.


That is normally an error from you user typing in script Name: TICKER NAME, and their name on server being TICKER NAME.

However the name during registration needs to just be Name: NAME.

Basicly its not seing the user your trying to register being on the server.

MJ Maverick
IronPig
Sev3rance
Posted - 2011.04.15 00:33:00 - [67]
 

Indeed, if your character ID is 0 then it's because the character you entered doesn't exist.

Example:
Character "Dutch Psycho00" DOES exist.
Character "CP Dutch Psycho00" DOES NOT exist.

Please see the readme for how to register.

Mediek Ordos
Caldari
Association of Commonwealth Enterprises
Imperial 0rder
Posted - 2011.04.15 03:39:00 - [68]
 

Edited by: Mediek Ordos on 15/04/2011 03:41:16
Edited by: Mediek Ordos on 15/04/2011 03:40:10
Originally by: Dutch Psycho00
i installed it on my server but when i enter my info i keep getting the following error :

API does not match the character you entered's account, make sure you have pasted your API details without any spaces either side and entered your characters name properly

here is the list of the debug mode for security reasons fragile info has been cleared

Debug: Running: Teamspeak 3 PHP Framework version: 1.1.5-beta

API Connection was established.



Checking...
Character: -----
Debug: User ID: ----------
Debug: API Key: -----------------------

Character ID: 0

Debug: Character List:
Debug: Dutch Psycho00
Debug: ------------
Debug: ---------------
Error: API does not match the character you entered's account, make sure you have pasted your API details without any spaces either side and entered your characters name properly. (Denied.)

anybody has any idea what this could be?

please let me know.


on the web registration do not use your corp/alliance tikker.
on the TS3 server make sure you DO USE corp/alliance tikker Razz
works just fine

Ashkrall
Lucifer's Hammer
Burn Away
Posted - 2011.04.15 06:28:00 - [69]
 

Edited by: Ashkrall on 15/04/2011 06:29:00
Okay, I'm not exactly sure what's wrong here...

I attempt to register and I get

Checking...
Character: Ashkrall
Debug: User ID: ******
Debug: API Key: ***************

Character ID: ******

Debug: Character List:
Debug: Ashkrall
Debug: ******
Debug: API verified.
You are not allowed to register on this server.

I've got it set up for the corporation Lucifer's Hammer. I'm not sure if the apostrophe is throwing it off or what, but it won't verify me. Character is a member of the corp and has been for a long while, so it's certainly not a problem with the API.

MJ Maverick
IronPig
Sev3rance
Posted - 2011.04.15 14:06:00 - [70]
 

Ok in your config you should have this:
	public $corpList = array("Lucifer's Hammer");

NOTE the "" either side of Lucifer's Hammer.

If you DO have it like that and it's not working then try changing register.php line 164 to:
		if (!in_array("$fetchCorporation",$c->corpList)) {


Please let me know if this works, if you have set the config properly then I need to know if my app is not using ' properly.

Dutch Psycho00
Posted - 2011.04.15 16:06:00 - [71]
 

Edited by: Dutch Psycho00 on 15/04/2011 16:23:24
followed your guide now i get this :S

Debug: Running: Teamspeak 3 PHP Framework version: 1.1.5-beta

API Connection was established.

Checking...
Character: Dutch Psycho00
Debug: User ID: *********
Debug: API Key: *********

Character ID: 1860253443

Debug: Character List:
Debug: Dutch Psycho00
Debug: *********
Debug: **************
Debug: API verified.
You are not allowed to register on this server.

Moogless
Posted - 2011.04.15 16:26:00 - [72]
 

Edited by: Moogless on 15/04/2011 16:26:46
Originally by: Dutch Psycho00
Edited by: Dutch Psycho00 on 15/04/2011 16:23:24
followed your guide now i get this :S

Debug: Running: Teamspeak 3 PHP Framework version: 1.1.5-beta

API Connection was established.

Checking...
Character: Dutch Psycho00
Debug: User ID: *********
Debug: API Key: *********

Character ID: 1860253443

Debug: Character List:
Debug: Dutch Psycho00
Debug: *********
Debug: **************
Debug: API verified.
You are not allowed to register on this server.



Query aint being allowed to communicate with server.

Add Teamspeak 3 server to the firewall on the hostee, and on the webserver you have add the ip of the ts3 server to whitelist.

Mediek Ordos
Caldari
Association of Commonwealth Enterprises
Imperial 0rder
Posted - 2011.04.15 18:24:00 - [73]
 

Originally by: Moogless
Edited by: Moogless on 15/04/2011 16:26:46
Originally by: Dutch Psycho00
Edited by: Dutch Psycho00 on 15/04/2011 16:23:24
followed your guide now i get this :S

Debug: Running: Teamspeak 3 PHP Framework version: 1.1.5-beta

API Connection was established.

Checking...
Character: Dutch Psycho00
Debug: User ID: *********
Debug: API Key: *********

Character ID: 1860253443

Debug: Character List:
Debug: Dutch Psycho00
Debug: *********
Debug: **************
Debug: API verified.
You are not allowed to register on this server.



Query aint being allowed to communicate with server.

Add Teamspeak 3 server to the firewall on the hostee, and on the webserver you have add the ip of the ts3 server to whitelist.

do you have the correct server query admin name and password for serverquery admin correct ??

Dutch Psycho00
Posted - 2011.04.15 19:53:00 - [74]
 

okay problem found was too high security levels on my server lowered it a bit for the script and now it works. thanks for all the help guys :)

Mediek Ordos
Caldari
Association of Commonwealth Enterprises
Imperial 0rder
Posted - 2011.04.16 05:17:00 - [75]
 

Hi MJ, Have noticed the version.php on 1.2 is still 0.17

MJ Maverick
IronPig
Sev3rance
Posted - 2011.04.16 17:44:00 - [76]
 

Hmm, try again. I just checked the files I uploaded and it's saying 1.2 :/ Perhaps it didn't upload properly the first time.

Mediek Ordos
Caldari
Association of Commonwealth Enterprises
Imperial 0rder
Posted - 2011.04.17 06:36:00 - [77]
 

Originally by: MJ Maverick
Hmm, try again. I just checked the files I uploaded and it's saying 1.2 :/ Perhaps it didn't upload properly the first time.


Hi MJ, downloaded from link again and recievied a 1kb zip of nothing this time lol,checked the other zips and they are 0.17 versions.php.

cheers Mediek

MJ Maverick
IronPig
Sev3rance
Posted - 2011.04.17 16:35:00 - [78]
 

Hmmmm, apparently it helps if you actually put the files in the zip before uploading.

...Doing too many things at once again... lol

Mediek Ordos
Caldari
Association of Commonwealth Enterprises
Imperial 0rder
Posted - 2011.04.17 18:07:00 - [79]
 

Cheers MJ, have new zip and installed I would like to see this progess to having a staged
registration proccess as we discussed on TS a few weeks back, that being said did the alterations to register.php to include correct tikker tags in correct place for alliance & corp
A-C-E TS3REG by Maverick with viewer by Psychokiller

So you can see it working as an example other than MJ's fine work.

Kari Trace
Caldari
Nox Imperium
Posted - 2011.04.22 02:11:00 - [80]
 

I've run a bit of a problem. Got everything installed , database is in, get my character data together and submit it...and then I get the following error:

Debug: Running: Teamspeak 3 PHP Framework version: 1.1.5-beta

API Connection was established.

Checking...
Character: -XMP- Kari Trace
Debug: User ID: *****REMOVED*****
Debug: API Key: *****REMOVED*****

Character ID: 0

An error occured: API server couldn't retrieve your account or the API wasn't correct, check for spaces after your entered API. (Error: Invalid username and/or password passed to UserData.LoginWebUser().) [126]


Using the same API data to call the API server directly gets me all the data I could ask for. But when coming from EVEOTS my account shows authentication failed (obviously).

Ideas?

Mediek Ordos
Caldari
Association of Commonwealth Enterprises
Imperial 0rder
Posted - 2011.04.22 10:17:00 - [81]
 

Originally by: Kari Trace
I've run a bit of a problem. Got everything installed , database is in, get my character data together and submit it...and then I get the following error:

Debug: Running: Teamspeak 3 PHP Framework version: 1.1.5-beta

API Connection was established.

Checking...
Character: -XMP- Kari Trace
Debug: User ID: *****REMOVED*****
Debug: API Key: *****REMOVED*****

Character ID: 0

An error occured: API server couldn't retrieve your account or the API wasn't correct, check for spaces after your entered API. (Error: Invalid username and/or password passed to UserData.LoginWebUser().) [126]


Using the same API data to call the API server directly gets me all the data I could ask for. But when coming from EVEOTS my account shows authentication failed (obviously).

Ideas?


ok firstly is your config set up correctly for TS3 server admin ?
example >> class Config {
// Administrators character
public $admin = "Mediek Ordos";
// Teamspeak 3 Server Query Information (REQUIRED)
public $tshost = "put ts3 host ip here";
public $tsname = "serveradmin";
public $tspass = "put serveradmin pass here";
public $tsport = "10011"; //ServerQuery Port
public $tscport = "9987"; //TeamSpeak client port

lets try this first, then in the config have you got the whitelist set up correctly ?
then when registering on the web interface use just use your char name no corp/ally tikker.
on temaspeak use your corp tikker and char name for me it is like this | A-C-E | Mediek Ordos.

hope this helps

Kari Trace
Caldari
Nox Imperium
Posted - 2011.04.22 11:56:00 - [82]
 

Originally by: Mediek Ordos
Originally by: Kari Trace
I've run a bit of a problem. Got everything installed , database is in, get my character data together and submit it...and then I get the following error:

Debug: Running: Teamspeak 3 PHP Framework version: 1.1.5-beta

API Connection was established.

Checking...
Character: -XMP- Kari Trace
Debug: User ID: *****REMOVED*****
Debug: API Key: *****REMOVED*****

Character ID: 0

An error occured: API server couldn't retrieve your account or the API wasn't correct, check for spaces after your entered API. (Error: Invalid username and/or password passed to UserData.LoginWebUser().) [126]


Using the same API data to call the API server directly gets me all the data I could ask for. But when coming from EVEOTS my account shows authentication failed (obviously).

Ideas?


ok firstly is your config set up correctly for TS3 server admin ?
example >> class Config {
// Administrators character
public $admin = "Mediek Ordos";
// Teamspeak 3 Server Query Information (REQUIRED)
public $tshost = "put ts3 host ip here";
public $tsname = "serveradmin";
public $tspass = "put serveradmin pass here";
public $tsport = "10011"; //ServerQuery Port
public $tscport = "9987"; //TeamSpeak client port


Yep, got all that correctly, re-double checked it.

Originally by: Mediek Ordos

lets try this first, then in the config have you got the whitelist set up correctly ?


By correctly you mean the IP provided from the TS3 server, yep got it. are these addresses comma separated (for future reference).

Originally by: Mediek Ordos

then when registering on the web interface use just use your char name no corp/ally tikker.
on temaspeak use your corp tikker and char name for me it is like this | A-C-E | Mediek Ordos.

hope this helps


Ok, we've one step closer. Now on the debug print out it does show the correct characterID rather than 0...

Though, still no luck :S. Still getting Error 126.
Error on the api log:
/account/Characters.xml.aspx
Authentication Failure Code 521


MJ Maverick
IronPig
Sev3rance
Posted - 2011.04.22 19:09:00 - [83]
 

Kari, make sure you are registering correctly. Take a look at the readme on how to register.

Your name in Teamspeak should be exactly: "-XMP- Kari Trace"
Your Character Name on the registration page should be exactly: "Kari Trace"

API Error: 512 = Invalid charID passed to CharData.GetCharacter().

This is likely due to not entering your name into the "Character Name" box correctly.


Hope this helps bud.

Mediek Ordos
Caldari
Association of Commonwealth Enterprises
Imperial 0rder
Posted - 2011.04.22 21:08:00 - [84]
 

Originally by: MJ Maverick
Kari, make sure you are registering correctly. Take a look at the readme on how to register.

Your name in Teamspeak should be exactly: "-XMP- Kari Trace"
Your Character Name on the registration page should be exactly: "Kari Trace"

API Error: 512 = Invalid charID passed to CharData.GetCharacter().

This is likely due to not entering your name into the "Character Name" box correctly.


Hope this helps bud.


Hm thought that was what I said but in the long routed way, :-)

Kari Trace
Caldari
Nox Imperium
Posted - 2011.04.23 01:00:00 - [85]
 

Originally by: Mediek Ordos
Originally by: MJ Maverick
Kari, make sure you are registering correctly. Take a look at the readme on how to register.

Your name in Teamspeak should be exactly: "-XMP- Kari Trace"
Your Character Name on the registration page should be exactly: "Kari Trace"

API Error: 512 = Invalid charID passed to CharData.GetCharacter().

This is likely due to not entering your name into the "Character Name" box correctly.


Hope this helps bud.


Hm thought that was what I said but in the long routed way, :-)


Checked an double checked:
TS: Identity: -XMP- Kari Trace
Registration page: Kari Trace

Debug: User ID: *****REMOVED*****
Debug: API Key: *****REMOVED*****

Character ID: *****REMOVED*****

An error occured: API server couldn't retrieve your account or the API wasn't correct, check for spaces after your entered API. (Error: Invalid username and/or password passed to UserData.LoginWebUser().) [126]

Sorry to be a pain on this. I know it `should` work without much issue...

Mediek Ordos: you have EVEmail.
KT

MJ Maverick
IronPig
Sev3rance
Posted - 2011.04.23 03:12:00 - [86]
 

Edited by: MJ Maverick on 23/04/2011 03:14:21

Does this link work after you fill in your details?

http://api.eveonline.com/account/Characters.xml.aspx?&userID=YOUR_USERID&apiKey=YOUR_APIKEY

If it loads, view source and you should have something like:


<?xml version='1.0' encoding='UTF-8'?>
<eveapi version="2">
<currentTime>2011-04-23 03:12:21</currentTime>
<result>
<rowset name="characters" key="characterID" columns="name,characterID,corporationName,corporationID">
<row name="Character 1" characterID="NUMBERS" corporationName="STUFF" corporationID="NUMBERS" />
<row name="Character 2" characterID="NUMBERS" corporationName="STUFF" corporationID="NUMBERS" />
<row name="Character 3" characterID="NUMBERS" corporationName="STUFF" corporationID="NUMBERS" />
</rowset>
</result>
<cachedUntil>2011-04-23 04:08:00</cachedUntil>
</eveapi>

Mediek Ordos
Caldari
Association of Commonwealth Enterprises
Imperial 0rder
Posted - 2011.04.23 07:57:00 - [87]
 

Originally by: Kari Trace
Originally by: Mediek Ordos
Originally by: MJ Maverick
Kari, make sure you are registering correctly. Take a look at the readme on how to register.

Your name in Teamspeak should be exactly: "-XMP- Kari Trace"
Your Character Name on the registration page should be exactly: "Kari Trace"

API Error: 512 = Invalid charID passed to CharData.GetCharacter().

This is likely due to not entering your name into the "Character Name" box correctly.


Hope this helps bud.


Hm thought that was what I said but in the long routed way, :-)


Checked an double checked:
TS: Identity: -XMP- Kari Trace
Registration page: Kari Trace

Debug: User ID: *****REMOVED*****
Debug: API Key: *****REMOVED*****

Character ID: *****REMOVED*****

An error occured: API server couldn't retrieve your account or the API wasn't correct, check for spaces after your entered API. (Error: Invalid username and/or password passed to UserData.LoginWebUser().) [126]

Sorry to be a pain on this. I know it `should` work without much issue...

Mediek Ordos: you have EVEmail.
KT

Read and replied to Eve Mail, Convo me in game when you are online so i can set up access for you on our TS and we can run a few experiments on the registration from there if you are up for it, looking so far it just seems you are having a API issue, but we will try to iron out the issue for you on comms, look forward to speaking to you.

Kari Trace
Caldari
Nox Imperium
Posted - 2011.04.23 12:41:00 - [88]
 

@MJ Maverick: Yep, worked like a charm the way it should. Character name, IDs, corps, corpID all returned nicely...

@Mediek Ordos: Will do, thank you for the help.

MJ Maverick
IronPig
Sev3rance
Posted - 2011.04.23 21:32:00 - [89]
 

That's certainly some anomaly you have their KAri. I've done a bit of research and it seems to be something some users get and its definitely the API server not EVEOTS.

Have you tried creating a new Limited API Key? Perhaps that might snap the server out of it.

Mediek Ordos
Caldari
Association of Commonwealth Enterprises
Imperial 0rder
Posted - 2011.04.23 22:31:00 - [90]
 

Originally by: MJ Maverick
That's certainly some anomaly you have their KAri. I've done a bit of research and it seems to be something some users get and its definitely the API server not EVEOTS.

Have you tried creating a new Limited API Key? Perhaps that might snap the server out of it.

Hi MJ, I have been helping set this up today and have nearly got there, what i have done is set this up on my server with the correct blue group set to a created group on the TS3 server, on A-C-E's current set up Kari Trace is now able to register with the correct corp tikker and the blue group in config set to one I have created.
Soooo, I have now set it up on our server pointing to Kari's TS3 server >> api working fine but Kari now has to set the query ip_whirelist correctly in TS3 server config, allow that IP to have remote access to his MySql server and open up the ports on his router for the server query admin, once he has done this I am sure it will work ok.
Once we have it working I will the transfer it to Kari's server and see if it works ok on his server, will update progress as we go along, the issue is not script side it is server side :-)


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