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.
 

phpBB 3.x API Registration Mod v6+

Author
Shedemei Silfar
Miskatonic Mercantile
#881 - 2013-08-15 19:53:44 UTC
Kentaro Fukuta wrote:
Thanks for providing this great mod!

Everything works like a charm, except.... for EVE Systems (e.g. Jita), the "Information" and "Show on Map" buttons work, but the "Set Destination" and "Add Waypoint" buttons don't work - they're there, but nothing happens when you click on them in the Ingame Broswer.... did I miss anything?



This is also occurring for me... what are we missing?
Juno Libertas
Alcoholocaust.
Test Alliance Please Ignore
#882 - 2013-08-16 06:37:58 UTC
Okay I want to do some custom coding here but not sure how I want to achieve this. I went API info for "All Characters" instead of just one character that the new member wants to register with. I don't think the access mask changes whether you select for one specific character or all characters so I think a simple IF designation of whether the API pull contained more than one character would work. Problem is I am not a great coder and would love some help on this anyone out there? You are my only hope :P
ILLADEN
Native Freshfood
Minmatar Republic
#883 - 2013-08-16 09:32:43 UTC
farraguat wrote:
I am also having this problem but it doesnt save at all even under corporations but it does work for the corp ones creating fc and officer it doesnt. also teamspeak Unique ID should be on registration page


You can easily do this. Just open your theme's template files for the UCP Acc and find the UID input field. Then copy the dd to the template file for UCP Reg.


I would love to see correct groups order (previous pages), a fix for TS error handling, and as cherry on the top it would be awesome to see the TS group value's saving & working for individual groups.
Go0fBall
Perkone
Caldari State
#884 - 2013-08-17 04:49:47 UTC
Just recently upgraded to the latest version, thanks for that. Any news on the actual database update? Not sure if I did something wrong as I am not seeing any of the new Odyssey mods Sad.
Yugo Reventlov
Keeping Up Appearances
Happy Cartel
#885 - 2013-08-18 10:47:03 UTC
Just an FYI for anyone using the Ejabberd integration provided by this mod: at the moment anyone who has a forum account on your forum will have access to Jabber.

The biggest problem here is that people who lose their forum access because they leave your corp/alliance/faction, still have the ability to connect to your Jabber server.

I hope Cyerus can fix this soonish, because this could be a security concern for anyone using this feature.
Cyerus
Eternal Strife
#886 - 2013-08-18 16:46:07 UTC  |  Edited by: Cyerus
ILLADEN wrote:
Please do. As the cronjobs utterly fail due to this :)
It should simply catch, and skip over to the next user.

However, I have a couple of users (around 30) where it simply throws the error back, even though the user has clearly connected or is connected before. You can see their identity being registered in the Teamspeak userlist, and sqlite db. Removing and re-adding on the teamspeak side yields no results.

P.S. I can confirm the group bug aswell.


I can't find any indication which would make you see an error message, unless you manually changed some stuff in the code. The TeamSpeak integration is suppose to silently fail on errors, and have been doing that on the test environment I've set up to test this issue.

Can you double (triple) check to make sure you haven't enabled the error reporting (debug) within the mod yourself?
If not, I'll have to see the fails in action by using teamviewer or software alike.


Yugo Reventlov wrote:
Indeed, this fixes the drones with tech 3 ships. I was just copy-pasting fits from EFT. It seems to export Tech 3 fits with 2 empty lines between subsystems and drones, while Zkillboard for example only puts 1 empty line. Bug in EFT then?

Yes, that would indicate EFT in this case is wrong (ironically EFT 'invented' this way of importing/exporting fits).


Kentaro Fukuta wrote:
Thanks for providing this great mod!

Everything works like a charm, except.... for EVE Systems (e.g. Jita), the "Information" and "Show on Map" buttons work, but the "Set Destination" and "Add Waypoint" buttons don't work - they're there, but nothing happens when you click on them in the Ingame Broswer.... did I miss anything?

You'll need to set your forum as trusted within the IGB to make these links work. In version 5.2.4 I've added this to be done on forum load, which should make it easier as no manual step is needed anymore.


Kentaro Fukuta wrote:
The more I work with the mod, the more I like it Big smile

Two feature proposals:

  • Can you provide a version of eveapi_cron.php that doesn't create a fully styled and formatted HTML page, but the same contents as plain text? The reason is that when I run this as a cronjob on my domain, my hosting providers supports providing any cronjob output as email. With the current setup, in the email I see the entire HTML code of the created page. Of course it is feasible to extract the desired information, but it's cumbersome. Thus, having the output as plain text would be great!
  • In the same way as you can add links to items, systems and fittings, could you provide a mechanism (bbcode) to create links to pilots?


  1. I'll consider it.
  2. I'll consider that one aswell. Problem is that for every character on every page load you'd need to query the API servers. If some dumbass decides to link to non-existing characters, you're forum might become banned from the API servers. I could add a check for valid characters to only query once, but it's a risk nonetheless.



ILLADEN wrote:
Please update teamspeak handling and the order (previous pages) first before adding new stuff :)

Order should be changed to Standings > FW > Alliance > Corporation. Please verify!
Cyerus
Eternal Strife
#887 - 2013-08-18 18:18:37 UTC  |  Edited by: Cyerus
Kashada Kumato wrote:
I am having a problem when trying to enable teamspeak 3 integration,

i have the correct settings i am certain but i keep getting

TeamSpeak error: 111 -> Connection refused

any idea why?

There could be multiple things wrong with the configuration. I've just updated the eveapi_check.php page to give a little bit more insight in what could be wrong.


Kashada Kumato wrote:
found the logs and nothing is showing relating to the server

Where are the settings for TS stored?

I have tried manually editing some settings in the DB in the config section but it doesnt change the values on the forum page, i have searched the database and the files for any trace of where it is reading the info from but cant find anything.

I think the reason for the problem is i need to tell the forums to connect to the specific virtual server we are using, but so far i can find nothing

Use eveapi_check.php to figure out what's wrong. If you need further help, please include a screenshot of eveapi_check.php. (Can also be send to me as an email if you don't want your information to be public.)


Subsparx wrote:
I would love it if at some point there was a config/install guide that wasn't a Youtube video, or at the very least if links were put in the Youtube video to specific sections, mostly because I've just spent the last 30 minutes skipping around in your videos and haven't found an answer to how to set the minimum required access mask yet. Is there a configuration section for this or do I have to manually edit a file?

I won't be creating a text-based step-by-step guide anymore, as many people don't understand it anyways. The video acts as a clear guide with examples and have helped many people in the process.

As for the accessMask; there is currently no simple way to change it. You'll have to change it in the code, but be sure to have the default Public Info -> Character Info and Public Info -> FacWarStats enabled on your accessMask as it's the minimum required to run this mod. I might create a simpler option in the ACP in the future.


Aluminy wrote:
the cron is successfully kicking people from forum and disabling account however, not removing them from their TS groups that are attached to their registration?

any ideas?

Hints towards something being wrong with your configuration. Could either be a general TeamSpeak integration bug, or the TeamSpeak groups might be set as immune. Please check for any errors with the TeamSpeak integration using eveapi_check.php.


Gehnster wrote:
Is there a step by step guide somewhere on how to setup the ejabberd side? I haven't figured it out yet.

Thanks

There's no step-by-step guide available at this time, and I don't really have the time to create any either. Google for ejabberd External Auth and it might give you a little hint on where/how it works.
Cyerus
Eternal Strife
#888 - 2013-08-18 18:30:18 UTC  |  Edited by: Cyerus
Amy Park wrote:
Any group I add a teamspeak number to doesn't save that number. Any idea why not? Permissions work for the groups added on the alliance and corporation screen but say if I create a FC group in phpBB, then add a number for a TS group to that phpBB group, the TS number doesn't save after hitting submit.

Should be fixed in 6.2.4. Let me know if it's not.


farraguat wrote:
I am also having this problem but it doesnt save at all even under corporations but it does work for the corp ones creating fc and officer it doesnt. also teamspeak Unique ID should be on registration page

Many forums (including mine) have the TeamSpeak information stored on the forums only viewable by members. Having the TeamSpeak UID field on the registration page wouldn't work, as the user would have no way of connecting to TeamSpeak to receive his permissions. Besides, UCP is only a small step to set up the TeamSpeak UID.


Sugar Von MurdererTits wrote:
Liked! May I ask how you solved this in the end? Do you purge users whenever the 403 error is returned?

Thanks. I check for HTTP errors, 403 in particular. If a HTTP 403 is found, the user is disabled. If any other HTTP is found, nothing is done to the user as the other HTTP could hint towards degradation of the EVE API service. A ****** solution, for a ****** 'HTTP-on-API-error' implementation.


Shedemei Silfar wrote:
This is also occurring for me... what are we missing?

Set the forum as trusted in the IGB, as those functions only work on trusted pages.


Juno Libertas wrote:
Okay I want to do some custom coding here but not sure how I want to achieve this. I went API info for "All Characters" instead of just one character that the new member wants to register with. I don't think the access mask changes whether you select for one specific character or all characters so I think a simple IF designation of whether the API pull contained more than one character would work. Problem is I am not a great coder and would love some help on this anyone out there? You are my only hope :P

API keys with multiple characters already work on the forum. It loops through them hoping to find the character with the same name as the selected forum username. If found it selects that character, and if not found, it denies access depending on the configuration set.
Cyerus
Eternal Strife
#889 - 2013-08-18 18:39:23 UTC  |  Edited by: Cyerus
Go0fBall wrote:
Just recently upgraded to the latest version, thanks for that. Any news on the actual database update? Not sure if I did something wrong as I am not seeing any of the new Odyssey mods Sad.

Updated in 6.2.4.


Yugo Reventlov wrote:
Just an FYI for anyone using the Ejabberd integration provided by this mod: at the moment anyone who has a forum account on your forum will have access to Jabber.

The biggest problem here is that people who lose their forum access because they leave your corp/alliance/faction, still have the ability to connect to your Jabber server.

I hope Cyerus can fix this soonish, because this could be a security concern for anyone using this feature.

I can't find any indication of this to be true. I checked the forum_side.php script and it correctly checks whether or not an user is disabled (it correctly returns false if disabled).
I also checked ejabberd_side.php and also that file sends back the correct response.

Can you triple check all your logs and mail them if possible?




Hereby I'm releasing version 6.2.4

  • NOTE! Remember to update your Special Group permissions in each of the Group settings screen, as the main Special Group checks from the EVE API General tab will be removed shortly!
  • The Groups-settings page has now been fixed to actually store the values (sorry about that!).
  • Updated the database to Odyssey 1.0.9. (Fuzzysteve's Odyssey 1.0.12 database dump seems to be corrupt, so using an older one instead.)
  • Split the installation script into different files to give my IDE a bit more breathing room.
  • The forum should now ask to be set as trusted when using the IGB. This is mainly done for the people having problems understanding they have to set the forum as trusted in order to use the navigation links. (When linking systems mainly, like setDestination())
  • Added basic TeamSpeak integration debugging to eveapi_check.php. Check that file for more information. (In order to see the page, you'll need to be logged in as admin.)

Default installation/upgrade instruction apply.

Download can be found in the first post of this topic as usual.
Let me know if you come across any other issues.
Yugo Reventlov
Keeping Up Appearances
Happy Cartel
#890 - 2013-08-18 19:39:18 UTC
I sent you a mail.

Cyerus wrote:
Yugo Reventlov wrote:
Just an FYI for anyone using the Ejabberd integration provided by this mod: at the moment anyone who has a forum account on your forum will have access to Jabber.

The biggest problem here is that people who lose their forum access because they leave your corp/alliance/faction, still have the ability to connect to your Jabber server.

I hope Cyerus can fix this soonish, because this could be a security concern for anyone using this feature.

I can't find any indication of this to be true. I checked the forum_side.php script and it correctly checks whether or not an user is disabled (it correctly returns false if disabled).
I also checked ejabberd_side.php and also that file sends back the correct response.

Can you triple check all your logs and mail them if possible?

Aluminy
Stargazer Exploration Company
#891 - 2013-08-19 01:39:17 UTC  |  Edited by: Aluminy
lol manage groups still does not store the value - yes i have updated to version .4

cleared cache / sessions... restarted database etc... Ugh







edit - goin in manually to the DB and adding the TS3 server group number directly worked >< however non efficient lolol
Juno Libertas
Alcoholocaust.
Test Alliance Please Ignore
#892 - 2013-08-19 07:53:18 UTC
Aluminy wrote:
lol manage groups still does not store the value - yes i have updated to version .4

cleared cache / sessions... restarted database etc... Ugh







edit - goin in manually to the DB and adding the TS3 server group number directly worked >< however non efficient lolol


Funny I can't get my Teamspeak UID to save...how did you fix it?
Yugo Reventlov
Keeping Up Appearances
Happy Cartel
#893 - 2013-08-19 08:45:58 UTC
Cyerus wrote:
Yugo Reventlov wrote:
Just an FYI for anyone using the Ejabberd integration provided by this mod: at the moment anyone who has a forum account on your forum will have access to Jabber.

The biggest problem here is that people who lose their forum access because they leave your corp/alliance/faction, still have the ability to connect to your Jabber server.

I hope Cyerus can fix this soonish, because this could be a security concern for anyone using this feature.

I can't find any indication of this to be true. I checked the forum_side.php script and it correctly checks whether or not an user is disabled (it correctly returns false if disabled).
I also checked ejabberd_side.php and also that file sends back the correct response.

Can you triple check all your logs and mail them if possible?


I retract my statement, it is very likely my own doing :D
Kentaro Fukuta
Doomheim
#894 - 2013-08-19 17:54:44 UTC
Cyerus wrote:
You'll need to set your forum as trusted within the IGB to make these links work. In version 5.2.4 I've added this to be done on forum load, which should make it easier as no manual step is needed anymore.
Thank you for the help; it indeed works with the Trusted Site setting Big smile I need to see when I'll find the time to update to the new version.

Cyerus wrote:

  1. I'll consider it.
  2. I'll consider that one aswell. Problem is that for every character on every page load you'd need to query the API servers. If some dumbass decides to link to non-existing characters, you're forum might become banned from the API servers. I could add a check for valid characters to only query once, but it's a risk nonetheless.

  1. Thank you, that would be much appreciated.
  2. I didn't realize those implications. Thank you for considering it, but it might not be a high priority.
feedmi iskies
Doomheim
#895 - 2013-08-20 17:35:15 UTC
is there another link? getting a 404 Shocked
Durp Vader
Personal Space Invaders Inc
#896 - 2013-08-22 08:31:45 UTC
Mmm, when I upload version 6.2.4, I get following error:

The directory structure of the uploaded MOD archive is unrecognized. Check if the zip archive you uploaded is corrupt or missing any files/directories, or contact the MOD Author.
Juno Libertas
Alcoholocaust.
Test Alliance Please Ignore
#897 - 2013-08-24 22:15:27 UTC
I am still having problem saving Teamspeak UIDs through ACP and UCP anyone have any hints?
Durp Vader
Personal Space Invaders Inc
#898 - 2013-08-26 15:13:24 UTC  |  Edited by: Durp Vader
Juno Libertas wrote:
I am still having problem saving Teamspeak UIDs through ACP and UCP anyone have any hints?


I can't update the Teamspeak 3 user group of my groups on the board.

EDIT: Actually, none of the EVE API settings in the usergroups seem to work. I can't enable Jabber, nor can I add that group to a Teamspeak group. Anyone else got this issue? :)
EDIT2: I manually updated the database with the correct group, and the group got correctly displayed in the EVE API settings for that group. However, the users were not automatically moved in that group eve though all settings on my end should be correct.
Dex Thiesant
Concordiat
Pandemic Horde
#899 - 2013-08-26 17:41:51 UTC
Juno Libertas wrote:
I am still having problem saving Teamspeak UIDs through ACP and UCP anyone have any hints?


It may be an issue communicating with your teamspeak server. Go under the maintenance section of the forum and check for any errors.
Durp Vader
Personal Space Invaders Inc
#900 - 2013-08-26 18:21:19 UTC
Well after some digging through the scripts it looked like a permission error, but for some reason people on the teamspeak server are still not getting the correct permissions. Instead, they have their permissions removed.