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.
 

Teamspeak and phpBB Forums EVE Online API Registration System

Author
Gaitrie
MagmaTech Industries
#161 - 2011-10-27 06:28:09 UTC
Well then need to talk with the hosting provider. Great app and keepup the good work :-)

Mine is Bigger **than **Yours ! <<<

Gaitrie
MagmaTech Industries
#162 - 2011-10-27 14:24:29 UTC
MisterMagotchi wrote:
A popup saying, "Error getting API data from EVE server." likely means neither the cURL extension for PHP is loaded nor the allow_url_fopen option is available.


Have checked with my provider and they have both the cURL and the allow_url_fopen active and enabled. Now do I need to have the cron setup before I can register a user ?

Mine is Bigger **than **Yours ! <<<

MisterMagotchi
Deep Core Mining Inc.
Caldari State
#163 - 2011-10-27 20:48:09 UTC
No, but you'll need to adjust your path to the PHP5 executable for your system (toward the bottom of the config.inc.php file). This will depend on your provider, and will probably involve "php.exe".
Gaitrie
MagmaTech Industries
#164 - 2011-10-27 21:21:55 UTC
Hmm weird - did not have that part :-) redownloaded the files again and it works now

Mine is Bigger **than **Yours ! <<<

venomkid
Almost Everything LLC
#165 - 2011-11-03 01:36:27 UTC
I'm getting the following when i navigate to the registration page

Error: You are not logged in on the forums. Please do so and then try to register again.

im guessing its not linking to the fourm page correctly or something cause im most definetly logged into the fourm page...also does this have to be in the fourm folder? like /www/fourm/eve-api-reg/

or can it be in its own folder liker /www/eve-api-reg/

not sure what i did wrong..followed the setup guide maby i missed something -.-
MisterMagotchi
Deep Core Mining Inc.
Caldari State
#166 - 2011-11-03 02:14:58 UTC
It has to be served on the same exact domain/hostname as the forums. For example, if your forums are on the hostname "www.example.com", maybe "www.example.com/forums/", the script would need to be somewhere on "www.example.com", maybe "www.example.com/reg-script/". There are no restrictions on its placement other than sharing the same exact hostname.

The error you're seeing means the script properly connected to the phpBB3 database and got the cookie name it uses, but when it checked for that cookie name on your computer for the domain on which it was running, it either didn't find it, or it found it, but upon checking the session timestamp for the cookie in the database, it thought it was expired. I assume it's the first thing: it's likely having trouble finding the cookie with that name.

If you would like, you can send me a mail or email with your TS3 details, and I can help you through it.
venomkid
Almost Everything LLC
#167 - 2011-11-03 03:04:06 UTC  |  Edited by: venomkid
Its at the exact same hostname. And could it be because the website is locally hosted?? So while its looking for bassetthosting.us.to its finding 192.168.1.40.....
and i Sent you a eve msg.

Alright so far i seem to have fixed that...atleast locally...here is the new error

Error connecting to TS server to check whether or not the Teamspeak Unique ID you entered is recognized by the Teamspeak server. Soo does that mean the admin serverquery info is wrong in the config file?

Alright got that fixed now as well. One more thing tho.

So if your in Corp X then your also in Teamspeak and forum group (Y,Z)

Is there someway to make it so if your a higher rank, say an officer its not constalty granting you member privileges? otherwise Even Admins and Officers keep getting added to the member rank. Its not Removing them from their higher group i added that in. I'm just wondering if there was someway to do like

If in Corp-A put in groups (1,2) unless already in group (5,6) so once you grant someone a higher rank it realizes that and adding them to the lower group.
MisterMagotchi
Deep Core Mining Inc.
Caldari State
#168 - 2011-11-04 03:32:25 UTC  |  Edited by: MisterMagotchi
As I've mentioned before to others, it's not easy (without more API requests or periodic caching combined with a corporate key, and therefore a lot of changes to the code and how it works) to make it so Directors/CEOs are treated differently than regular users.

For your situation, the only reason I can see this mattering to you is if you have a specific icon for, say, ACME corp and another icon for ACME-Officers, or if you show the group names in front of each person's name. For the icons, it shouldn't be a big deal to have both. For the names, that's a limitation of how this works, I agree, but I don't care. You'll have to not show the name for the officers, shorten one or both names, or live with it. Regarding permissions, it should be no problem to grant everyone in ACME a certain set of common permissions and then grant everyone in ACME-Officers an extra set of permissions to add to or replace the others.
crashchick
Perkone
Caldari State
#169 - 2011-11-09 08:49:23 UTC
Hey all, I installed the scripted and modified the config what i wish but cant get it to run

When i log into the admin site i get

Warning: session_start() [function.session-start]: open(/home/users/web/b1298/ipg.eveowgcom/cgi-bin/tmp/sess_be0264c4b287ca8d34fe847721f5f789, O_RDWR) failed: No such file or directory (2) in /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php on line 5

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php:5) in /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php on line 5

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php:5) in /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php on line 5

Password:

Warning: Unknown: open(/home/users/web/b1298/ipg.eveowgcom/cgi-bin/tmp/sess_be0264c4b287ca8d34fe847721f5f789, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/users/web/b1298/ipg.eveowgcom/cgi-bin/tmp) in Unknown on line 0

any idea?
crashchick
Perkone
Caldari State
#170 - 2011-11-09 20:39:21 UTC
crashchick wrote:
Hey all, I installed the scripted and modified the config what i wish but cant get it to run

When i log into the admin site i get

Warning: session_start() [function.session-start]: open(/home/users/web/b1298/ipg.eveowgcom/cgi-bin/tmp/sess_be0264c4b287ca8d34fe847721f5f789, O_RDWR) failed: No such file or directory (2) in /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php on line 5

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php:5) in /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php on line 5

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php:5) in /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php on line 5

Password:

Warning: Unknown: open(/home/users/web/b1298/ipg.eveowgcom/cgi-bin/tmp/sess_be0264c4b287ca8d34fe847721f5f789, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/users/web/b1298/ipg.eveowgcom/cgi-bin/tmp) in Unknown on line 0

any idea?



nm I got it lol

some how my cgi-bin folder was deleted so created a new one and protect it ^^

epic fail
MisterMagotchi
Deep Core Mining Inc.
Caldari State
#171 - 2011-11-09 21:20:58 UTC
Nice. I'm glad you got it figured out.
Subsparx
Crimson Serpent Syndicate
#172 - 2012-01-05 04:42:47 UTC  |  Edited by: Subsparx
I'm running in to a couple issues myself. The first was an issue with it loading the characters just like the previous person had. I was able to resolve that issue by commenting out the curl code as follows:

Quote:
$api_url = 'https://api.eveonline.com/account/APIKeyInfo.xml.aspx?keyID=' . $_POST['Key_ID'].'&Vcode=' . $_POST['Key_Ver_Code'];
//if (extension_loaded('curl')) {
// $api_handle = curl_init($api_url);
// curl_setopt($api_handle, CURLOPT_RETURNTRANSFER, TRUE);
// if (!($api_xml = curl_exec($api_handle)) or curl_getinfo($api_handle, CURLINFO_HTTP_CODE) != 200) {
// die(json_encode(array('error' => 'Error getting API data from EVE server.')));
// }
// curl_close($api_handle);
//}
//else {
$api_xml = file_get_contents($api_url) or die(json_encode(array('error' => 'Error getting API data from EVE server.')));
//}


Once that was done it correctly pulled up my character list so I'm guessing there was an issue with curl. The next issue occured shortly afterwards. I am getting the error "Error connecting to EVE API server to verify corporation membership. Please try again later." now after hitting register. However if I put in the url manually that it should be generating I can see character info in the XML page including my corporation ID. Any suggestions on how I can modify the code to make this work? I'm guessing it's another curl issue.

EDIT: Confirmed a curl issue. I disabled the module and it started working through the api_xml method. I don't need curl on any other websites so this will work just fine for me.

CEO of Crimson Serpent Syndicate - www.crimsonserpent.com

Chairman of Heiian Conglomerate - www.heiian.com

Owner of FWC - www.factionwarfare.com

Fly
Deep Core Mining Inc.
Caldari State
#173 - 2012-01-22 01:54:41 UTC
I have problems with recieving char lists after entering API Key ID and Verification Code.

Checkbox is disabled with text "Loading. Please wait..."

no errors in errors.txt log :(

Point pls - what have i to check?

TY

P.S. Editing files like posted in previous message didn't help.
Gary Hagon
W.A.R. Inc.
#174 - 2012-01-22 21:33:39 UTC
Magotchi, any chance of adding alliance support?


Some of the alliances in our colation have a TON of corps, so you could see the use of that...

Why not make a simple bool.

333333333 => array(13, 15, 0), //ACORP

0 for corp and 1 for alliance?
MisterMagotchi
Deep Core Mining Inc.
Caldari State
#175 - 2012-01-31 19:56:27 UTC
I'm sorry I haven't been around the forums to help with things lately. Gary: I don't plan to add support for alliances, as that would add an extra HTTP call on each check.

Fly: I don't know if you're still having the problem or if you've moved on, but make sure you check your PHP and web server error logs to see if the problem might be mentioned there. The errors.txt won't show you everything. It's primarily meant for errors in everyday checks once it's up and running.

Again, if people want my attention, they need to email me. I haven't been playing EVE much lately, but I'm still willing to support people on this.