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
Cyerus
Eternal Strife
#801 - 2013-06-02 08:37:23 UTC
Ryanis wrote:
Cyerus wrote:
Easiest way would be to uninstall and then reinstall my mod using AutoMOD. Settings should be preserved, but it shouldn't hurt to create a backup just in case.

Simple google search on "AutoMOD says mod already installed on style" should help you further.


Thank you, it works a lot better.

I have a question about eveapi_cron.php however. Is it link to PHPBB3 cron and so called regularly ?
Also, is it also working with other templates ? I personnaly get the "template->_tpl_load_file(): File ./styles/ca_black/template/eveapi_cron.html does not exist or is empty" error while browsing it with CA Black.

The eveapi_cron.php is not linked to the phpBB cronjob file. You'll have to manually create a cronjob for eveapi_cron.php to run, or do it once in a few days manually.

The mod works with other templates, yes. You'll have to use AutoMOD to install the changes to the new template and clear the forums cache afterwards. Also don't forget to keep the original templates installed (Prosilver / Subsilver2, but can be disabled), as templates from phpBB use inheritence to grab / use files from the original templates if it can't find those files in the new template.

I've just installed CA Black myself without any problems, so I suggest you watch the videos against (6.2.0 Install / Configuration video, start around 34 minutes or so) to see how to do it properly.
Ryanis
First Whisper
#802 - 2013-06-02 10:44:07 UTC
Cyerus wrote:
The eveapi_cron.php is not linked to the phpBB cronjob file. You'll have to manually create a cronjob for eveapi_cron.php to run, or do it once in a few days manually.

The mod works with other templates, yes. You'll have to use AutoMOD to install the changes to the new template and clear the forums cache afterwards. Also don't forget to keep the original templates installed (Prosilver / Subsilver2, but can be disabled), as templates from phpBB use inheritence to grab / use files from the original templates if it can't find those files in the new template.

I've just installed CA Black myself without any problems, so I suggest you watch the videos against (6.2.0 Install / Configuration video, start around 34 minutes or so) to see how to do it properly.


Ok, thank you for the answers. I re-installed the mod watching the video but there is still a small problem with the eveapi_cron page.
Not really a problem though as it is now triggered by a cronjob and works fine with it.

Please keep going with the mod. Thank you again.
Flashman KillerWee
vipers bastards
Warped Intentions
#803 - 2013-06-10 15:44:30 UTC  |  Edited by: Flashman KillerWee
Once again Cyreus.. Great JOB!

One tiny thing though...

If I try and pull up the eveapi_check.php I get a blank page... Checked if I had curl and so on installed and active, and it is...
ILLADEN
Native Freshfood
Minmatar Republic
#804 - 2013-06-13 11:39:44 UTC
Hey Cyreus,


Currently, if you have both a check for Faction Warfare and Corp, and have both set to make default group "Yes", it will make the Faction Warfare group default. Is there a way to make it so that the Corp overrides the FW settings?

Perhaps simply by changing the order the system checks (first FW, then corp). The Faction Warfare group should only be default if the user isn't in one of the listed corps.


Thanks o/
Draugo Rana
Masuat'aa Matari
Ushra'Khan
#805 - 2013-06-14 06:17:40 UTC  |  Edited by: Draugo Rana
ILLADEN wrote:
Hey Cyreus,


Currently, if you have both a check for Faction Warfare and Corp, and have both set to make default group "Yes", it will make the Faction Warfare group default. Is there a way to make it so that the Corp overrides the FW settings?

Perhaps simply by changing the order the system checks (first FW, then corp). The Faction Warfare group should only be default if the user isn't in one of the listed corps.


Thanks o/



Same with Corp/Alliance. Currently, if a member belongs to a corporation within an alliance which have both "Default Group" set to "Yes", the member will have the alliance group set as default. This should be the other way around, the more specific group (corp) should take precedence to the more general one (alliance). So it will be possible to assign default groups to specific corps within the alliance but have other alliance members still have the alliance group set.

Thanks.
Taro Akara
Federal Navy Academy
Gallente Federation
#806 - 2013-06-17 21:55:07 UTC
Hey Cyerus.

First of all - thanks a lot for this great tool set.
Just installed it on a new phpBB instance and thanks to your videos everything works pretty fine.

Have not found sth with the search function and the threat is already pretty big (and I just discovered it), but maybe this was already a topic:

1/ Can I pre define the API key mask - so only a certain mask is allowed? And maybe a link to the API Portal from EvE is generated below that field. (maybe as an idea for tng? (guess already came up, sounds too obvious))

2/ Is there somehow a function to add more chars to one forum account by the user? As many EvE Player having more than one char, even multiple accounts (really?).

Maybe some else implemented it on his own and could share some insights?

Thanks, Taro.
Snitch Ashor
The Mjolnir Bloc
Templis CALSF
#807 - 2013-06-19 14:46:17 UTC
Hi,

I accidentally messed with folder permission resulting in no rights for the avatar/upload folder. A few people which registered have no portrait now, is there a way to refetch missing or all portraits?

Thanks
ILLADEN
Native Freshfood
Minmatar Republic
#808 - 2013-06-20 12:35:03 UTC
Snitch Ashor wrote:
Hi,

I accidentally messed with folder permission resulting in no rights for the avatar/upload folder. A few people which registered have no portrait now, is there a way to refetch missing or all portraits?

Thanks


Just go to the individual accounts and fetch the avatar using the button in profile options.



Meanwhile, I'm having quite an annoying issue. I've moved both my TS server and Query to a new IP on the same box. I've updated the settings, I've even tried to hardcode the info. Sadly EvE API utterly refuses to set any groups on the Teamspeak server.

Are there EvE API TS connect logs? Because if there are, you did a fantastic job at hiding them :P

Any ideas anyone?
Reileen Kawahara
Bio-Tech Research
#809 - 2013-06-22 11:28:10 UTC
Awesome mod but may I ask why all the edited files are not included or am I missing something?
DNLeviathan
Cosmic Monsters
Escape Velocity.
#810 - 2013-06-23 13:55:15 UTC
Reileen Kawahara wrote:
Awesome mod but may I ask why all the edited files are not included or am I missing something?


i was about to ask the exact same thing lol
DNLeviathan
Cosmic Monsters
Escape Velocity.
#811 - 2013-06-27 00:17:01 UTC
is anyone able to provide the edited files for easier installation?
Reileen Kawahara
Bio-Tech Research
#812 - 2013-06-27 12:54:59 UTC
DNLeviathan wrote:
is anyone able to provide the edited files for easier installation?


I kept getting errors, even after editing twice so must have been doing something wrong.

Decided to install SMF instead and use the MOD for that, working OK so far Big smile
Mechao Centrifuge
Baited Sting
#813 - 2013-06-28 03:48:42 UTC  |  Edited by: Mechao Centrifuge
Love the mod, its been very helpful, looking forward to the odyssey update.

I've got a strange issue on my forums that happens when the cron job tries to do api checks. I get a "error 400 bad request" every time and no new members can pass api checks. Im not sure what is causing this as i have reloaded phpbb and all mods involved. The tables are intact from what i can see in MySQL workbench as well. Is anyone else having this problem or is it just me? Any help appreciated.

Thanks in advance.

EDIT: API logs from eve online show "/eve/characterInfo.xml.aspx OK (Authentication Error)" as the result for the api pull. No other errors are occurring from any other pulls.

Is it possible that something got corrupted that I'm unaware of?
ILLADEN
Native Freshfood
Minmatar Republic
#814 - 2013-06-29 11:36:18 UTC
I have been battling this exact same issue.
Backbone666
Sebiestor Tribe
Minmatar Republic
#815 - 2013-06-29 16:30:18 UTC
When I run the cron I have one error

"06-29-2013 17:28:43 Player Name EVE API HTTP error: 403 -> Forbidden"

but then it does nothing :S

I am the mighty Spoonbone! Condenser of spoons!

Cyerus
Eternal Strife
#816 - 2013-06-29 19:26:15 UTC  |  Edited by: Cyerus
Flashman KillerWee wrote:
Once again Cyreus.. Great JOB!

One tiny thing though...

If I try and pull up the eveapi_check.php I get a blank page... Checked if I had curl and so on installed and active, and it is...

I can't do much with a "white page".
It probably means that either the installation went wrong (probably directory permissions) or that the host you are running it on doesn't have the correct PHP extentions installed.

Try using phpBB's 'debug mode' (link) to see if that shines any light on the issues you might be having, and take a look at the eveapi_check.php file to confirm you've got the required extensions up and running.


ILLADEN wrote:
Hey Cyreus,

Currently, if you have both a check for Faction Warfare and Corp, and have both set to make default group "Yes", it will make the Faction Warfare group default. Is there a way to make it so that the Corp overrides the FW settings?

Perhaps simply by changing the order the system checks (first FW, then corp). The Faction Warfare group should only be default if the user isn't in one of the listed corps.

Thanks o/
Draugo Rana wrote:
Same with Corp/Alliance. Currently, if a member belongs to a corporation within an alliance which have both "Default Group" set to "Yes", the member will have the alliance group set as default. This should be the other way around, the more specific group (corp) should take precedence to the more general one (alliance). So it will be possible to assign default groups to specific corps within the alliance but have other alliance members still have the alliance group set.

Thanks.

Make me a list of the preferred order and I'll try to implement it.


Taro Akara wrote:
Hey Cyerus.

First of all - thanks a lot for this great tool set.
Just installed it on a new phpBB instance and thanks to your videos everything works pretty fine.

Have not found sth with the search function and the threat is already pretty big (and I just discovered it), but maybe this was already a topic:

1/ Can I pre define the API key mask - so only a certain mask is allowed? And maybe a link to the API Portal from EvE is generated below that field. (maybe as an idea for tng? (guess already came up, sounds too obvious))

2/ Is there somehow a function to add more chars to one forum account by the user? As many EvE Player having more than one char, even multiple accounts (really?).

Maybe some else implemented it on his own and could share some insights?

Thanks, Taro.

1. Currently not possible, but I'm thinking about including such a feature in the future.
2. Not possible and won't be implemented. The mod will stay one character / one set of API details / one forum account.


ILLADEN wrote:
Meanwhile, I'm having quite an annoying issue. I've moved both my TS server and Query to a new IP on the same box. I've updated the settings, I've even tried to hardcode the info. Sadly EvE API utterly refuses to set any groups on the Teamspeak server.

Are there EvE API TS connect logs? Because if there are, you did a fantastic job at hiding them :P

Any ideas anyone?

Open up includes/eveapi/functions_eveapi.php, find line 140 and remove the // in front of that line.
Whenever saving settings you should see the "Settings saved correctly"-screen appear. At the top of that screen there should be a huge debug message of TS when something went wrong. You only have 2 seconds or so to check out the message, so I suggest doing a quick CTRL + A (select all) and CTRL + C (copy) combo to copy the information before the screen appears, then pasting it in Notepad++ or whatever editor to read it.

You can also paste the full errormessage here for me to look at, but be sure to remove any username/password that it might show.
Cyerus
Eternal Strife
#817 - 2013-06-29 19:46:41 UTC  |  Edited by: Cyerus
Reileen Kawahara wrote:
Awesome mod but may I ask why all the edited files are not included or am I missing something?
DNLeviathan wrote:
is anyone able to provide the edited files for easier installation?

How is AutoMOD not easy? Be sure to watch the videos linked in the second post of this topic to understand the process and to know how easy it is to install this mod.


Reileen Kawahara wrote:
DNLeviathan wrote:
is anyone able to provide the edited files for easier installation?


I kept getting errors, even after editing twice so must have been doing something wrong.

Decided to install SMF instead and use the MOD for that, working OK so far Big smile

Are you using the latest version of phpBB?
Are you using the latest version of the mod?
Are you using any other mods besides mine?
Which errors are you getting?
Draugo Rana
Masuat'aa Matari
Ushra'Khan
#818 - 2013-06-29 20:47:53 UTC
Cyerus wrote:

Make me a list of the preferred order and I'll try to implement it.


The order is from the specific to the more general: Corp -> Alliance -> Militia -> Standings

So if a character is in the corp, which is part of an alliance which is in a militia and all match groups set to default, the group that matches corp will take precedence and be set to the default group.


Thanks!
ILLADEN
Native Freshfood
Minmatar Republic
#819 - 2013-06-29 22:32:07 UTC
Draugo Rana wrote:
Cyerus wrote:

Make me a list of the preferred order and I'll try to implement it.


The order is from the specific to the more general: Corp -> Alliance -> Militia -> Standings



Let me correct that for you:


The order is from the specific to the more general: Corp -> Alliance -> Standings -> Militia
ILLADEN
Native Freshfood
Minmatar Republic
#820 - 2013-06-29 23:36:45 UTC
Cyerus wrote:
[quote=Flashman KillerWee]Once again Cyreus.. Great JOB!

Open up includes/eveapi/functions_eveapi.php, find line 140 and remove the // in front of that line.
Whenever saving settings you should see the "Settings saved correctly"-screen appear. At the top of that screen there should be a huge debug message of TS when something went wrong. You only have 2 seconds or so to check out the message, so I suggest doing a quick CTRL + A (select all) and CTRL + C (copy) combo to copy the information before the screen appears, then pasting it in Notepad++ or whatever editor to read it.

You can also paste the full errormessage here for me to look at, but be sure to remove any username/password that it might show.


Unfortunatley nothing is echoed. It saves settings sucessfully. However, when trying to update a user's profile trough ACP or UCP phpBB returns "Warning - Bad Request".

There is no information in the error.log (server), there is no information in in the phpBB error log. There is no information with debugging enabled (modsec, phpbb and eveapi. There is no information with the extra error logging mod.

I'm confident that If I could see what is triggering the generic error I can resolve it.
Unfortunatly, besides "Warning - Bad Request" there is no detailed information to be found.