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
Magenta Flori
Royal Amarr Institute
Amarr Empire
#81 - 2013-11-28 02:54:11 UTC
What kind of output can we expect from TEA_Cron.php? I get a bunch of HTML and I don't think its updating.
1Gordon Gekko1
Handsome Millionaire Playboys
Sedition.
#82 - 2013-11-28 03:41:58 UTC
Magenta Flori wrote:
Ok, so that's what it was. I just put it on a VPS and it works as expected.

Next question, Trying to setup TS3. I get Unknown Method when I try and register? I see all the groups when I plugged in the query login info.



We had to have member log into TS with the username given to them on the TeamSpeak section of the TEA plugin...and then when they hit register it instantly gave them the right roles on TS. If they weren't logged into TS, we got the same message you did.
Magenta Flori
Royal Amarr Institute
Amarr Empire
#83 - 2013-11-28 03:44:27 UTC  |  Edited by: Magenta Flori
1Gordon Gekko1 wrote:
Magenta Flori wrote:
Ok, so that's what it was. I just put it on a VPS and it works as expected.

Next question, Trying to setup TS3. I get Unknown Method when I try and register? I see all the groups when I plugged in the query login info.



We had to have member log into TS with the username given to them on the TeamSpeak section of the TEA plugin...and then when they hit register it instantly gave them the right roles on TS. If they weren't logged into TS, we got the same message you did.


Yeah, I should have came back. I figured that out.

I'm stuck on these PHP cron job files though. They don't appear to do anything. I'd assume the TEA_Cron.php is supposed to update the alliance list but when I run it all I get is some HTML in the console. If I run it in a browser I get Reset lastid to Zero. Not sure where to go.

Hopefully someone will help because they are not working. I completely removed TEA, removed the cache, removed it from MySQL and re set it up with the same results. Build a VM server with the same results. I'm lost.

EDIT:

Ok so my issue with the cron job was not allowing guest to browse the forums. It also seems that if I manually remove the corp list and standing files and re-run TEA_Cron.php I get an updated list and new files. I guess this is by design and I can just make a cron job around it.
Shin Chogan
Federal Navy Academy
Gallente Federation
#84 - 2013-11-28 09:24:01 UTC
Magenta Flori wrote:
[quote=1Gordon Gekko1][quote=Magenta Flori]
It also seems that if I manually remove the corp list and standing files and re-run TEA_Cron.php I get an updated list and new files. I guess this is by design and I can just make a cron job around it.


Yes this is correct ... the corp list and standings files are created if they are not there and are updated every 24 hours. Just run the TEA_Cron.php and any of the other cron jobs as frequently as you like based on your security needs. I run the TEA_Cron every 2 minutes and it takes about 4 hours to go through every account in my forum.
Magenta Flori
Royal Amarr Institute
Amarr Empire
#85 - 2013-11-28 13:48:58 UTC  |  Edited by: Magenta Flori
Sweet, thanks for the great work. It is supposed to give any details when you run it? Most of them give nothing but a prompt. Tea_Cron.php gives that reset id to zero or whatever message?
Shin Chogan
Federal Navy Academy
Gallente Federation
#86 - 2013-11-28 15:44:00 UTC
Magenta Flori wrote:
Sweet, thanks for the great work. It is supposed to give any details when you run it? Most of them give nothing but a prompt. Tea_Cron.php gives that reset id to zero or whatever message?



Nope no output ... simple reason being if you run it every 2mins and it output something cron generates an email to send you what would have appeared on the console if you send this to a real mailbox eventually even googles smtp servers bounce the emails as spam ... they don't even get to your spam folder. Go on ask me how I know Roll

The reset id to zero is output when it has done a complete run through all the accounts in your forum ... so for me I get one of these about every 4 hours but it will depend greatly on how many forum accounts or more precisely how many api keys you have and how quickly CCP's servers are working.
Magenta Flori
Royal Amarr Institute
Amarr Empire
#87 - 2013-11-29 21:39:07 UTC  |  Edited by: Magenta Flori
Shin Chogan wrote:
1Gordon Gekko1 wrote:
ok...after doing some digging, what it looks like it's doing is not appending the size.jpg to the character ID it's pulling from the API mod. So when I inspect the avatar element, it looks like:

https://image.eveonline.com/Character/1088364566

instead of:

https://image.eveonline.com/Character/1088364566_128.jpg

If I fix the HTML manually on the page, it pulls the right pic down.

Any more thoughts on why this would be? I set the entire board to 777 while testing, so I don't think it's permission issue...and it's got the right path, just not adding in the missing section to the end (which I think would be done by the mod, since you can set the size of the avatars you want used in the Temar API settings...it's just not actually doing it).


interesting ... where are you seeing this url ? When I look at a profile and inspect the element of the Avatar it is a url in my forum not in image.eveonline.com


Sorry I missed this :

Quote:

Perhaps a better question is, 'where should it point to'? How does the plug-in handle the fectching? Is it going to

https://image.eveonline.com/characters/ID number

and then trying to save it to the avatar folder? I think if I knew what it was trying to do, I'd be able to finish it out, since it IS getting the right images from somewhere in the profile settings.


That is about what is happening ... it fetches image from image.eveonline.com and then it should save it to either your attachments folder or your avatar folder depending on how you have things configured.


I'm having this same problem. How did you get it working? The avatar folder has full permissions for everyone ATM. The avatar shows up, I click save and the avatar is never saved locally in the avatar folder and it sets itself back to no avatar in the radio dialog.

EDIT:
NVM did not have GD Installed.
vigilliann
French Interstellar Enterprise
#88 - 2013-12-01 01:39:47 UTC  |  Edited by: vigilliann
Hi,

I have a problem with your plugin for SMF... It seems that temars don't synchronize the database for openfire and so don't create the users... Can you help me about that?

I would'nt ask for help if there were enough doc of course but since there is none....
Shin Chogan
Federal Navy Academy
Gallente Federation
#89 - 2013-12-03 13:19:39 UTC
vigilliann wrote:
Hi,

I have a problem with your plugin for SMF... It seems that temars don't synchronize the database for openfire and so don't create the users... Can you help me about that?

I would'nt ask for help if there were enough doc of course but since there is none....


The jabber sync is actually 2 parts ... the db connection which gets the list of available groups in Openfire, and the use of the User Service plugin on Openfire to allow the creation and modification of users via an http interface.

If when you go to the Jabber rules section of Temars you can see any groups you have defined in Openfire (Obviously you need to have created some in there first :) ) then the problem is not the DB connection.


If you can see groups but users aren't being created in Openfire then you need to make sure you have the User Service plugin installed and correctly configured in Openfire.


also worth noting is you have to have at least one group mapping set up between SMF and Openfire for the user to be created on the Openfire server.

There is lots of info in the old thread :
https://forums.eveonline.com/default.aspx?g=posts&t=8284

vigilliann
French Interstellar Enterprise
#90 - 2013-12-05 23:52:54 UTC  |  Edited by: vigilliann
Seems that is not the solution to my problem.
the groups are visible in SMF, the user service is correctly configured because we can create new user with the URL : for example :
hostname:port/plugins/userService/userservice?type=add&secret=passexample&username=testalamain&password=test&name=MonsieurTest&email=grocon@gmail.com&groups=Camarade


Am I missing something here?
Shin Chogan
Federal Navy Academy
Gallente Federation
#91 - 2013-12-06 07:17:32 UTC  |  Edited by: Shin Chogan
vigilliann wrote:
Seems that is not the solution to my problem.
the groups are visible in SMF, the user service is correctly configured because we can create new user with the URL : for example :
hostname:port/plugins/userService/userservice?type=add&secret=passexample&username=testalamain&password=test&name=MonsieurTest&email=grocon@gmail.com&groups=Camarade


Am I missing something here?



You say the groups are visible ... do you have any mappings defined ?

and what is the plugin.userservice.allowedIPs property set to on your openfire server.
vigilliann
French Interstellar Enterprise
#92 - 2013-12-06 10:25:08 UTC
the rules you mean in SMF? if it's that, yeah it's activated.

the allowed ip's are blank and in mode 'accept' so normally it will accept all the connections no?

how is transfered the request to userservice?
Konpi Masai
Caldari Provisions
Caldari State
#93 - 2013-12-06 10:33:26 UTC
Hello there.

First thank you for maintaining the API and providing support, very good job here.

The openfire server is configured correctly, I even tested the URL generated from another host and it worked.

I think the problem is that CURL seems to fail on our hosting service. We have submitted a ticket about this, we'll keep you posted.
Shin Chogan
Federal Navy Academy
Gallente Federation
#94 - 2013-12-06 10:36:48 UTC
vigilliann wrote:
the rules you mean in SMF? if it's that, yeah it's activated.

the allowed ip's are blank and in mode 'accept' so normally it will accept all the connections no?

how is transfered the request to userservice?



It's just a curl call. Is SMF and Openfire on the same box ?

Try doing a packet trace on the Openfire Box and seing if you are seeing the user service being hit.

Have you a user that has gone to index.php?action=profile;area=tea;sa=jabber and selected a user and a password ? ... unless they do that no user will be created.

Only other thing I can suggest is you give me some logon details and I'll take a quick look.
Konpi Masai
Caldari Provisions
Caldari State
#95 - 2013-12-06 10:42:49 UTC
Shin Chogan wrote:

It's just a curl call. Is SMF and Openfire on the same box ?

Nope. In fact, OpenFire runs on Machine A and use mysql on Machine B.
SMF runs on Machine B (third party hosting service, no dedicated machine), connects to Machine B Openfire DB and tries to call curl on openfire admin page on Machine A.

Shin Chogan wrote:

Try doing a packet trace on the Openfire Box and seing if you are seeing the user service being hit.

Have you a user that has gone to index.php?action=profile;area=tea;sa=jabber and selected a user and a password ? ... unless they do that no user will be created.

Only other thing I can suggest is you give me some logon details and I'll take a quick look.


I've put addtional error logs in TEA and it goes to the point where the curl call is made but fails silently after 120 secs.
Dasani Waters
Deep Core Mining Inc.
Caldari State
#96 - 2013-12-13 19:18:01 UTC
Just an FYI:

I think CCP recently changed the "403 - Forbidden" messages to more specific error messages; I got php errors when trying to validate empty or invalid keyIDs and vcodes. I managed to fix some of them by changing the "403 - Forbidden" arguments to their specific counterparts in TEAC.php
Inara Talamasca
Meridian Inc
#97 - 2013-12-15 16:40:47 UTC
Just installed SMF2.0.6 and TEA 1.3.1 r4 and have had some issues.. I've worked through some, but, a couple I cannot get by without some help.

- SMF wouldn't accept the zip file of the mod via the upload built in.. I had to ftp it up, and then unzip it in the /Packages directory. This allowed it to install from inside SMF. I also needed to copy the TS3_Class/ dir by hand to /Sources

- Not sure what API to use for our Alliance in the main config of TEA.

- Base Admin account loses admin privs.. because it has no API. Probably by cron check. a reset php script fixes this temporarily.

- Users cannot register because of the "select a character" requirement, even with "Is a Valid Api required to Register? " set to disabled/no. if you enter a single character or false API, it will tell you in the error message, a proper one will tell you to select a character.

The API function -IS- working, just the fetch characters button is doing nothing. For the admin account, I tested adding an API without selecting a character, and saving it, then opening it again and was able to select a character without a problem.

Logging out and trying to register again still fails; same lame/dead fetch character button, blank drop down. No errors, same behaviour in firefox, chrome, IE.

Also changed the API server to: http://community.eveonline.com/support/api-key/ since the other links were https, and, double redirected to this URL. an https link may also be fine, but, I was reading about prople having trouble with curl and ssl. Testing curl by hand revealed the redirects to me, actually. The fetch button didn't work with any of the urls used, but the test on the admin account worked fine with this one.

Thanks for any help you can give.
Dasani Waters
Deep Core Mining Inc.
Caldari State
#98 - 2013-12-15 18:44:49 UTC
what kind of error messages do you get with setting the API server to its default?

Did you try disabling SSL with the default server before changing its location?
Shin Chogan
Federal Navy Academy
Gallente Federation
#99 - 2013-12-15 20:00:12 UTC
Inara Talamasca wrote:
Just installed SMF2.0.6 and TEA 1.3.1 r4 and have had some issues.. I've worked through some, but, a couple I cannot get by without some help.

- SMF wouldn't accept the zip file of the mod via the upload built in.. I had to ftp it up, and then unzip it in the /Packages directory. This allowed it to install from inside SMF. I also needed to copy the TS3_Class/ dir by hand to /Sources


Errr ... never seen that one before so Can't really help.

Quote:


- Not sure what API to use for our Alliance in the main config of TEA.



Put in a corp key for your exec corp ... you need to be able to get the standings.

Quote:

- Base Admin account loses admin privs.. because it has no API. Probably by cron check. a reset php script fixes this temporarily.


untick the main and additional boxes next to administrator on the rules page.

Quote:

- Users cannot register because of the "select a character" requirement, even with "Is a Valid Api required to Register? " set to disabled/no. if you enter a single character or false API, it will tell you in the error message, a proper one will tell you to select a character.


That checkbox removes the requirement for a API key to register. ie you can completely leave out the api key ... if you enter one it has to be valid

Quote:

The API function -IS- working, just the fetch characters button is doing nothing. For the admin account, I tested adding an API without selecting a character, and saving it, then opening it again and was able to select a character without a problem.
...
Also changed the API server to: http://community.eveonline.com/support/api-key/ since the other links were https, and, double redirected to this URL. an https link may also be fine, but, I was reading about prople having trouble with curl and ssl. Testing curl by hand revealed the redirects to me, actually. The fetch button didn't work with any of the urls used, but the test on the admin account worked fine with this one.

Thanks for any help you can give.


The url in the API server Box must be https://api.eveonline.com anything else and it will not work correctly. Well actually that isn't quite true ... if you have set up some kind of Eve API cache server then you'd put that in here instead but the likely hood of that is fairly slim :)

If you are installing on Linux then there is no problem with curl and https the problem only exists on windows since PHP doesn't ship with the Root CA's and it can't access the ones in Internet Explorer ... to work around this find :

curl_setopt($ch, CURLOPT_TIMEOUT, 60);

and add after it :

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
Shin Chogan
Federal Navy Academy
Gallente Federation
#100 - 2013-12-15 20:02:51 UTC
Dasani Waters wrote:
Just an FYI:

I think CCP recently changed the "403 - Forbidden" messages to more specific error messages; I got php errors when trying to validate empty or invalid keyIDs and vcodes. I managed to fix some of them by changing the "403 - Forbidden" arguments to their specific counterparts in TEAC.php



Yeah ... I've rewritten it to take into account the complete 180 that CCP did on error codes. I've been working out the kinks on my victims ... sorry volunteers ... nope still not right ... subjects ... thats more like it Lol

I just need to get some time to put it into a release.