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
Phoenix BlackThunder
Viziam
Amarr Empire
#561 - 2012-11-24 22:46:20 UTC
I have a small issue, When i try to add eveitem in my post. They appear as normal text, i mean i cannot open them in in-game.

For example:

i click on eveitem button, The tag are placed. I place item name in between them. But when i post it just shows item name only. not click able. Like it suppose to.

i have installed according to your video on youtube.
Cyerus
University of Caille
Gallente Federation
#562 - 2012-11-24 23:57:01 UTC
Phoenix BlackThunder wrote:
I have a small issue, When i try to add eveitem in my post. They appear as normal text, i mean i cannot open them in in-game.

For example:

i click on eveitem button, The tag are placed. I place item name in between them. But when i post it just shows item name only. not click able. Like it suppose to.

i have installed according to your video on youtube.


Then your item is not recognized, most likely misspelled.
Abdool
Sebiestor Tribe
Minmatar Republic
#563 - 2012-11-25 00:19:50 UTC  |  Edited by: Abdool
Abdool wrote:
http://phpbbandbbcodes.com/viewtopic.php?f=7&t=945
Following the tutorial I've got the cron job to work using the custom PHPBB style.
BUT
The registration page for new users no longer includes the EVE API information for first registration.
ugh.

I've been asked by AutoMOD to edit the contents of 6 files:

overall_footer.html
overall_header.html
posting_buttons.html
ucp_profile_reg_details.html
ucp_register.html
ucp_avatar_options.html (ERROR: file not found)

Any suggestions?
I'm wondering at this point if I should try a different sytle (is this style immune to conforming to your mod?)
It's based on SUBSILVER and not PROSILVER ... does that have any bearing on my difficulties?


On a hunch I decided to choose a different theme. One based on a PROSILVER style.
Guess what? AutoMOD patched it without any errors, now the CRON works OK and the registration page works OK.
Might be worth it to include this FAQ documentation ...
Problem solved. \o/ yay!
Phoenix BlackThunder
Viziam
Amarr Empire
#564 - 2012-11-25 11:28:14 UTC
Cyerus wrote:
Phoenix BlackThunder wrote:
I have a small issue, When i try to add eveitem in my post. They appear as normal text, i mean i cannot open them in in-game.

For example:

i click on eveitem button, The tag are placed. I place item name in between them. But when i post it just shows item name only. not click able. Like it suppose to.

i have installed according to your video on youtube.


Then your item is not recognized, most likely misspelled.


I am sure that spellings are correct. ""Cap Recharger I".
eidenjunior
Perkone
Caldari State
#565 - 2012-11-25 13:34:15 UTC
Phoenix BlackThunder wrote:
[quote=Cyerus]

I am sure that spellings are correct. ""Cap Recharger I".


It works for me with "Cap Recharger I". so it have to be something localy at you setup.
Edney
Sebiestor Tribe
Minmatar Republic
#566 - 2012-11-26 22:37:13 UTC
Great MOD, thank you very much for doing it. I have a very quick question. On the new user registration page I have figured out how to change the text against username to say something like "Your user name must match Eve character name", but I would also like to add a line under the api entry saying something like "get you api key here... Your api key must contain Corp Info....."

How can I add that line in?

Thanks,
Ed.
Faldal Dartan
Sebiestor Tribe
Minmatar Republic
#567 - 2012-11-27 20:55:16 UTC
When I open the "eveapi_cron.php" I am getting these error messages on the top of the window:

Quote:
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 93: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 118: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 93: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 118: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 93: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 118: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 93: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 118: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 93: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 118: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 93: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 118: Invalid argument supplied for foreach()


Everything is working fine but I am still wondering where this comes from as it just appeared out of nowhere.
real spacer
PANIC at the Mining Field
#568 - 2012-11-28 03:14:44 UTC
When I click yes to install I get a server error when it attempts to run the PHP commands.


Any way to do the database inserts manually via phpMyAdmin?
Phoenix BlackThunder
Viziam
Amarr Empire
#569 - 2012-11-28 12:22:41 UTC  |  Edited by: Phoenix BlackThunder
Today i tried to fresh install the EVE api mod, But after clicking the install button for EVE Api mod, it shows blank page. Nothing happens.

what could be the issue?
Peter Powers
Terrorists of Dimensions
#570 - 2012-11-30 14:56:53 UTC
a few issues:

a)
includes/eveapi/functions_evapi.php Line 71:
check if the key is set before accessing it, will give one less warning

b)
during the registration process it should display a link for creating the api keys with a preset that allows to register
also it would be nice if you could configure that stuff at some place, its kind of annoying that people have to go for factional warfare rights to use the forum of someone not involved in that


c)
your check for CharacterInfo rights is only successful on public-CharacterInfo, but if private CharacterInfo is enabled (without public) it fails - thats not really making sense.

3rdPartyEve.net - your catalogue for 3rd party applications

TDS1-6 Kaptur
KarmaFleet
Goonswarm Federation
#571 - 2012-12-01 05:24:16 UTC
Really good mod.
Just need some help with somethings to make sure that i have done them right.
it's the only one that worked for me, how ever i need some help with teamspeak, i can't find the server querys, (is it tools-serverquery login?) if it is then when i put it into the settings for ts nothing happens, also i need help when it comes to getting the unique id key to work, mine just disappears and won't show up after i clicked submit and the page reloaded, i got the api keys working after some playing around, so that works.

Now how do i connect to me ts3 server, i know how, to connect, i'm trying to ask how do i make it so the mod reads the servers ip, when it's running off of a different pc and using no-ip.

thanks for the help in advance

TD
Abdool
Sebiestor Tribe
Minmatar Republic
#572 - 2012-12-01 16:44:20 UTC  |  Edited by: Abdool
Reoccuring issue #1
Users losing access to forums ... seemingly at random.

symptoms:

- Member joins forums, passes API check with minimum CAK, 8388672
- Member successfully moved into 'Alliance member' group
- When autoAPI CRONJOB is run user is removed from Alliance member group
- title of 'Invalid EVE API key.' applied to account

facts:

- When autoAPI script is run manually, user is NOT removed from alliance member group
- when I click on user account and resubmit (check) their API, it comes back green lit
- The format of their API is the following: http://www.bc-f.info/images/forums/forums_api_example.jpg
- All custom groups are 'special' and immune is enabled under EVE API general settings

CONFIRMED CAUSE

- In the CAK settings, Character : must be the character you're registering on forums, NOT ALL.
- Selecting ALL will allow you to register, but when the forums security CronJob runs the API will fail and the user will be made inactive.

2nd reoccuring issue:
This is a BUG because I found a workaround ...

When I insert a new (working) vCode into a users' account to replace an old vCode and submit, I get the greenlit "Information User details updated." message, but when I click back the vCode data is not saved. The keyID is not changed as I had clicked the 'generate' button inside the CAK customization area ...

- If I change the email account and submit with the new API key the changes to the email are saved, but the vCode remains unchanged
- If I create a whole new CAK from scratch which includes a new keyID AND vCode - and submit, the update works and both keyID and vCODE are replaced with the updates.
TDS1-6 Kaptur
KarmaFleet
Goonswarm Federation
#573 - 2012-12-01 17:17:32 UTC
i keep getting this error now, i have no clue what is going on.
here is the error:
General Error
SQL ERROR [ mysqli ]

MySQL server has gone away [2006]

SQL

UPDATE phpbb_users SET username = 'Powerful Trixie', username_clean = 'powerful trixie', user_email = 'powerfultrixie@equestrialliance.bugs3.com', user_email_hash = '5512941841', user_password = '$H$9IZKpTWYUslPAGBWDVjYtgPjtUP7mW1', user_passchg = 0, eveapi_keyid = '1533176', eveapi_vcode = 'MWy9qwZhkK2mrfM43mTgujDwtRSsyX6yJDHIqWhseBNcbeEHE3JmcuAKBczfwucv', eveapi_ts = '' WHERE user_id = 2

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/includes/db/dbal.php
LINE: 757
CALL: trigger_error()

FILE: [ROOT]/includes/db/mysqli.php
LINE: 182
CALL: dbal->sql_error()

FILE: [ROOT]/includes/ucp/ucp_profile.php
LINE: 288
CALL: dbal_mysqli->sql_query()

FILE: [ROOT]/includes/functions_module.php
LINE: 507
CALL: ucp_profile->main()

FILE: [ROOT]/ucp.php
LINE: 333
CALL: p_master->load_active()
Abdool
Sebiestor Tribe
Minmatar Republic
#574 - 2012-12-03 16:20:40 UTC
Peter Powers wrote:
a few issues:
b)
during the registration process it should display a link for creating the api keys with a preset that allows to register


This may be a helpful workaround for you. Look up the file:
/languages/en/ucp.php

I stripped out all the information in the top section labeled "// Privacy policy and T&C" and replaced it with an img url that links to the custom CAK mask. Example: http://bc-f.info/forums/ucp.php?mode=register
Cyerus
University of Caille
Gallente Federation
#575 - 2012-12-06 01:59:45 UTC  |  Edited by: Cyerus
eidenjunior wrote:
Phoenix BlackThunder wrote:
I am sure that spellings are correct. ""Cap Recharger I".


It works for me with "Cap Recharger I". so it have to be something localy at you setup.

No problem here either, must be something about your installation / configuration.
Try to set up a test forum with the mod enabled and see if the same thing occurs.


Edney wrote:
Great MOD, thank you very much for doing it. I have a very quick question. On the new user registration page I have figured out how to change the text against username to say something like "Your user name must match Eve character name", but I would also like to add a line under the api entry saying something like "get you api key here... Your api key must contain Corp Info....."

How can I add that line in?

Thanks,
Ed.

Version 6.1.2, released in a few moments, will have a link to the API page build into the Registration page.


Faldal Dartan wrote:
When I open the "eveapi_cron.php" I am getting these error messages on the top of the window:

Quote:
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 93: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 118: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 93: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 118: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 93: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 118: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 93: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 118: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 93: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 118: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 93: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/eveapi/functions_eveapi.php on line 118: Invalid argument supplied for foreach()


Everything is working fine but I am still wondering where this comes from as it just appeared out of nowhere.

I think I've fixed that bug in version 6.1.2, let me know if it still persists.
I happened when you have enabled TeamSpeak integration while the user isn't allowed to join any TeamSpeak group, resulting in a null value.
Cyerus
University of Caille
Gallente Federation
#576 - 2012-12-06 02:09:06 UTC  |  Edited by: Cyerus
real spacer wrote:
When I click yes to install I get a server error when it attempts to run the PHP commands.

Any way to do the database inserts manually via phpMyAdmin?

Phoenix BlackThunder wrote:
Today i tried to fresh install the EVE api mod, But after clicking the install button for EVE Api mod, it shows blank page. Nothing happens.

what could be the issue?

Have you enabled the PHP extension Zip? You might as well check if the PHP extensions cURL and SimpleXML are enabled aswell.


Peter Powers wrote:
a few issues:

a)
includes/eveapi/functions_evapi.php Line 71:
check if the key is set before accessing it, will give one less warning

b)
during the registration process it should display a link for creating the api keys with a preset that allows to register
also it would be nice if you could configure that stuff at some place, its kind of annoying that people have to go for factional warfare rights to use the forum of someone not involved in that


c)
your check for CharacterInfo rights is only successful on public-CharacterInfo, but if private CharacterInfo is enabled (without public) it fails - thats not really making sense.

a) Hopefully fixed in version 6.1.2
b) Implemented on the Register page, also changed the script to allow non-FacWarStats API keys when the Faction Warfare-masterswitch is disabled.
c) Implemented. Both Public and Private are now supported.


TDS1-6 Kaptur wrote:
Really good mod.
Just need some help with somethings to make sure that i have done them right.
it's the only one that worked for me, how ever i need some help with teamspeak, i can't find the server querys, (is it tools-serverquery login?) if it is then when i put it into the settings for ts nothing happens, also i need help when it comes to getting the unique id key to work, mine just disappears and won't show up after i clicked submit and the page reloaded, i got the api keys working after some playing around, so that works.

Now how do i connect to me ts3 server, i know how, to connect, i'm trying to ask how do i make it so the mod reads the servers ip, when it's running off of a different pc and using no-ip.

thanks for the help in advance

TD

Server Query is the name of the console the TeamSpeak API can use to communicate with the TeamSpeak server, it runs by default on port 10011.
I'm pretty sure the TeamSpeak 3 PHP Framework I'm using only supports IP-addresses and not hostnames, however it's relatively easy to figure out what the IP address is of your TeamSpeak server.
Try this website for example.


TDS1-6 Kaptur wrote:
i keep getting this error now, i have no clue what is going on.
here is the error:
General Error
SQL ERROR [ mysqli ]

MySQL server has gone away [2006]

Sounds like the MySQL server has disconnected, you should contact your webhost.
Cyerus
University of Caille
Gallente Federation
#577 - 2012-12-06 02:23:31 UTC  |  Edited by: Cyerus
Abdool wrote:
Reoccuring issue #1
Users losing access to forums ... seemingly at random.

symptoms:

- Member joins forums, passes API check with minimum CAK, 8388672
- Member successfully moved into 'Alliance member' group
- When autoAPI CRONJOB is run user is removed from Alliance member group
- title of 'Invalid EVE API key.' applied to account

facts:

- When autoAPI script is run manually, user is NOT removed from alliance member group
- when I click on user account and resubmit (check) their API, it comes back green lit
- The format of their API is the following: http://www.bc-f.info/images/forums/forums_api_example.jpg
- All custom groups are 'special' and immune is enabled under EVE API general settings

CONFIRMED CAUSE

- In the CAK settings, Character : must be the character you're registering on forums, NOT ALL.
- Selecting ALL will allow you to register, but when the forums security CronJob runs the API will fail and the user will be made inactive.

2nd reoccuring issue:
This is a BUG because I found a workaround ...

When I insert a new (working) vCode into a users' account to replace an old vCode and submit, I get the greenlit "Information User details updated." message, but when I click back the vCode data is not saved. The keyID is not changed as I had clicked the 'generate' button inside the CAK customization area ...

- If I change the email account and submit with the new API key the changes to the email are saved, but the vCode remains unchanged
- If I create a whole new CAK from scratch which includes a new keyID AND vCode - and submit, the update works and both keyID and vCODE are replaced with the updates.

I'm not having any of the problems you are describing.
Are you sure you are using the latest version?

This MOD supports keys set for both Character or All, whereas by All it searches through the list of characters trying to find the character with the same name as the user's forum account.

If the eveapi_cron.php script is disabling accounts when run automaticly (set as a cronjob), it'll have to do with the way you implemented this on your webhost. Most probable reason is that it tries to run directly from the cronjob console, resulting in errors since the script is meant to be run as a webpage. So in short that means you'll have to access the script using wget http://website.com/forum/eveapi_cron.php, where wget's output html file can be used as a logfile.

I've also tested updating of API information using the UserCP and AdminCP without any problems.

If you are using a different template, would you mind testing it on the default ProSilver template?





Hereby I'm releasing version 6.1.2


  • Fixed a small bug resulting in error messages when no TeamSpeak group was assigned to users while TeamSpeak integration was enabled.
  • More logical validation for accessMasks, mainly allowing users to register if they haven't selected FacWarStats when the Faction Warfare-masterswitch isn't enabled on the forum.
  • The above change also implements support for both the Public and Private version of the CharacterInfo API page.
  • Added API Key creation hyperlink to the register page.
  • Added hyperlink for eveapi_update.php to the loginpage.


Default update instructions apply, and don't forget to clear your cache.

Download can be found in the first post of this topic as usual.
Let me know if you come across any other issues.
MrBubbles V
Center for Advanced Studies
Gallente Federation
#578 - 2012-12-06 19:29:56 UTC
I've set up a new forum and installed this mod.
when ever i try to register a new user or add the api key to an exisiting account i get a red message saying "Invalid characterID.". the api key is working tho.
any ideas?
ISuper
State War Academy
Caldari State
#579 - 2012-12-08 02:48:42 UTC
Cyerus, great job!

I think you need to renew your update manual for 6.xx to 6.xx. I didn't understand what i have to do with the old automod for example.
James Auscent
The Sneezy Syndicate
#580 - 2012-12-08 04:37:37 UTC
Just downloaded and installed everything following the instructions in the video. I seem to be missing a file though. It didn't seem to come with the package I downloaded.

[phpBB Debug] PHP Warning: in file [ROOT]/common.php on line 125: require(.//includes/eveapi/functions_eveapi.php) [function.require]: failed to open stream: No such file or directory

Fatal error: require() [function.require]: Failed opening required './/includes/eveapi/functions_eveapi.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/00/10171900/html/imac/common.php on line 125