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
Brain Gehirn
Macabre Votum
Northern Coalition.
#361 - 2012-09-04 11:58:24 UTC
Like this one:

[evefit]
[Drake, HAM DREIKI]
Ballistic Control System II
Ballistic Control System II
Nanofiber Internal Structure II
Damage Control II

Experimental 10MN Afterburner I
Limited 'Anointed' EM Ward Field
Adaptive Invulnerability Field II
Adaptive Invulnerability Field II
J5 Prototype Warp Disruptor I
Large F-S9 Regolith Shield Induction

Heavy Assault Missile Launcher II, Scourge Rage Assault Missile
Heavy Assault Missile Launcher II, Scourge Rage Assault Missile
Heavy Assault Missile Launcher II, Scourge Rage Assault Missile
Heavy Assault Missile Launcher II, Scourge Rage Assault Missile
Heavy Assault Missile Launcher II, Scourge Rage Assault Missile
Heavy Assault Missile Launcher II, Scourge Rage Assault Missile
Heavy Assault Missile Launcher II, Scourge Rage Assault Missile

Medium Rocket Fuel Cache Partition I
Medium Rocket Fuel Cache Partition I
Medium Hydraulic Bay Thrusters I

Hornet EC-300 x5
[/evefit]
AzAkiR NaLDa
Council of Exiles
Brave Collective
#362 - 2012-09-04 12:36:56 UTC  |  Edited by: AzAkiR NaLDa
I tried your drake fitting but even that is not working. No module images show up and it doesn't recognize the names. Could it be a database related issue

Lone Star Warrior

Khi3l
The Phoenix Revival
#363 - 2012-09-04 14:43:33 UTC  |  Edited by: Khi3l
AzAkiR NaLDa wrote:
I tried your drake fitting but even that is not working. No module images show up and it doesn't recognize the names. Could it be a database related issue


Same issue here, even with prosilver template.

EDIT : ok, fixed one thing but drones still not displayed :

Try this :

Quote:
[evefit][Drake, HAM DREIKI]
Ballistic Control System II
Ballistic Control System II
Nanofiber Internal Structure II
Damage Control II

Experimental 10MN Afterburner I
Limited 'Anointed' EM Ward Field
Adaptive Invulnerability Field II
Adaptive Invulnerability Field II
J5 Prototype Warp Disruptor I
Large F-S9 Regolith Shield Induction

Heavy Assault Missile Launcher II, Scourge Rage Assault Missile
Heavy Assault Missile Launcher II, Scourge Rage Assault Missile
Heavy Assault Missile Launcher II, Scourge Rage Assault Missile
Heavy Assault Missile Launcher II, Scourge Rage Assault Missile
Heavy Assault Missile Launcher II, Scourge Rage Assault Missile
Heavy Assault Missile Launcher II, Scourge Rage Assault Missile
Heavy Assault Missile Launcher II, Scourge Rage Assault Missile

Medium Rocket Fuel Cache Partition I
Medium Rocket Fuel Cache Partition I
Medium Hydraulic Bay Thrusters I

Hornet EC-300 x5[/evefit]
AzAkiR NaLDa
Council of Exiles
Brave Collective
#364 - 2012-09-04 15:56:50 UTC  |  Edited by: AzAkiR NaLDa
nothing i try works, this is what i get ;

http://img209.imageshack.us/img209/9513/checkthisout.jpg

and @ khi3l what did you do to fix it?

I'll be retrying on a fresh install

Lone Star Warrior

AzAkiR NaLDa
Council of Exiles
Brave Collective
#365 - 2012-09-04 19:16:10 UTC
a fresh reinstall did it.

managed to get it working now :)

great tool overall once its working

Lone Star Warrior

Carmen Wilson
The Scope
Gallente Federation
#366 - 2012-09-04 20:11:03 UTC
error when installing a mod for phpBB 3.0.11
AzAkiR NaLDa
Council of Exiles
Brave Collective
#367 - 2012-09-04 20:32:15 UTC
Carmen Wilson wrote:
error when installing a mod for phpBB 3.0.11


thats because it is for phpbb 3.0.10

and when ever members try to register it returns a error:

the value you entered is too short.

everything else is working so i think its something not working in the check up system?

what could this be?

Lone Star Warrior

Brain Gehirn
Macabre Votum
Northern Coalition.
#368 - 2012-09-04 20:41:08 UTC
You need to fill the api fields. This error is the validation of those fields.

With 3.0.11 I got some errors that you can avoid doing some manually editing at the configuration file that holds all the code info and updating what is different. But I dunno if that will work okey after this (probably will).
AzAkiR NaLDa
Council of Exiles
Brave Collective
#369 - 2012-09-04 21:25:12 UTC
Brain Gehirn wrote:
You need to fill the api fields. This error is the validation of those fields.

With 3.0.11 I got some errors that you can avoid doing some manually editing at the configuration file that holds all the code info and updating what is different. But I dunno if that will work okey after this (probably will).

I gives this message when API fields are filled in

Lone Star Warrior

Brain Gehirn
Macabre Votum
Northern Coalition.
#370 - 2012-09-04 21:41:15 UTC
If they have valid data I just dunno what else can be :(
Derp Teknick
AirHogs
Hogs Collective
#371 - 2012-09-04 22:05:40 UTC
.

.

Khi3l
The Phoenix Revival
#372 - 2012-09-05 13:42:59 UTC
Looks like i've fixed my issue with drones display.

The final evefit code looks like this :

Quote:
[evefit][Drake, Drake fit]
Damage Control II
Nanofiber Internal Structure II
Ballistic Control System II
Ballistic Control System II

Experimental 10MN Afterburner I
J5 Prototype Warp Disruptor I
Adaptive Invulnerability Field II
Adaptive Invulnerability Field II
Limited 'Anointed' EM Ward Field
Large Shield Extender II

Heavy Assault Missile Launcher II, Scourge Rage Assault Missile
Heavy Assault Missile Launcher II, Scourge Rage Assault Missile
Heavy Assault Missile Launcher II, Scourge Rage Assault Missile
Heavy Assault Missile Launcher II, Scourge Rage Assault Missile
Heavy Assault Missile Launcher II, Scourge Rage Assault Missile
Heavy Assault Missile Launcher II, Scourge Rage Assault Missile
Heavy Assault Missile Launcher II, Scourge Rage Assault Missile

Medium Rocket Fuel Cache Partition I
Medium Rocket Fuel Cache Partition I
Medium Hydraulic Bay Thrusters I


Hornet EC-300 x5[/evefit]


If i delete a space before drones, they aren't displayed.

Note that the EFT export in pyfa doesn't export the fitting exacttly like this, i don't know if EFT does...
AzAkiR NaLDa
Council of Exiles
Brave Collective
#373 - 2012-09-05 16:01:28 UTC  |  Edited by: AzAkiR NaLDa
the data is valid cause if i try to register a alt of mine its not working either. and api data is correct. i guess ill go through the mod files see if i can find some sort of required access mask

Edit: think I found the error I'll let you know if it did the trick.

Edit 2: seems that as soon that you try to edit the registration page to link for example the API pages the entire mod hugs out and stops recognizing the API keys.

Lone Star Warrior

Khi3l
The Phoenix Revival
#374 - 2012-09-05 20:50:27 UTC
Is there any plan to add those features ?

- a way to add API Key as many as we want for the same forum profil (for second, third, etc EVE accounts) ?
- a list of characters on those accounts in main character profil.

Sorry for my bad english, i don't know if i explain very wel what i want :)
Cyerus
University of Caille
Gallente Federation
#375 - 2012-09-06 00:42:53 UTC  |  Edited by: Cyerus
For all the people having problems with the fitting display BBcode, try to do the following:


  1. In EFT open any fitting of any ship that is still accessable in the game.
  2. Be sure that the ship you have selected has it's drone bay filled with drones (if it can hold any).
  3. Open up the fitting settings menu, by clicking on the downwards-aimed arrow next to the ship-icon.
  4. From that menu, select Copy to Clipboard.
  5. Now open up your forum, and make a new topic and/or post.
  6. Click on the EVE Fitting button. You should see the opening and closing [evefit] tag appear.
  7. A blinking cursor should be right between opening and closing tag, making it easy to paste your fitting. Do this either by pressing CTRL+V or by rightclicking directly onto the blinking cursor and selecting paste from the new menu.
  8. Either write some text outside of the tags for clarification and information, and when done selected post or save to make it final.
  9. You should now be brought back to your own topic / post and seeing your fitting being parsed correctly.


Example of a correct fitting;
[evefit][Basilisk, Basilisk - 4-2]
Power Diagnostic System II
Damage Control II

Adaptive Invulnerability Field II
Adaptive Invulnerability Field II
EM Ward Field II
Large Shield Extender II
10MN Afterburner II

Large S95a Partial Shield Transporter
Large S95a Partial Shield Transporter
Large S95a Partial Shield Transporter
Large S95a Partial Shield Transporter
Large Energy Transfer Array II
Large Energy Transfer Array II

Medium Core Defense Field Extender I
Medium Ancillary Current Router I


Light Shield Maintenance Bot II x5
[/evefit]

Some extra information can be posted here, or another fitting if you like.
For example that this fitting has XXX EHP and 500 dps with no tracking at all..
Countless possibilities.


Khi3l wrote:
Is there any plan to add those features ?

- a way to add API Key as many as we want for the same forum profil (for second, third, etc EVE accounts) ?
- a list of characters on those accounts in main character profil.

Sorry for my bad english, i don't know if i explain very wel what i want :)


I'm not planning to include the ability of having multiple API keys on one forum account, since I don't see the point on why you would want this.
For each account's API details are connected to that accounts username (being the charactername), and allowing for multiple API details will make it unnecessarily complicated.



I'm still working on a release for phpBB 3.0.11.
I have to test my update script to see if it's able to correctly backup and restore the API fields whenever updating, since phpBB's update script doesn't allow for custom database fields.
So in other words; When updating the API details will be stored in a seperate table, and as you can imagine, losing that table will mean losing all API data.

Can't give you any ETA yet, although I hope to conclude the final tests this weekend.
Khi3l
The Phoenix Revival
#376 - 2012-09-06 09:17:43 UTC
Cyerus wrote:
For each account's API details are connected to that accounts username (being the charactername), and allowing for multiple API details will make it unnecessarily complicated.


OK, so, if this correct ?

Quote:
/**
* Check account and return an array with all character names, corporations and alliances on this account
*/
function eveapi_checkAllCharacters($keyID, $vCode)
{
global $config, $db;

$pheal = new Pheal($keyID, $vCode);

try
{
$result = $pheal->Characters();
foreach($result->characters as $character)
{
$characterID = $character->characterID;
$characterName = $character->characterName;
try
{
$result = $pheal->eveScope->characterInfo(array("characterID" => $characterID));
$userCorporationName = $result->corporation;
$userAllianceName = $result->alliance;
}
catch(PhealException $e)
{
$charArray["error"][$e->getCode()] = $e->getMessage();
}
$charArray["info"]["characterId"] = $characterID;
$charArray["info"]["characterName"] = $characterName;
$charArray["info"]["corporation"] = $userCorporationName;
$charArray["info"]["alliance"] = $userAllianceName;
}
}
catch(PhealException $e)
{
$charArray["error"][$e->getCode()] = $e->getMessage();
}

return $charArray;
}
Cyerus
University of Caille
Gallente Federation
#377 - 2012-09-06 12:36:11 UTC  |  Edited by: Cyerus
Khi3l wrote:
Cyerus wrote:
For each account's API details are connected to that accounts username (being the charactername), and allowing for multiple API details will make it unnecessarily complicated.


OK, so, if this correct ?

Quote:

* snip *


I still don't see your point?
It checks your forum username to one of the characternames to search for a match.
Of course you can use select multiple users to work under one API key, but that doesn't change the fact that it only uses one character out of it.

Allowing a forum account to have multiple API keys, so physical API keys, would be pointless and making things alot more complicated.
Even when multiboxing with xx-accounts, you only need to register one to receive your forum permissions (TS too if selected). If let's say one of your accounts is in a different entity and you would like to gain the extra permissions attached to that entity, you'll have to register a new account with that alt and that alt's API key.
Khi3l
The Phoenix Revival
#378 - 2012-09-06 13:52:31 UTC  |  Edited by: Khi3l
I will try to explain my point of view with my poor english :)

Let's imagine i'm in a 300 members corp with many many alts.

As a director, i can't remember all alts and accounts of a main char, right ? Now let the forum user enter all his API Keys.

On his main account, in his profile, i can view all characters he have. So, i can identify an alt just by looking at the forum and search for his name.

Example :

I have a forum account with Khi3l.

On my profile, there are two more alt on this account : alt01, member of Babylon Knights and alt 02, member of NPC corp.

On a profile field, i can enter second API key for my other account (account2 with 3 chars in NPC corp).

Now, on my profile, admin or members with the right permissions can view :

Khi3l (Babylon Knights, Test Alliance Please Ignore)
alt01 (Babylon Knights, Test Alliance Please Ignore)
alt02 (Random NPC Corp)
SecondAccount01 (Random NPC Corp)
SecondAccount02 (Random NPC Corp)
SecondAccount03 (Random NPC Corp)

Now, in admin panel, admin can search for alt01. When he search for him, infos about forum account are shown (Khi3l, Babylon Knights, Test Alliance Please Ignore). Now admin knows alt01 is an alt of Khi3l.

For permissions, they are still given by the forum main account so that's not really a problem, except for those who have two or more forum accounts....

This feature isn't for most forum user but for directors and CEO to know who is who.
AzAkiR NaLDa
Council of Exiles
Brave Collective
#379 - 2012-09-06 14:11:03 UTC
This is a registration and forum tool. Not a management application.

Lone Star Warrior

Khi3l
The Phoenix Revival
#380 - 2012-09-06 14:39:37 UTC  |  Edited by: Khi3l
AzAkiR NaLDa wrote:
This is a registration and forum tool. Not a management application.


That's probably why a fitting mod is included in this tool...

My feature use :

- PhpBB
- EVE API
- Registration

So i think it can be part of this mod imo. Cyerus will say yes or no, it's his decision.