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
Shin Chogan
Federal Navy Academy
Gallente Federation
#581 - 2013-08-31 06:24:10 UTC
Zenith Gravit wrote:
Am I correct in thinking that a rule per corp isn't possible?



Yes you can do a rule per corp ... either as a main group or as a secondary group but you would need a smf group for each of your corps to go into. Its not that it's not possible it is just it takes a bit of work on the groups front. Smile

A basic example you have :

SMF group called :
Care Factor member
LionGate Enterprises member
LionGate Enterprises Director

you then have TEA rules :

Primary :
If Care Factor then put in Care Factor member

Secondary:
If LionGate Enterprises then put in LionGate Enterprises Member
if LionGate Enterprises and Director then put in LionGate Enterprises Director.

Remember the corp AND director else you could put every director in eve in the group :)
Zenith Gravit
LionGate Enterprises
#582 - 2013-08-31 11:53:04 UTC
Wow, I don't know how i missed that before. Thank you.
Cayden Til
Center for Advanced Studies
Gallente Federation
#583 - 2013-09-05 15:53:50 UTC
Im getting this error since version 179 while deleting or updating a key in a member profile manually:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7864320 bytes) in /var/www/web177/html/TEA/eve_corplist.php on line 8196

any ideas?
Shin Chogan
Federal Navy Academy
Gallente Federation
#584 - 2013-09-05 17:20:09 UTC
Cayden Til wrote:
Im getting this error since version 179 while deleting or updating a key in a member profile manually:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7864320 bytes) in /var/www/web177/html/TEA/eve_corplist.php on line 8196

any ideas?


You only have 32MB of Memory allocated in your php config ... Personally I use 128MB
Cayden Til
Center for Advanced Studies
Gallente Federation
#585 - 2013-09-05 17:30:09 UTC  |  Edited by: Cayden Til
Shin Chogan wrote:
Cayden Til wrote:
Im getting this error since version 179 while deleting or updating a key in a member profile manually:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7864320 bytes) in /var/www/web177/html/TEA/eve_corplist.php on line 8196

any ideas?


You only have 32MB of Memory allocated in your php config ... Personally I use 128MB


Ok i fixed this.
Now the script always says the following:

[ERROR] Character already listed with a different api key - xxxx

But theres only one account witht that key....seems like the script screws some things?
Shin Chogan
Federal Navy Academy
Gallente Federation
#586 - 2013-09-05 18:47:37 UTC
Cayden Til wrote:
Shin Chogan wrote:
Cayden Til wrote:
Im getting this error since version 179 while deleting or updating a key in a member profile manually:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7864320 bytes) in /var/www/web177/html/TEA/eve_corplist.php on line 8196

any ideas?


You only have 32MB of Memory allocated in your php config ... Personally I use 128MB


Ok i fixed this.
Now the script always says the following:

[ERROR] Character already listed with a different api key - xxxx

But theres only one account witht that key....seems like the script screws some things?



well you might want to look in the tables ... find the character name xxxx and get the api key it is attached to ... then follow that through to a forum member id and see if that forum account still exists or if that member does have that api attached to it ... then look into why ?

if you've been using the Temars plugin for some time it is possible that you've got api keys in your db that don't belong to a forum account and you've got characters that are listed against api's that are not in the db any more.

The tables you want to look in are xxx_tea_characters, xxx_tea_api, and xxx_members. There is a script in the TEA directory db_clean_up.php which may be of use and tries to remove orphaned characters and api keys.
Cayden Til
Center for Advanced Studies
Gallente Federation
#587 - 2013-09-05 19:04:08 UTC
Well i flushed all tables and now it works :)
Manic Velocity
Federal Navy Academy
Gallente Federation
#588 - 2013-09-11 04:37:50 UTC
How would I go about hiding the API fields from the registration page, if at all possible?

I want users to be able to register on the site without requiring an API key, but they can provide an API key later in their profile to gain access to our EVE forums. But I don't want to present non-EVE users with those API fields during registration and risk confusing them.

Also, any further update on implementing the cron tasks into the SMF "Scheduled Tasks" functionality? In the off-chance that our site admin does not have access to set up cron tasks on the server.

Thanks for all your help!

"The most punchable face in New Eden."

Be excellent to each other.

Twitter | Twitch | YouTube

Nutbolt
University of Caille
Gallente Federation
#589 - 2013-09-11 06:03:35 UTC
Manic Velocity wrote:
How would I go about hiding the API fields from the registration page, if at all possible?

I want users to be able to register on the site without requiring an API key, but they can provide an API key later in their profile to gain access to our EVE forums. But I don't want to present non-EVE users with those API fields during registration and risk confusing them.

Also, any further update on implementing the cron tasks into the SMF "Scheduled Tasks" functionality? In the off-chance that our site admin does not have access to set up cron tasks on the server.

Thanks for all your help!


In the settings for TEA theres an option: "Is a Valid Api required to Register?" I guess untick that, however I don't know if it will remove the API fields.
Shin Chogan
Federal Navy Academy
Gallente Federation
#590 - 2013-09-11 08:45:10 UTC
The valid api key required to register does not hide the fields ... there is no option for that at the moment.

As far as scheduled tasks ... I'm afraid not ... I've been busy fixing the code for the changes CCP keep making ;)
Manic Velocity
Federal Navy Academy
Gallente Federation
#591 - 2013-09-11 13:05:55 UTC
Shin Chogan wrote:
The valid api key required to register does not hide the fields ... there is no option for that at the moment.

As far as scheduled tasks ... I'm afraid not ... I've been busy fixing the code for the changes CCP keep making ;)


No worries. So then is it not possible to hide the fields from the registration page?

We stupidly tried to comment out the TEA registration fields line in Registration.template.php:

Quote:
$tea -> RegistrationFields();


That successfully hid the fields, but in trying to register a dummy account we got the following error:

Quote:
charid must be a number if required


The registration process was successful in that the dummy account received an activation email and was able to log in, but that error is obviously something we don't want to happen.

Any insight you can provide would be a great help!

"The most punchable face in New Eden."

Be excellent to each other.

Twitter | Twitch | YouTube

Manic Velocity
Federal Navy Academy
Gallente Federation
#592 - 2013-09-12 14:54:41 UTC
Disregard previous post. We got it working! :)

"The most punchable face in New Eden."

Be excellent to each other.

Twitter | Twitch | YouTube

Zenith Gravit
LionGate Enterprises
#593 - 2013-09-18 20:45:27 UTC
So I'm currently running into a problem with a specific person's group assignment not properly updating on the forum. I've tried adjusting the Rules and everyone else seems to be working, but TEA won't recognize that this person is a corp director. If I remove the director rule all directors get set to corp members, if I remove the corp rule all corp members get set to alliance members. It just seems to be this one person that it won't adjust properly. He is definitely a director so I'm not sure where the breakdown is happening.
Shin Chogan
Federal Navy Academy
Gallente Federation
#594 - 2013-09-19 08:19:53 UTC
Zenith Gravit wrote:
So I'm currently running into a problem with a specific person's group assignment not properly updating on the forum. I've tried adjusting the Rules and everyone else seems to be working, but TEA won't recognize that this person is a corp director. If I remove the director rule all directors get set to corp members, if I remove the corp rule all corp members get set to alliance members. It just seems to be this one person that it won't adjust properly. He is definitely a director so I'm not sure where the breakdown is happening.



If it is just one person then the rule can't be the problem. I'd take a look at the guys key - at a guess I'd say it doesn't have CharacterSheet enabled.

Check out the new version : https://forums.eveonline.com/default.aspx?g=posts&t=277780 It will ensure the mask is right when people add new keys and tell them if it is wrong for existing keys :)
Zenith Gravit
LionGate Enterprises
#595 - 2013-09-20 01:06:14 UTC
Thanks Shin, that did the trick. He had buggered up his API key settings.
Vistrix Starshadow
New Eden Webservices
#596 - 2013-09-21 02:46:07 UTC
Shin Chogan wrote:
Verinoch wrote:
ok put in the corp api under configuration.teamars api.settings still get the same errors




do you have the php curl extensions installed ?


Always. Every single install I do of this, curl is the culprit.
Once installed, works like a charm.
Ynot Eyob
Nisroc Angels
The Obsidian Front - Reborn
#597 - 2013-09-25 11:17:33 UTC  |  Edited by: Ynot Eyob
Iv found a huge issue with curl, Windows server and php.ini

Script execution timeout is default 60 sec in php.ini on Windows servers. Problem is, if you have more than 100 members which curl make a check up on, it doesnt manage to finish in those 60 sec.

Iv fix this problem by ajust the php.ini and set the execute timeout to 240 sec. This can handle over 500 api calls and avatar downloads. Just a heads up.

As im no php programmer i wouldnt know this, but i belive its posible in the TEPAC to set the excution timeout to 240 before running the script, for those who cant ajust the php.ini file.

Nisroc - Angel of Freedom Nisroc is known as "The Great Eagle".

Ynot Eyob
Nisroc Angels
The Obsidian Front - Reborn
#598 - 2013-09-25 11:21:10 UTC
Shin Chogan

If you like a full Windows based test site to Work on with full access to what you need let me know. I think some of the issues i read about here, might be caused by the php on Windows version.

Nisroc - Angel of Freedom Nisroc is known as "The Great Eagle".

Newt On Grid
Ministry of War
Amarr Empire
#599 - 2013-10-10 20:00:50 UTC  |  Edited by: Newt On Grid
I'm having some trouble with the Skills rule set. I was trying to use them to assign a secondary group of Capital Pilots, but when i use something simple such as 'Amarr Carrier' with a skill level requirement of 4 it doesn't assign the group to anyone. I did have a Corp ID AND attached but was struggling with it working so lowered to just 1 skill to test.

Is there a particular syntax for inputting the skill names? How can I debug why it isn't matching? I've tried Skill ID's and the Names, nothing seems to work.

I should say i've managed to assign secondary groups using corp titles and roles successfully. Just can't seem to get the skills correct.
Ynot Eyob
Nisroc Angels
The Obsidian Front - Reborn
#600 - 2013-10-11 06:39:53 UTC
What does skills have to do with this plugin to control a forum access?

Nisroc - Angel of Freedom Nisroc is known as "The Great Eagle".