These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

TEA (v1.3.1) - Member Management Mod for SMF 2, TeamSpeak 3 and Jabber

Author
Inara Talamasca
Meridian Inc
#101 - 2013-12-15 21:57:35 UTC
Changing the admin rule I missed, so that is set. thank you.

The "Get Characters" button is still not functional, though. I changed back the api URL, tested adding a key to admin and that worked fine, so it isn't the url. Nor the curl, as it is a up to date linux server.

I never received error messages from curl, nor do I receive any feedback at all pressing the "Get character" button , but it is hitting the server, popping up a log entry with every press (*******=removed data):

[15/Dec/2013:12:37:18 -0900] "GET /TEA/TEA_xmlhttp.php?userid=*************api=********* HTTP/1.1" 404 - "http://*******/index.php?action=register" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"

This same key is the one that pulls characters up fine on the existing admin account, once you save it and refresh page. But, the obvious functionality of having people in the alliance register using keys won't work like this. We very much want to require the api key for login, and, while registering with no key works, the field is still there, and people won't know to leave it blank and add it after.. plus it defeats the api key first feature.
Inara Talamasca
Meridian Inc
#102 - 2013-12-15 22:31:04 UTC
I fixed the "Get characters" it relates back to the half-install of the mod. I copied the TEA/ folder from the mod instal in Packages/ to the base of the SMF folder.

Just to be clear, where should all the other files go, as I don't see a map for them.. so I can double check what needs to be where.. ie in the root , Sources, etc.
Magenta Flori
Royal Amarr Institute
Amarr Empire
#103 - 2013-12-16 04:03:43 UTC
Any way to make it not accept people with an incorrect access mask? I have seen it take an API, only show one char, say incorrect mask in SMF/Tea but still gives them access.
Shin Chogan
Federal Navy Academy
Gallente Federation
#104 - 2013-12-16 11:11:01 UTC
Magenta Flori wrote:
Any way to make it not accept people with an incorrect access mask? I have seen it take an API, only show one char, say incorrect mask in SMF/Tea but still gives them access.


I added access mask checking in the last (or possibly the one before that) release.
find function checkmask($xml) in TEA.php and modify to suit your needs ... if you don't care if they've put in a key that will break some of the rule checking then the quick way is to change the line :

return False;

to

return True;


if you don't want them to have to put in an account key then find the if statement in TEA.php :

if ($accnt->result[0]->key[0]['type']!="Account")

and comment out the whole block. There are 3 of them
Magenta Flori
Royal Amarr Institute
Amarr Empire
#105 - 2013-12-16 13:54:34 UTC
Sweet, I can see how easy it would be also to require a full api if I wanted to so it could be checked more thoroughly if needed.

thanks
Ya Huei
Imperial Collective
#106 - 2013-12-16 19:29:37 UTC
Hi there,

First off, awesome package I've managed to hook up SMF auth and openfire without too much trouble yesterday. I have one question though:

In my rules for forum groups I have added one main rule defining that if you are in corp u go to a certain group.

However this doesnt seem to work

Rules on additional groups DO work however.

This is the only rule i have set up in main groups :


ID 3 RULE IS => Corp: 883901493 (Imperial Collective) groupname AND (enable flag checked)

In my case, additional rules throw me in the director group no problem, but main stays 'not monitored'

Hope someone can assist.


Shin Chogan
Federal Navy Academy
Gallente Federation
#107 - 2013-12-16 21:44:53 UTC
Ya Huei wrote:
Hi there,

First off, awesome package I've managed to hook up SMF auth and openfire without too much trouble yesterday. I have one question though:

In my rules for forum groups I have added one main rule defining that if you are in corp u go to a certain group.

However this doesnt seem to work

Rules on additional groups DO work however.

This is the only rule i have set up in main groups :


ID 3 RULE IS => Corp: 883901493 (Imperial Collective) groupname AND (enable flag checked)

In my case, additional rules throw me in the director group no problem, but main stays 'not monitored'

Hope someone can assist.




Check that the primary group is checked for both the group that you want to put them in (groupname) AND the group that they are already in, probably no membergroup but it could be something else.
The Mec
Federal Navy Academy
Gallente Federation
#108 - 2013-12-16 22:03:49 UTC
any chance this could be ported to xenforo forums?
Sirius Loc
The Scope
Gallente Federation
#109 - 2013-12-19 19:47:06 UTC  |  Edited by: Sirius Loc
Hi,

i have installed today the TEA v1.3.1 r4 now when i try to register an new user with the api i have some problems....

when i fill in the api and i use "Get Characters" nothing happen?!

any idea?!

Die AVA sucht Corporations meldet euch bei 

High Diplomat Sirius Loc Avaricious Cartel [AVA]

Shin Chogan
Federal Navy Academy
Gallente Federation
#110 - 2013-12-19 21:22:48 UTC
Sirius Loc wrote:
Hi,

i have installed today the TEA v1.3.1 r4 now when i try to register an new user with the api i have some problems....

when i fill in the api and i use "Get Characters" nothing happen?!

any idea?!


Sorry I'm going to need little more. What OS are you running on ? Any kind of errors being displayed ? Have you entered a master api key ?
Sirius Loc
The Scope
Gallente Federation
#111 - 2013-12-19 22:05:22 UTC
Shin Chogan wrote:
Sirius Loc wrote:
Hi,

i have installed today the TEA v1.3.1 r4 now when i try to register an new user with the api i have some problems....

when i fill in the api and i use "Get Characters" nothing happen?!

any idea?!


Sorry I'm going to need little more. What OS are you running on ? Any kind of errors being displayed ? Have you entered a master api key ?



Hi,

i work on smf 2.0.6 and i have no errors nothing.... and yes i have as well tryed a master api key but nothing happens when i get on "get characters" when i try to register without get character i get the message "A Valid API is Required to Register on this Forum" but i have tried a master api key as well ?!!?!

Die AVA sucht Corporations meldet euch bei 

High Diplomat Sirius Loc Avaricious Cartel [AVA]

Shin Chogan
Federal Navy Academy
Gallente Federation
#112 - 2013-12-20 20:43:28 UTC
Sirius Loc wrote:
Shin Chogan wrote:
Sirius Loc wrote:
Hi,

i have installed today the TEA v1.3.1 r4 now when i try to register an new user with the api i have some problems....

when i fill in the api and i use "Get Characters" nothing happen?!

any idea?!


Sorry I'm going to need little more. What OS are you running on ? Any kind of errors being displayed ? Have you entered a master api key ?



Hi,

i work on smf 2.0.6 and i have no errors nothing.... and yes i have as well tryed a master api key but nothing happens when i get on "get characters" when i try to register without get character i get the message "A Valid API is Required to Register on this Forum" but i have tried a master api key as well ?!!?!




So you do get an error message :) - A Valid API is Required to Register on this Forum.

This means that your system is not fetching a character list from your api ... either it isn't allowed to coz your api key is wrong/expired or your system is not able to fetch anything ... you didn't say what OS you are using ... if it is Windows then you will need to turn off SSL Peer checking ... there is a post somewhere in this thread that says how.
Sirius Loc
The Scope
Gallente Federation
#113 - 2013-12-22 11:57:21 UTC  |  Edited by: Sirius Loc
Shin Chogan wrote:
Sirius Loc wrote:
Shin Chogan wrote:
Sirius Loc wrote:
Hi,

i have installed today the TEA v1.3.1 r4 now when i try to register an new user with the api i have some problems....

when i fill in the api and i use "Get Characters" nothing happen?!

any idea?!


Sorry I'm going to need little more. What OS are you running on ? Any kind of errors being displayed ? Have you entered a master api key ?



Hi,

i work on smf 2.0.6 and i have no errors nothing.... and yes i have as well tryed a master api key but nothing happens when i get on "get characters" when i try to register without get character i get the message "A Valid API is Required to Register on this Forum" but i have tried a master api key as well ?!!?!




So you do get an error message :) - A Valid API is Required to Register on this Forum.

This means that your system is not fetching a character list from your api ... either it isn't allowed to coz your api key is wrong/expired or your system is not able to fetch anything ... you didn't say what OS you are using ... if it is Windows then you will need to turn off SSL Peer checking ... there is a post somewhere in this thread that says how.


Windows and apachi....

and i geht this message now

API System Screwed - Can't Fetch Standings : bool(false) There is a problem fetching Standings : int(9999)

Die AVA sucht Corporations meldet euch bei 

High Diplomat Sirius Loc Avaricious Cartel [AVA]

Shin Chogan
Federal Navy Academy
Gallente Federation
#114 - 2013-12-22 16:23:18 UTC
Sirius Loc wrote:
Shin Chogan wrote:
Sirius Loc wrote:
Shin Chogan wrote:
Sirius Loc wrote:
Hi,

i have installed today the TEA v1.3.1 r4 now when i try to register an new user with the api i have some problems....

when i fill in the api and i use "Get Characters" nothing happen?!

any idea?!


Sorry I'm going to need little more. What OS are you running on ? Any kind of errors being displayed ? Have you entered a master api key ?



Hi,

i work on smf 2.0.6 and i have no errors nothing.... and yes i have as well tryed a master api key but nothing happens when i get on "get characters" when i try to register without get character i get the message "A Valid API is Required to Register on this Forum" but i have tried a master api key as well ?!!?!




So you do get an error message :) - A Valid API is Required to Register on this Forum.

This means that your system is not fetching a character list from your api ... either it isn't allowed to coz your api key is wrong/expired or your system is not able to fetch anything ... you didn't say what OS you are using ... if it is Windows then you will need to turn off SSL Peer checking ... there is a post somewhere in this thread that says how.


Windows and apachi....

and i geht this message now

API System Screwed - Can't Fetch Standings : bool(false) There is a problem fetching Standings : int(9999)


When do you see this ?

have you made the changes not do ssl peer checking ? this is essential on windows
Do you have a master api key added ?
Shin Chogan
Federal Navy Academy
Gallente Federation
#115 - 2013-12-23 11:01:38 UTC  |  Edited by: Shin Chogan
And a slightly early Xmas Present for you all r5 released.


  • Now should work properly again with CCP's error codes.
  • SSL Peer Checking disabled
  • Debug option added to TEA_Cron.php (just do php TEA_Cron.php debug on the command line - don't do this via cronShocked) to show which users it has operated on and which groups (just the group id) they have been added to via the TEA rules.
Sarion Achasse
League of Internet Spaceship Pilots
#116 - 2013-12-29 18:24:43 UTC  |  Edited by: Sarion Achasse
Would it be possible to allow users in a specific SMF usergroup to register TS and Jabber accounts?

Ideally I would like to give a specific group access to TS and Jabber, without the need for an API key. People that stopped playing Eve or friends from other games for example, that still would like to hang out on the same TS and Jabber servers.
Shin Chogan
Federal Navy Academy
Gallente Federation
#117 - 2013-12-31 19:34:48 UTC
Sarion Achasse wrote:
Would it be possible to allow users in a specific SMF usergroup to register TS and Jabber accounts?

Ideally I would like to give a specific group access to TS and Jabber, without the need for an API key. People that stopped playing Eve or friends from other games for example, that still would like to hang out on the same TS and Jabber servers.


In short not as it stands ... though at least for jabber you can just create accounts and add them to groups directly on the server Smile
Magenta Flori
Royal Amarr Institute
Amarr Empire
#118 - 2014-01-03 01:50:47 UTC  |  Edited by: Magenta Flori
Can you help me understand what process is supposed to kick people from TS with invalid names? I have it set but it just is not doing anything.

NVM its a cron job.
Magenta Flori
Royal Amarr Institute
Amarr Empire
#119 - 2014-01-04 16:13:09 UTC  |  Edited by: Magenta Flori
They have an incorrect mask but it still matches them to a group because they have "enough" access via the API even though it is not the "correct" mask. Is there a way to force it to be the exact access mask or have their account removed with the dbcleanup? It is supposed to do this now?

Is there an easy way to just remove everyone with invalid apis?
Shin Chogan
Federal Navy Academy
Gallente Federation
#120 - 2014-01-04 20:21:42 UTC
Magenta Flori wrote:
They have an incorrect mask but it still matches them to a group because they have "enough" access via the API even though it is not the "correct" mask. Is there a way to force it to be the exact access mask or have their account removed with the dbcleanup? It is supposed to do this now?

Is there an easy way to just remove everyone with invalid apis?


dbcleanup just removes orphaned characters and api keys.

In TEA.php find the block that starts :

if (!$this->checkmask($accnt))

and after $error = TRUE; add :

Continue;

this should then skip doing the rule checks against api keys that don't match the mask.