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
Zae'dra Xanthe
Republic Military School
Minmatar Republic
#81 - 2011-11-11 10:24:52 UTC  |  Edited by: Zae'dra Xanthe
Well, I figured out how to fix it for my case (guess for some reason TS serverquery didnt like my nickname). Here's what I did:

1. Opened up "includes/eveapi/functions_eveapi.php"
2. Went to line 81 of the file.
3. Found this:

Quote:
$ts3_VirtualServer = TeamSpeak3::factory("serverquery://" . $config["eveapi_ts_username"] . ":" . $config["eveapi_ts_password"] . "@" . $config["eveapi_ts_ip"] . ":" . $config["eveapi_ts_port_query"] . "/?server_port=" . $config["eveapi_ts_port_server"] . $nickname);


4. Replaced with:

Quote:
$ts3_VirtualServer = TeamSpeak3::factory("serverquery://" . $config["eveapi_ts_username"] . ":" . $config["eveapi_ts_password"] . "@" . $config["eveapi_ts_ip"] . ":" . $config["eveapi_ts_port_query"] . "/?server_port=" . $config["eveapi_ts_port_server"]);


This just removed the "nickname" part from the server, but that did the trick for me. Cheers.
Cyerus
University of Caille
Gallente Federation
#82 - 2011-11-11 11:26:41 UTC
Zae'dra Xanthe wrote:
Any idea why I'm getting this when I try to enter my TeamSpeak server UID and hit submit?

Quote:
exception 'TeamSpeak3_Helper_Exception' with message 'invalid URI supplied' in /var/www/bb/web/forum/includes/eveapi/TeamSpeak3/Helper/Uri.php:133 Stack trace: #0 /var/www/bb/web/forum/includes/eveapi/TeamSpeak3/TeamSpeak3.php(287): TeamSpeak3_Helper_Uri->__construct('serverquery://b...') #1 /var/www/bb/web/forum/includes/eveapi/functions_eveapi.php(81): TeamSpeak3::factory('serverquery://b...') #2 /var/www/bb/web/forum/includes/acp/acp_users.php(973): eveapi_setTeamSpeakGroups('MKGNGTYVx0fD3wR...', Array, 'Khroam') #3 /var/www/bb/web/forum/includes/functions_module.php(507): acp_users->main('users', 'overview') #4 /var/www/bb/web/forum/adm/index.php(74): p_master->load_active() #5 {main}


Also, the TS reg doesn't seem to work. To clarify a few points:

1. TS server is on a different machine (does this matter?)
2. IP of the connecting server (where the forum is) is whitelisted
3. The MOD was installed on a fresh instance of phpBB3 3.0.9 with no other mods, however, data was imported from another phpBB3 forum (same version) with the old EVE API mod.
4. I'm also seeing this in my config panel (is this normal?) screenshotscreenshot
5. The drop-downs where I must select a group in any part of the MOD does not contain any pre-determined forum groups, only those that have been created manually.

I appreciate your attention! Thanks in advance!



  • TeamSpeak on another server doesn't matter.
  • Screenshots are normal behavior; mod supports up to 5 special groups for both forum and TeamSpeak. Reason they look the same, is that they use the same language file.
  • Dropdown menu doesn't show defaultgroups on purpose, you should always make your own groups for each EVE Entity. Within phpBB you can easily add the permissions of those default groups to any other group you like.


Even though you have fixed it, let me explain what the error is about.
'invalid URI supplied' means that something is wrong with the URI used to connect to the TeamSpeak server.
Settings for that URI can be changed in the AdminCP, as well as the 'nickname' flag.
If you keep that 'nickname' flag empty, you don't need to manually edit the code and remove it there.
Nathan WAKE
Deep Core Mining Inc.
Caldari State
#83 - 2011-11-11 11:55:38 UTC
Hello Cyerus,

A bit off topic over here, but just wanted to let you know that I managed to successful install my MOD over yours on a fresh 3.09 board.

Modifications are very light and really just concern the "posting_buttons.html" file. I'll rewrite my "install.xml" file to reflect that and send it to you by mail.

Also, you have a table called "eveapi_items" which contains part of the info I use in the "phpbb_eve_items" table , but not all.

Merge are keep both tables ?

Cheers

Nathan

"I'm a very good housekeeper. Each time I get a divorce, I keep the house"

Zaza Gabor

Zae'dra Xanthe
Republic Military School
Minmatar Republic
#84 - 2011-11-11 12:01:40 UTC
Cyerus wrote:
Zae'dra Xanthe wrote:
Any idea why I'm getting this when I try to enter my TeamSpeak server UID and hit submit?

Quote:
exception 'TeamSpeak3_Helper_Exception' with message 'invalid URI supplied' in /var/www/bb/web/forum/includes/eveapi/TeamSpeak3/Helper/Uri.php:133 Stack trace: #0 /var/www/bb/web/forum/includes/eveapi/TeamSpeak3/TeamSpeak3.php(287): TeamSpeak3_Helper_Uri->__construct('serverquery://b...') #1 /var/www/bb/web/forum/includes/eveapi/functions_eveapi.php(81): TeamSpeak3::factory('serverquery://b...') #2 /var/www/bb/web/forum/includes/acp/acp_users.php(973): eveapi_setTeamSpeakGroups('MKGNGTYVx0fD3wR...', Array, 'Khroam') #3 /var/www/bb/web/forum/includes/functions_module.php(507): acp_users->main('users', 'overview') #4 /var/www/bb/web/forum/adm/index.php(74): p_master->load_active() #5 {main}


Also, the TS reg doesn't seem to work. To clarify a few points:

1. TS server is on a different machine (does this matter?)
2. IP of the connecting server (where the forum is) is whitelisted
3. The MOD was installed on a fresh instance of phpBB3 3.0.9 with no other mods, however, data was imported from another phpBB3 forum (same version) with the old EVE API mod.
4. I'm also seeing this in my config panel (is this normal?) screenshotscreenshot
5. The drop-downs where I must select a group in any part of the MOD does not contain any pre-determined forum groups, only those that have been created manually.

I appreciate your attention! Thanks in advance!



  • TeamSpeak on another server doesn't matter.
  • Screenshots are normal behavior; mod supports up to 5 special groups for both forum and TeamSpeak. Reason they look the same, is that they use the same language file.
  • Dropdown menu doesn't show defaultgroups on purpose, you should always make your own groups for each EVE Entity. Within phpBB you can easily add the permissions of those default groups to any other group you like.


Even though you have fixed it, let me explain what the error is about.
'invalid URI supplied' means that something is wrong with the URI used to connect to the TeamSpeak server.
Settings for that URI can be changed in the AdminCP, as well as the 'nickname' flag.
If you keep that 'nickname' flag empty, you don't need to manually edit the code and remove it there.


Thanks for the reply. It's just that your installation screenie has the "Registered users" group available, so that why I wondered. MOD works like a charm, thanks a lot for this!
Desas
Destructive Influence
Northern Coalition.
#85 - 2011-11-13 19:10:41 UTC
Hello,
was the cron meant to be fixed removing ppls from other user groups with version 5.1?
Cause on our forum they are still getting remoed :(
Did I miss to replace a file?


"Cronlog" wrote:
11-13-2011 19:04:00 Username User is part of corporation -> Corp
11-13-2011 19:04:00 Username Removing user from Forum group -> Group A
11-13-2011 19:04:00 Username Removing user from Forum group -> Group B


Thx in advance


Desas
Cyerus
University of Caille
Gallente Federation
#86 - 2011-11-13 20:16:30 UTC
Desas wrote:
Hello,
was the cron meant to be fixed removing ppls from other user groups with version 5.1?
Cause on our forum they are still getting remoed :(
Did I miss to replace a file?


"Cronlog" wrote:
11-13-2011 19:04:00 Username User is part of corporation -> Corp
11-13-2011 19:04:00 Username Removing user from Forum group -> Group A
11-13-2011 19:04:00 Username Removing user from Forum group -> Group B


Thx in advance


Desas


Be sure to upload all the php files from that package to your webhost, and clear your cache.
Replacing only eveapi.cron.php is not enough.

Also, there is no need to install the .sql files when upgrading from 5.0 to 5.1, since they haven't changed.
Attoy Camow
The Scope
Gallente Federation
#87 - 2011-11-13 21:36:53 UTC
I'd try to install your awesome mod on my corporation phpBB forum. I checked the folder tree on the package and I saw a folder named 'pre_edit'. My phpBB is already modded and I think I've edited also a couple of files on the 'pre_edit' folder.

Have you got some sort of 'search for:' and 'replace with:' instructions to edit those files? I'm a little bit preoccupied to upload the 'pre_edit' folder because I'm scared to mess with previous installed mod.

Thanks in advance for your support.

Bst rgds,
Attoy.
Cyerus
University of Caille
Gallente Federation
#88 - 2011-11-14 17:14:27 UTC
Attoy Camow wrote:
I'd try to install your awesome mod on my corporation phpBB forum. I checked the folder tree on the package and I saw a folder named 'pre_edit'. My phpBB is already modded and I think I've edited also a couple of files on the 'pre_edit' folder.

Have you got some sort of 'search for:' and 'replace with:' instructions to edit those files? I'm a little bit preoccupied to upload the 'pre_edit' folder because I'm scared to mess with previous installed mod.

Thanks in advance for your support.

Bst rgds,
Attoy.


Will be added in the v5.2 package once released.
Attoy Camow
The Scope
Gallente Federation
#89 - 2011-11-14 18:16:18 UTC  |  Edited by: Attoy Camow
Cyerus wrote:
Will be added in the v5.2 package once released.


Awesome!

edit: Is it possible during the registration process that phpbb will asks only for KeyID, verification key and permits the user to choose the username from the character on the given api key?
Zae'dra Xanthe
Republic Military School
Minmatar Republic
#90 - 2011-11-16 22:18:40 UTC  |  Edited by: Zae'dra Xanthe
Desas wrote:
Hello,
was the cron meant to be fixed removing ppls from other user groups with version 5.1?
Cause on our forum they are still getting remoed :(
Did I miss to replace a file?


"Cronlog" wrote:
11-13-2011 19:04:00 Username User is part of corporation -> Corp
11-13-2011 19:04:00 Username Removing user from Forum group -> Group A
11-13-2011 19:04:00 Username Removing user from Forum group -> Group B


Thx in advance


Desas


Experiencing the same issue... all users get removed from all other usergroups except the one they register into. Also, I am experiencing the following error for some users when they try to register (I even did this with my own alt on another account and still got the error):

Character and API settings do not match -> CharName

I triple-verified the key, tried to create a new one, and even ticked all boxes when creating the key meaning all info is shared - still no luck. Thoughts?
Epruini Zezphardid
Kartel-162
#91 - 2011-11-18 14:10:59 UTC  |  Edited by: Epruini Zezphardid
Zae'dra Xanthe wrote:
Experiencing the same issue... all users get removed from all other usergroups except the one they register into. Also, I am experiencing the following error for some users when they try to register (I even did this with my own alt on another account and still got the error):

Character and API settings do not match -> CharName

I triple-verified the key, tried to create a new one, and even ticked all boxes when creating the key meaning all info is shared - still no luck. Thoughts?


Great Mod!, same issue tho, bumping for that.
Zae'dra Xanthe
Republic Military School
Minmatar Republic
#92 - 2011-11-21 11:12:43 UTC
Found the fix to the API problem.

When creating your key, just do it the exact same way I show in this screen shot:

Screenshot

Make sure you select "All" in character selection dropdown when making the key.
Balcanis
Addicted to Shljivovica
Addicted to Shljivovica Alliance
#93 - 2011-11-24 12:32:18 UTC  |  Edited by: Balcanis
This mod is awesome.

I do have 2 issues though.

1. The names of the options are not showing completely. Check out the screenshot below:

[IMG]http://www.image-share.com/upload/1079/263m.jpg

2. I cannot register. It's giving me the message "This character is not permitted to have an account on this forum.". Check the screenshot below:

[IMG]http://www.image-share.com/upload/1079/264m.jpg


How do I fix this? Thanks..
Balcanis
Addicted to Shljivovica
Addicted to Shljivovica Alliance
#94 - 2011-11-25 23:11:32 UTC
Balcanis wrote:
This mod is awesome.

I do have 2 issues though.

1. The names of the options are not showing completely. Check out the screenshot below:

[IMG]http://www.image-share.com/upload/1079/263m.jpg

2. I cannot register. It's giving me the message "This character is not permitted to have an account on this forum.". Check the screenshot below:

[IMG]http://www.image-share.com/upload/1079/264m.jpg


How do I fix this? Thanks..


I contacted Cyerus ingame, and he helped me right away. Thank you so much man. You are awesome and this plugin is amazing! All 5s from me!

As for the solutions for my issues, here are the answers:

1. You have to switch the language of the board administrator account to "Brtish English". Login with your admin account to the forum, then go to "User Control Panel", then "Board Preferences", and finally "Edit Global Settings". Change the language to "British English".

2. The problem is that with default settings, nobody can register, so you have to setup rule based on corporation, settings or whatever.

Once again, thank you so much!
Epruini Zezphardid
Kartel-162
#95 - 2011-12-01 10:47:09 UTC
Ok, starting my teamspeak 3 setup. When i paste my UID into either the ACP or UCP i am getting this error message. I have replaced some info here with ****** to hide some of the FTP structure.

Quote:
exception 'TeamSpeak3_Transport_Exception' with message 'Connection timed out' in

/****/*******/public_html/forums/includes/eveapi/TeamSpeak3/Transport/TCP.php:54 Stack trace: #0

/****/*******/public_html/forums/includes/eveapi/TeamSpeak3/Transport/TCP.php(108):

TeamSpeak3_Transport_TCP->connect() #1

/****/*******/public_html/forums/includes/eveapi/TeamSpeak3/Adapter/ServerQuery.php(76):

TeamSpeak3_Transport_TCP->readLine() #2

/****/*******/public_html/forums/includes/eveapi/TeamSpeak3/Adapter/Abstract.php(60):

TeamSpeak3_Adapter_ServerQuery->syn() #3

/****/*******/public_html/forums/includes/eveapi/TeamSpeak3/TeamSpeak3.php(294):

TeamSpeak3_Adapter_Abstract->__construct(Array) #4

/****/*******/public_html/forums/includes/eveapi/functions_eveapi.php(81): TeamSpeak3::factory

('serverquery://s...') #5 /****/*******/public_html/forums/includes/ucp/ucp_profile.php(207):

eveapi_setTeamSpeakGroups() #6 /****/*******/public_html/forums/includes/functions_module.php(507)


I have verified that the server query port and the actual teamspeak port are both forwarded and available to the external network(web).
ryuuzanx
ImperiaI Federation
Goonswarm Federation
#96 - 2011-12-11 16:21:18 UTC
First off, thank you for this, I have been looking for something like this for forever!

However, I have discovered its not idiot proof, cause I messed something up -_-

I cant understand what Im supposed to be looking at

http://i1119.photobucket.com/albums/k625/ajw1899/apithingy.png?t=1323620365

Anyone else's look like this ^ ?

Cheers
Balcanis
Addicted to Shljivovica
Addicted to Shljivovica Alliance
#97 - 2011-12-11 16:46:59 UTC
You need to change the language of the admin account to British English, check my previous posts. I had the same issue.
ryuuzanx
ImperiaI Federation
Goonswarm Federation
#98 - 2011-12-11 21:59:05 UTC
Balcanis wrote:
You need to change the language of the admin account to British English, check my previous posts. I had the same issue.


It is in British English, its actually the only language available on my board :(
ryuuzanx
ImperiaI Federation
Goonswarm Federation
#99 - 2011-12-11 22:10:43 UTC
ryuuzanx wrote:
Balcanis wrote:
You need to change the language of the admin account to British English, check my previous posts. I had the same issue.


It is in British English, its actually the only language available on my board :(


Fixed it. I didnt import the language file >.>
Ynot Eyob
Nisroc Angels
The Obsidian Front - Reborn
#100 - 2011-12-14 18:50:56 UTC  |  Edited by: Ynot Eyob
Installed a new installation of phpbb3 and this mod.

Everything goes smooth. When i registre i get this:

Character and API settings do not match -> Ynot Eyob

But it does..

Idears Question

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