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.2.1) - Member Management Mod for SMF 2, TeamSpeak 3 and Jabber

First post
Author
Dru Prime
Sebiestor Tribe
Minmatar Republic
#381 - 2013-02-18 16:02:39 UTC  |  Edited by: Dru Prime
epsilonion wrote:
Dru Prime wrote:
ancient thread I know but I've tried setting up temars api tonight and whenever I try to add my API it comes back with an "error()" i've tried switching TEA_xmlhttp to 644 permission but no luck.



It does this on fresh install if you look back over previous the pages it refers to the eve change to SSL for API fix that and it will run fine.

Using https://api.eveonline.com instead of what your doing is http://api.eveonline.com.


yup I edited TEA.php and TEAC.php to https://api.eveonline.com and still no luck.

also i'm using version 1.2.1 if that helps.
Dru Prime
Sebiestor Tribe
Minmatar Republic
#382 - 2013-02-18 16:27:38 UTC
Dru Prime wrote:
epsilonion wrote:
Dru Prime wrote:
ancient thread I know but I've tried setting up temars api tonight and whenever I try to add my API it comes back with an "error()" i've tried switching TEA_xmlhttp to 644 permission but no luck.



It does this on fresh install if you look back over previous the pages it refers to the eve change to SSL for API fix that and it will run fine.

Using https://api.eveonline.com instead of what your doing is http://api.eveonline.com.


yup I edited TEA.php and TEAC.php to https://api.eveonline.com and still no luck.

also i'm using version 1.2.1 if that helps.


alright did a total fresh install and edited the two php files before installing. now I'm getting an error 203 authentication failure so I'm assuming it's something with the eve api servers now.
Shin Chogan
Federal Navy Academy
Gallente Federation
#383 - 2013-02-18 17:02:13 UTC
1.2.1 is very old ... it uses legacy keys only. I'm guessing you are using CAK keys which it won't understand.
Dru Prime
Sebiestor Tribe
Minmatar Republic
#384 - 2013-02-18 17:43:02 UTC
Shin Chogan wrote:
1.2.1 is very old ... it uses legacy keys only. I'm guessing you are using CAK keys which it won't understand.


yeah I realized this and upgraded. I got 1.3.0 r169 but i'm not seeing a "get character" button when trying to add my api.
Shin Chogan
Federal Navy Academy
Gallente Federation
#385 - 2013-02-18 19:12:48 UTC
Dru Prime wrote:
Shin Chogan wrote:
1.2.1 is very old ... it uses legacy keys only. I'm guessing you are using CAK keys which it won't understand.


yeah I realized this and upgraded. I got 1.3.0 r169 but i'm not seeing a "get character" button when trying to add my api.


Unless you are registering the api entry page doesn't have a get character button ... you just enter the api and then save your profile.
Troy Aihaken
Quekz
#386 - 2013-02-18 19:23:14 UTC
TEA_xmlhttp.php make sure this is chmod to 644.

NodeJS Developer | Frontend Development | Programming Enthusiast

Shin Chogan
Federal Navy Academy
Gallente Federation
#387 - 2013-02-18 20:05:51 UTC
Troy Aihaken wrote:
TEA_xmlhttp.php make sure this is chmod to 644.



Oh yeah as a side note I worked out why you have to do that manually when the change log states Temar fixed it ... he moved the file to the TEA sub directory and the post install script that runs does the chmod on the old location :)

build 173 is now in my repo ... This fixes the TEA_xmlhttp.php permissions and the Member Registration bug I introduced in build 172
Nutbolt
University of Caille
Gallente Federation
#388 - 2013-02-20 12:08:04 UTC
This is a TEA question because it manages the user database (and I didn't know where else to ask :D):

So I have my openfire server, I have my forums, I have the link working, it creates openfire users via the forums etc... (yet to test cron job and a couple of other things, but lets assume they work). My question is, how do I remove someone's access to jabber (openfire) when they leave the corp?

Also, is it possible to restrict a room so only a certain group can join it? I have had a search and stuff, but all I can find is restricting by user, and manually updating the user list.

Thanks!
Shin Chogan
Federal Navy Academy
Gallente Federation
#389 - 2013-02-20 16:19:26 UTC
Nutbolt wrote:
This is a TEA question because it manages the user database (and I didn't know where else to ask :D):

So I have my openfire server, I have my forums, I have the link working, it creates openfire users via the forums etc... (yet to test cron job and a couple of other things, but lets assume they work). My question is, how do I remove someone's access to jabber (openfire) when they leave the corp?


Assuming you are using one of my versions with the TEA_Jabber_Cron_Access.php when they no longer have a group that matches one of the rules on the :
/index.php?action=admin;area=tea;sa=jabber
page then when the cron job runs the user will be removed from openfire.

Quote:


Also, is it possible to restrict a room so only a certain group can join it? I have had a search and stuff, but all I can find is restricting by user, and manually updating the user list.

Thanks!


Due to stupid limitations in the way openfire manages permissions it is not possible to grant a group access to a conference room it can only be done a user at a time. Doing something about this has been on my todo list for some time.

Oh and some info I discovered the hard way today ... don't upgrade to 3.8.0 of openfire. Conference rooms are broke ... they are still in the db but are not displayed after a restart :( I had to roll back to 3.7.1.
Nutbolt
University of Caille
Gallente Federation
#390 - 2013-02-20 17:12:56 UTC
I have a clean install of 3.8.0 and the only issue I had with rooms/conferences was when I broke mySQL when installing TS3 (using a mysql db).

and thanks for the info, that makes a lot of sense. Cheers! (and openfire sucks if you cant limit a room to certain groups, but not a massive issue atm).
Nutbolt
University of Caille
Gallente Federation
#391 - 2013-02-21 17:23:12 UTC
Ok I have been doing some edge case testing on the rules and stuff and came across an issue.

I have a user, who was registered, had a working API key, all lovely. Then he decides to delete the API key on the EVE API Support page (not the forums), or change the verification code, so that it is not valid on the forums any longer. He is removed from the groups etc.... (so losses forum and jabber access), however I have a Main Group Rule which states he should then be put into a SMF Primary group (this is for a wiki bridge im testing).

I have 3 main group rules:

1.) Are they in corp, if so put in corp member group
2.) Are they out of the corp, if so put in Out of corp group
3.) Is their API key invalid, if so put in Out of corp group.

I then have some additional group rules as well.

My issue is that the person with the invalid key is not being put into the Out of corp group as their main/primary group. I have a user who is out of the corp, and they have been put into this group in line with the rules, but the person with the invalid key has not.

When I run the full check, it says No API. Is this simply a bug where an invalid API key isnt being seen by the rules as an invalid key, and is being seen as No API key, so none of the rules apply?

Thanks!
Nutbolt
University of Caille
Gallente Federation
#392 - 2013-02-22 11:47:56 UTC
The API server is down while they attempt to fix it (they took it down this morning), however this has resulted in everyone losing access to the forums and Jabber. Is it easy/possible to add something so that if the server is down it doesn't run any of the rule checks until the server is back up?
Shin Chogan
Federal Navy Academy
Gallente Federation
#393 - 2013-02-22 17:44:33 UTC
Nutbolt wrote:
The API server is down while they attempt to fix it (they took it down this morning), however this has resulted in everyone losing access to the forums and Jabber. Is it easy/possible to add something so that if the server is down it doesn't run any of the rule checks until the server is back up?



I've already tried ... it is supposed to skip but I guess I've missed something.
Nutbolt
University of Caille
Gallente Federation
#394 - 2013-02-22 19:26:03 UTC  |  Edited by: Nutbolt
Yup, once the API server came back everyone got access to Jabber and the forums again, and our wiki (access based on SMF groups).


Edit: I am an idiot and found in the TEA API Mod settings window an option for the group to stick uknown api errors. Seems to have done the trick lovely.
Nutbolt
University of Caille
Gallente Federation
#395 - 2013-02-24 08:03:43 UTC
Our forums have finally gone live, with this mod managing our users for the forums, Jabber and our Wiki. I have made a couple of how to videos on how to register on the forums, and how to get Jabber going using Pidgin. Obviously these videos have Avalon Project written all over them, but you are welcome to link to them if you want.

Register on the forums: http://www.avalonproject.co.uk/?page_id=474

Register/Setup Jabber: http://www.avalonproject.co.uk/?page_id=485
ShadowandLight
Trigger Happy Capsuleers
#396 - 2013-02-24 19:07:51 UTC
I am running into this error when trying to run the "reset names" command


==

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Brien' WHERE ID_MEMBER = 30' at line 1
File: /public_html/smf/Sources/TEA.php
Line: 2645

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.4, while your database is at version 2.0.3. The above error might possibly go away if you execute the latest version of upgrade.php.

==

SMF searches mostly say such errors are bugs, not verison errors.

Also i ran a repair on the SMF database that showed everything was ok.
Shin Chogan
Federal Navy Academy
Gallente Federation
#397 - 2013-02-26 00:15:55 UTC  |  Edited by: Shin Chogan
ShadowandLight wrote:
I am running into this error when trying to run the "reset names" command


==

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Brien' WHERE ID_MEMBER = 30' at line 1
File: /public_html/smf/Sources/TEA.php
Line: 2645

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.4, while your database is at version 2.0.3. The above error might possibly go away if you execute the latest version of upgrade.php.

==

SMF searches mostly say such errors are bugs, not verison errors.

Also i ran a repair on the SMF database that showed everything was ok.


I've never tried this before ... ran it on my test board and it appeared to work - certainly didn't get that error. One thing I note from the line number you quote is that it would indicate you are not running the same version of TEA as I am, so what are you running ?
Jognu
French Kiss Singularity
#398 - 2013-03-23 18:50:58 UTC
Shin Chogan wrote:
Jognu wrote:
I switched from postgresql to MySQL, it works great !

I have a request : could you add the ability to register an account without the need of fill the API ?
I didn't tick the "Is a Valid Api required to Register?", but when I try to register I have the error : "The API needs to show All characters on the account" (the ID and the verification code are blank and I didn't click the "Get Characters" button).

Thanks !


I'll look at that soonish ... I added the check for an account type key to try prevent people having toons in red corps on the same account ... no need to make it easy for them :) I didn't even think that people would want to allow registration without an api.

Hi Shin,

Any changes for this ?
If it's easy to change you can just give the line to modify and I do the trick ;)

EveAI developper: https://forums.eveonline.com/default.aspx?g=posts&t=21803

Erwin Krym'L
Bitslix
Lolsec Fockel
#399 - 2013-03-26 10:30:49 UTC
I just installed the latest rev (174), but feel utterly dumb atm.
When setting up the TEA Mod, i enter the api key, which has full access on the char, but all I get as response is
"A Full API Key is Required for Standings"...

Any ideas on that one?!??

(key has full access, is valid, no expiry, server to get data from is setup with https protocoll)

btw. I get that message even when I enter a totally messed up serveraddress to fetch the api data from?!??
Troy Aihaken
Quekz
#400 - 2013-03-26 10:37:02 UTC
Just some quick questions:
1. Is that API only for the forums and not being pulled for anything else.
2. What SMF version are you using?
3. Have your tried reinstalling the mod or using a fresh install of SMF then installing it again?

Just some questions that could help :)

NodeJS Developer | Frontend Development | Programming Enthusiast