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
Andy Tibs
Ministry of War
#481 - 2012-10-19 15:54:23 UTC
Cyerus wrote:
I forgot to include the correct includes->eveapi->Pheal->Pheal.php file into the EVE API 6.1.0 package you've downloaded.

I've just updated the package with the right version of the file, so the people downloading that package now should not run into the problem described above.

To fix the problem described above, follow the steps in the post linked below;
https://forums.eveonline.com/default.aspx?g=posts&m=2059837#post2059837


That fixed the cert issue for me and I can now change the APIs in the admin area. But it seems I still cannot update an API using the eveapi_update.php. Should I have just copied the Pheal.php file or everything from the link you posted?
Tashia Rizti
Deep Core Mining Inc.
Caldari State
#482 - 2012-10-19 16:08:17 UTC  |  Edited by: Tashia Rizti
Cyerus wrote:
RatKnight1 wrote:
I have adjusted for that. This is a random issue. It seems to hit about every 3rd or 4th time the cron job runs.

It just reads that the peeps are not in the assigned corp/alliance.


Reason that happens is the instability of the EVE API servers.
If something goes wrong in the process (like connection lost of wrong data), the script returns false, and false is interpreted as wrong API permissions, hence disabling the account.

I'll be changing the mechanic of that in 6.1.1, if I can come up with an acceptable solution.
If you keep having problems with it, just disable the cronjob and manually run the cronjob script once a day, so you can manually reactivated accounts if it screws up again.


Cyerus, I was reviewing the code and noticed that on aprox line 252 of the eveapi_cron.php file, if the returned error result is set, it disables the accounts, as you set the array key 999 for permission and valid character errors, you could add something like

if(array_key_exists(999,$characterInfo["error"]))

to only disable the account if a non-api error occured? Just a thought, this way the entire board is not disabled when an Eve API error occurs (which happened as a timeout for me last night).
ISuper
State War Academy
Caldari State
#483 - 2012-10-19 16:14:33 UTC
Cyerus wrote:
I forgot to include the correct includes->eveapi->Pheal->Pheal.php file into the EVE API 6.1.0 package you've downloaded.

I've just updated the package with the right version of the file, so the people downloading that package now should not run into the problem described above.

To fix the problem described above, follow the steps in the post linked below;
https://forums.eveonline.com/default.aspx?g=posts&m=2059837#post2059837



I love you man, working like a charm. Good job.
I will start to test jabber soon, be ready ;)
Cyerus
University of Caille
Gallente Federation
#484 - 2012-10-19 16:39:54 UTC  |  Edited by: Cyerus
Andy Tibs wrote:
Cyerus wrote:
I forgot to include the correct includes->eveapi->Pheal->Pheal.php file into the EVE API 6.1.0 package you've downloaded.

I've just updated the package with the right version of the file, so the people downloading that package now should not run into the problem described above.

To fix the problem described above, follow the steps in the post linked below;
https://forums.eveonline.com/default.aspx?g=posts&m=2059837#post2059837


That fixed the cert issue for me and I can now change the APIs in the admin area. But it seems I still cannot update an API using the eveapi_update.php. Should I have just copied the Pheal.php file or everything from the link you posted?


It seems I screwed up putting the package together. I've just updated it so that users who haven't updated yet should not encounter the problem described above.

To fix this problem, follow these steps;

  • Download the new (read: updated) EVE API 6.1.0 package
  • On the forums, uninstall the EVE API MOD using AutoMOD
  • Delete the uninstalled EVE API MOD from the AutoMOD ACP screen
  • Upload the new (read: updated) EVE API AutoMOD zipfile
  • Install the EVE API MOD using AutoMOD
  • Clear forums cache and double check your settings


This should fix it, and apologies for not noticing the outdated files.


Tashia Rizti wrote:
Cyerus, I was reviewing the code and noticed that on aprox line 252 of the eveapi_cron.php file, if the returned error result is set, it disables the accounts, as you set the array key 999 for permission and valid character errors, you could add something like

if(array_key_exists(999,$characterInfo["error"]))

to only disable the account if a non-api error occured? Just a thought, this way the entire board is not disabled when an Eve API error occurs (which happened as a timeout for me last night).


Unfortunately it's a bit trickier than that.
I'll have to do some research on what error codes Pheal gives me when not being able to contact the API servers and/or receiving glitched information.
For now, just run the cronjob manually so that you can respond to errors by activation disabled accounts if needed.


ISuper wrote:
I love you man, working like a charm. Good job.
I will start to test jabber soon, be ready ;)


I'm happy that you finally managed to get it working.
I'll grab some multi-vitamine drinks and a batch of cookies, and I'll be ready to respond to any issues you might be having with that.
Although I should say that it might be best to wait until I have time to record and upload a video describing it's configuration and usability.
Andy Tibs
Ministry of War
#485 - 2012-10-19 17:04:05 UTC
Cyerus, that did the trick and it seems to be working perfectly now. Thanks for the quick replies and keep up the awesome work on this mod! Smile
Cyerus
University of Caille
Gallente Federation
#486 - 2012-10-19 17:28:57 UTC
Andy Tibs wrote:
Cyerus, that did the trick and it seems to be working perfectly now. Thanks for the quick replies and keep up the awesome work on this mod! Smile


No problem, but I'm going to drink some beer and have some fun in a local bar tonight, so don't expect any other quick reply Bear
Suleiman Shouaa
The Tuskers
The Tuskers Co.
#487 - 2012-10-20 14:00:13 UTC
Hey thanks for the update.

I've updated to 6.1.0 but I still am unable to register new accounts using a modified default forum theme. Error that comes up is "The value you entered is too short.".

It doesn't come up when I use the prosilver theme. I've edited the appropriate style files with the edits in the install.xml file provided in the AUTOMOD zip file and have double & triple checked them.

Any suggestions on what I have yet to do?
Cyerus
University of Caille
Gallente Federation
#488 - 2012-10-20 15:46:37 UTC
Suleiman Shouaa wrote:
Hey thanks for the update.

I've updated to 6.1.0 but I still am unable to register new accounts using a modified default forum theme. Error that comes up is "The value you entered is too short.".

It doesn't come up when I use the prosilver theme. I've edited the appropriate style files with the edits in the install.xml file provided in the AUTOMOD zip file and have double & triple checked them.

Any suggestions on what I have yet to do?


It's either that you have to clear the forums cache (and your browsers cache helps sometimes too) ro you did something wrong with the editing of your theme.
eidenjunior
Perkone
Caldari State
#489 - 2012-10-20 18:41:26 UTC
I am trying to update the mod and the auto mod found 2 errors
Can't find, in "includes/acp/acp_users.php"
Quote:
'USER_WARNINGS' => $user_row['user_warnings'],
'USER_POSTS' => $user_row['user_posts'],
'USER_INACTIVE_REASON' => $inactive_reason,

correct is
Quote:
'USER_WARNINGS' => $user_row['user_warnings'],
'USER_POSTS' => $user_row['user_posts'],
'USER_HAS_POSTS' => $user_row['user_has_posts'],
'USER_INACTIVE_REASON' => $inactive_reason,


and when removing the old version i got this error: in "styles/ca_black/template/overall_header.html"
The Find specified by the MOD could not be found:(can't post all do to the forum not allowing html code in the post)
Quote:

....{T_THEME_PATH}/eveapi_fitting.css"....
...{T_SUPER_TEMPLATE_PATH}/eveapi_fitting.js....





I take that thos 2 lines are the reason the api fitting don't work. with my style
Cyerus
University of Caille
Gallente Federation
#490 - 2012-10-20 18:50:48 UTC
eidenjunior wrote:
I am trying to update the mod and the auto mod found 2 errors
Can't find, in "includes/acp/acp_users.php"
Quote:
'USER_WARNINGS' => $user_row['user_warnings'],
'USER_POSTS' => $user_row['user_posts'],
'USER_INACTIVE_REASON' => $inactive_reason,

correct is
Quote:
'USER_WARNINGS' => $user_row['user_warnings'],
'USER_POSTS' => $user_row['user_posts'],
'USER_HAS_POSTS' => $user_row['user_has_posts'],
'USER_INACTIVE_REASON' => $inactive_reason,


and when removing the old version i got this error: in "styles/ca_black/template/overall_header.html"
The Find specified by the MOD could not be found:(can't post all do to the forum not allowing html code in the post)
Quote:

....{T_THEME_PATH}/eveapi_fitting.css"....
...{T_SUPER_TEMPLATE_PATH}/eveapi_fitting.js....


I take that thos 2 lines are the reason the api fitting don't work. with my style


The top error is because you seem to be trying to install EVE API MOD 6.0.x on phpBB 3.0.11.
To fix, install and use EVE API MOD 6.1.0.


The bottom error is the one preventing the fittings from showing up correctly.
I'm not sure why you are trying to directly install the changes meant for ProSilver into your own template?
AutoMOD has a nice feature for this in the ACP.

Please read the solution to Problem 2 in this post; https://forums.eveonline.com/default.aspx?g=posts&m=2064391#post2064391
eidenjunior
Perkone
Caldari State
#491 - 2012-10-20 19:14:57 UTC
Cyerus wrote:

The top error is because you seem to be trying to install EVE API MOD 6.0.x on phpBB 3.0.11.
To fix, install and use EVE API MOD 6.1.0.


The bottom error is the one preventing the fittings from showing up correctly.
I'm not sure why you are trying to directly install the changes meant for ProSilver into your own template?
AutoMOD has a nice feature for this in the ACP.

Please read the solution to Problem 2 in this post; https://forums.eveonline.com/default.aspx?g=posts&m=2064391#post2064391


correct, it was that I hadn't deletet the old EVE API MOD 6.0.x when I was trying to install the 6.1.0.

6.1.0 seems to have corrected the overall_header update to other styles too. I ran the style install again and this time the fitting works too.
RatKnight1
KarmaFleet
Goonswarm Federation
#492 - 2012-10-23 20:37:55 UTC
Still having the issue with the TS3 UID not inputting into the database... I am assuming it has to be something on the database side. Are there any odd requirements for apache that I should make sure are in the build?

Thanks! Looking great!
Aron Fox
Tranquillian Imperial Navy
#493 - 2012-10-24 03:34:26 UTC
So far it looks good. Great job.

Suggestion:
A master Immune switch to enable disable that all groups that isnt allready assigned to the API that they are immune automatically.
Aron Fox
Tranquillian Imperial Navy
#494 - 2012-10-26 02:50:59 UTC
are you suppose to set up the cronjob file manually to your servers cronjobs or does that work on its own?
Jake Mantor
The Scope
Gallente Federation
#495 - 2012-10-26 12:00:27 UTC  |  Edited by: Jake Mantor
Im having a problem with the fitting option on the forum.

The ship fitting is showing up underneath the actual load-out picture


[evefit][Hound, ]
Co-Processor II
Ballistic Control System II
Ballistic Control System II

1MN Microwarpdrive II
Partial Weapon Navigation
Partial Weapon Navigation

Torpedo Launcher II
Torpedo Launcher II
Torpedo Launcher II
Covert Ops Cloaking Device II
Bomb Launcher I

Small Bay Loading Accelerator I
Small Warhead Calefaction Catalyst I[/evefit]

thats the text im posting in

http://postimage.org/image/l87wa6fzr/

Edit: the eve fit works when prosilver is the default style.. how can i get it to work with my style, lucid lime? when i try to apply the auto mod mods that were done to prosilver to Lucid lime i get 2 successes and a bunch of cannot edit that file because lucid lime is is based on prosilver...
ISuper
State War Academy
Caldari State
#496 - 2012-10-28 10:07:53 UTC  |  Edited by: ISuper
Hi, every run eveapi_cron.php i have >= 5 users blocked with the reason `Invalid EVE API key.`
But they have a good API's, and then i need to activate them from User management.
Is there any fix for that problem? Thanx.
4nouke
Shadow State
Goonswarm Federation
#497 - 2012-10-29 00:05:11 UTC  |  Edited by: 4nouke
TY TY TY for the update. It gave me a bit of "attitude" with the installation which is what was posted here and subsequently removed, but so far so good.

You're the best!
eidenjunior
Perkone
Caldari State
#498 - 2012-10-29 10:56:22 UTC
Jake Mantor wrote:
Im having a problem with the fitting option on the forum.

The ship fitting is showing up underneath the actual load-out picture

.....
Edit: the eve fit works when prosilver is the default style.. how can i get it to work with my style, lucid lime? when i try to apply the auto mod mods that were done to prosilver to Lucid lime i get 2 successes and a bunch of cannot edit that file because lucid lime is is based on prosilver...


Download the 6.1.0
Uninstall the mod from AutoMod, and delete it via the AutoMod.
Upload and install the 6.1.0 version.
Run the template installation.
If you haven't already upload the files in the rar under "\upload\styles\prosilver"(2 folders/3 files) to what your style is named.
4nouke
Shadow State
Goonswarm Federation
#499 - 2012-10-29 14:16:40 UTC
OK, so apparently I spoke too soon. Sad

Still the excellent mod as I said, but when the cron ran, it removed all the groups associated with the member except for the one corresponding to their respective corps as identified in the Corporations window. All the user-defined groups are identified as special groups and were set to 'immune [no]' as suggested in the video. Also, it recognizes the Alliance Name but doesn't add the group associated with it.

Help here would be greatly appreciated!



On a side note, on the fitting wheel, would you possibly be able to add the number of each drone required in brackets beside the name 'on hover'?
Zev Zala
Scrub Fleet
#500 - 2012-10-29 23:35:49 UTC
Having a small issue when I change the Forum Style, the EVE API KeyID & EVE API Verification Code input boxes does not show up when trying to register for an account, or if they try to update there api info via User Control Panel>Profile>Edit account settings. May I have assistance please :)