open All Channels
seplocked EVE Technology Lab
blankseplocked phpBB3 API Registration Mod v2.1.1
 
This thread is older than 90 days and has been locked due to inactivity.


 
Pages: 1 2 3 4 5 6 [7] 8

Author Topic

xc0n
Posted - 2009.09.01 08:07:00 - [181]
 

Originally by: Xeross155
Edited by: Xeross155 on 31/08/2009 18:28:19
Patch generated.
http://files.x3tech.com/102/EVE-API.patch


You sir are my hero.

IceBlade Rage
Immortalis Silens
Ethereal Dawn
Posted - 2009.09.11 05:32:00 - [182]
 

Per Valek, this project now needs a new maintainer. Any volunteers? All Valek asks is credit to him for prior versions is retained.

Rauderberg
Gallente
Fugazi.
Usurper.
Posted - 2009.09.15 16:40:00 - [183]
 

Hi all, I can see that this is no longer in production, but I am hoping someone can help me anyway. i installed this mod onto our forums and had no troubles at all. I told all current members to add thier API Keys and then ran the charid.php file. I believe there are some that have still not entered thier API Keys, but I ran the cron anyway. I simply ran it in my browser with debug on. As soon as I run it the message Validation process completed successfully! comes up instantly, but it does not check any accounts at all, that message is all that displays. I have tried a few different settings but the cron still only runs instantly and displays this message straight away. Any ideas.

Rauder
Posted - 2009.09.16 04:01:00 - [184]
 

Edited by: Rauder on 16/09/2009 04:02:50
All fixed, I found the problem so no need to reply. Will check ingame for Valek and donate iskies. Great Mod.

[EDIT] 0OOps wrong char, was meant to be Rauderberg :)

DaReaper
Net 7
Intrepid Crossing
Posted - 2009.09.16 17:41:00 - [185]
 

I know that development has stopped but maybe someone else had this issue and they have an answer:

I finally updated the api_cron with the fixed file, and ran it today to try and clear out a member i know has left my corp. Was trying to verify that all worked. However, it removed the members of the other corps in the alliance that has a different user group and kept the guy who is no longer in my corp.... yea odd. Any ideas?

Mark Galean
Mercurialis Inc.
RAZOR Alliance
Posted - 2009.09.26 14:18:00 - [186]
 

Edited by: Mark Galean on 26/09/2009 14:37:56
Originally by: Rauderberg
Hi all, I can see that this is no longer in production, but I am hoping someone can help me anyway. i installed this mod onto our forums and had no troubles at all. I told all current members to add thier API Keys and then ran the charid.php file. I believe there are some that have still not entered thier API Keys, but I ran the cron anyway. I simply ran it in my browser with debug on. As soon as I run it the message Validation process completed successfully! comes up instantly, but it does not check any accounts at all, that message is all that displays. I have tried a few different settings but the cron still only runs instantly and displays this message straight away. Any ideas.

Check the cron_api.php file, it contains a few arrays that you WILL need to fill out (use phpMyAdmin or any other tool that you can do lookups with) and add those into the array - ONLY those tagged there will be checked. The default is group 7, which may or may not exist on your forum.

In short, you need to read a bit further down in the api_cron.php file to find out what it really does, not just blindly running it.
Example:
Quote:

// Array of names to be excluded from validation cycle.
$names = Array('Mark Galean');

// Verbose / debug mode toggle. Turn on if you're running it manually and want to watch it work, or if something's incorrect and you're looking for errors.
$verbose = true;

// Group type
// 0 = Identified by group ID
// 1 = Identified by group name
$group_type = 0;

// Array containing groups to validate.
$groups = Array(101,102,103,111,112,113,121,123,124);


1 - $names lists users you want to IGNORE during the checks (usernames, commaseparated)
2 - $verbose turns on verbose checks, ie. listing what it has done, and to whom (true/false)
3 - $group_type is a toggle-mechanism saying if you want to check for the group ID -or- its name (0/1)
(you will find the names in the phpbb_groups table, or hover the respective group when in the phpBB administration panels)
4 - $groups does the verification on the groups set in the array (commaseparated values)

WARNING : do not just copy/paste the above - the groupnumbers are just random numbers, and may invalidate your active users and their current group memberships if they have no API and are incidentaly in those groups!
If you set $group_type = 1 you will need to type the full name of the group(s) you want to verify users in.

DaReaper
Net 7
Intrepid Crossing
Posted - 2009.09.29 22:15:00 - [187]
 

well i screwed up, i accidentally inactivated my admin account with the api script. Anyone know an easy way to reactive an inactivated account?

Jim diGriz
Caldari
Moustache Twirling Space Cads
Huzzah Federation
Posted - 2009.10.07 10:00:00 - [188]
 

Originally by: DaReaper
well i screwed up, i accidentally inactivated my admin account with the api script. Anyone know an easy way to reactive an inactivated account?


The Support Tool Kit for PHPBB 3.0.x should help

Sealy
Posted - 2009.11.03 15:10:00 - [189]
 

Ok this is working great for me. Im sending so iskies to you. thanks.. IF you are still modifying this I would like to have multiple corps as API-Entity
For example

Alliance "The Mobs"
Corp 1 - Blam Gams - PHPBB3 Group - Blam Gams
Corp 2 - Purs strings - PHPBB3 Group - Purs strings
Corp 3 - Simple simon - PHPBB3 Group - Simple simon
Corp 4 - Cran Cerry - PHPBB3 Group - Cran Cerry
Corp 5 - mincers - PHPBB3 Group - mincers

No Corp - All others and people who have left - PHPBB3 Group - Registered Public

This means with an alliance board then all corps can have their own private area on the forms where they can only see.

Agent Known
Posted - 2009.11.03 21:58:00 - [190]
 

Originally by: Sealy
Ok this is working great for me. Im sending so iskies to you. thanks.. IF you are still modifying this I would like to have multiple corps as API-Entity
For example

Alliance "The Mobs"
Corp 1 - Blam Gams - PHPBB3 Group - Blam Gams
Corp 2 - Purs strings - PHPBB3 Group - Purs strings
Corp 3 - Simple simon - PHPBB3 Group - Simple simon
Corp 4 - Cran Cerry - PHPBB3 Group - Cran Cerry
Corp 5 - mincers - PHPBB3 Group - mincers

No Corp - All others and people who have left - PHPBB3 Group - Registered Public

This means with an alliance board then all corps can have their own private area on the forms where they can only see.



I started doing this manually...it's a pain in the ass, but it works. Cool

Altair Mogwa
D00M.
Posted - 2009.11.04 21:01:00 - [191]
 

Edited by: Altair Mogwa on 06/11/2009 04:35:40
anyone seen this error? (I know this isn't being actively supported anymore)

Quote:
[phpBB Debug] PHP Notice: in file /includes/functions_user.php on line 154: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration
[phpBB Debug] PHP Notice: in file /includes/functions_user.php on line 154: file_get_contents(http://api.eve-online.com/eve/CharacterID.xml.aspx?names=Altair+Mogwa) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found

Fatal error: Call to a member function attributes() on a non-object in /home/minor/public_html/forum/includes/functions_user.php on line 155


I researched it to be related to the php.ini not having allow_url_fopen on. The host provider said this can't be changed. Is there a work around or am i boned?

This was 2.1.1 installed onto a fresh phpbb 3.0.5

EDIT: Things i've read is to usea cURL function. Programming noob I am i have not figured this out yet.

Angela Ripper
Posted - 2009.11.09 19:49:00 - [192]
 

Edited by: Angela Ripper on 09/11/2009 21:55:58
Edited by: Angela Ripper on 09/11/2009 19:49:58
Got error:

Fatal error: Call to a member function attributes() on a non-object in /***/includes/functions_user.php on line 155

when try to register new user. functions_users.php and all parts of file is same as xml. I not sure but may be something wrong with php configuration. Can somebody help me please!?

Foxxy Lady
Dark-Rising
Executive Outcomes
Posted - 2009.11.16 09:20:00 - [193]
 

Edited by: Foxxy Lady on 16/11/2009 09:20:28
I am getting the error:
Quote:
General Error
SQL ERROR [ mysql4 ]

MySQL server has gone away [2006]

An sql error occurred while fetching this page. Please contact an administrator if this problem persists.


And it is only checking like 1/10th of our corp (member group) during api_cron.php or characterid.php.

Also can this upgrade people from 'guest' to 'member' once they join corporation?

Miraki Alsento
Nutz N Boltz
Posted - 2009.11.25 18:23:00 - [194]
 

Edited by: Miraki Alsento on 25/11/2009 20:27:10
Edited by: Miraki Alsento on 25/11/2009 19:42:18
Originally by: Altair Mogwa
Edited by: Altair Mogwa on 06/11/2009 04:35:40
anyone seen this error? (I know this isn't being actively supported anymore)

Quote:
[phpBB Debug] PHP Notice: in file /includes/functions_user.php on line 154: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration
[phpBB Debug] PHP Notice: in file /includes/functions_user.php on line 154: file_get_contents(http://api.eve-online.com/eve/CharacterID.xml.aspx?names=Altair+Mogwa) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found

Fatal error: Call to a member function attributes() on a non-object in /home/minor/public_html/forum/includes/functions_user.php on line 155


I researched it to be related to the php.ini not having allow_url_fopen on. The host provider said this can't be changed. Is there a work around or am i boned?

This was 2.1.1 installed onto a fresh phpbb 3.0.5

EDIT: Things i've read is to usea cURL function. Programming noob I am i have not figured this out yet.


To use the cURL do the following:
In includes/function_users.php find
/**
* Gets the ID for the specified username.
*
* @param string $username The username for the account to be created.
* @param bool $updatename Flag for whether to update the username's capitalization during registration.
* @return the character's ID.
*/
function getID(&$username, $updatename = false) {
$url = "http://api.eve-online.com/eve/CharacterID.xml.aspx?names=".urlencode(stripslashes($username));
$xml = simplexml_load_string(file_get_contents($url));
$id = (string) $xml->result->rowset->row[0]->attributes()->characterID;
if($updatename)
{
$username = (string) $xml->result->rowset->row[0]->attributes()->name;
}
return $id;
}

Add before
/**
* Fetches filecontent from the interwebz
*/
function curl_get_file_contents($request)
{
$c = curl_init();
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_URL, $request);
return curl_exec($c);
curl_close($c);
}


After you've done this replace all occurrences of "file_get_contents" with "curl_get_file_contents". This works with 3.0.5. However on 3.0.6 there's something that messing things up, can't get the API info to download properly any longer. Came here looking for a solution heh.

EDIT: The bug with 3.0.6 is seems to be that nonmember characters can't register. I'm messing around with this trying to figure out why.

EDIT 2: Figured it out :) The error was that if you had the mod set to Alliance as Validation Method and had non-member registration on, characters not in an alliance would not be able to register. This probably apply if it's running on phpBB 3.0.5 aswell. The fix is quite simple.

Fix in next post!

Miraki Alsento
Nutz N Boltz
Posted - 2009.11.25 20:35:00 - [195]
 

Edited by: Miraki Alsento on 25/11/2009 20:36:53
To fix above error:
Open: includes/function_user.php
Find:
		case 2:
$xml = file_get_contents("http://api.eve-online.com/char/CharacterSheet.xml.aspx?userID={$user_row['api_userid']}&apikey={$user_row['api_limitedkey']}&characterID={$charid}");
preg_match("/<corporationID>([0-9]+)<\/corporationID>/",$xml,$corpid);
$corpid = $corpid[1];
$xml = file_get_contents("http://api.eve-online.com/corp/CorporationSheet.xml.aspx?corporationID={$corpid}");
preg_match("/<allianceName>(.+)<\/allianceName>/",$xml,$allname);
$allname = $allname[1];
if($allname == NULL)
{
return $user->lang['INVALID_API_CREDENTIALS'];
}
if($allname != $config['api_entity'])
{
if($config['api_nm_register'])
{
return 0;
}
return sprintf($user->lang['INVALID_API_ALLMEMBER'],$config['api_entity']);
}
return 1;
break;

Replace with:
		case 2:
$xml = file_get_contents("http://api.eve-online.com/char/CharacterSheet.xml.aspx?userID={$user_row['api_userid']}&apikey={$user_row['api_limitedkey']}&characterID={$charid}");
preg_match("/<corporationID>([0-9]+)<\/corporationID>/",$xml,$corpid);
$corpid = $corpid[1];
$xml = file_get_contents("http://api.eve-online.com/corp/CorporationSheet.xml.aspx?corporationID={$corpid}");
preg_match("/<allianceName>(.+)<\/allianceName>/",$xml,$allname);
$allname = $allname[1];
if($allname == NULL)
{
if($config['api_nm_register'])
{
return 0;
}
return $user->lang['INVALID_API_CREDENTIALS'];
}
if($allname != $config['api_entity'])
{
if($config['api_nm_register'])
{
return 0;
}
return sprintf($user->lang['INVALID_API_ALLMEMBER'],$config['api_entity']);
}
return 1;
break;


This code is in "function validatechar($user_row, $charid)". This probably isn't the prettiest or best way to fix this code-wise, but it seems like it's working and thats what matters to me. Thought I'd share in case someone else ran into this problem as well.

EDIT: If anyone from CCP sees this. Find whomever is in charge of programming the forums, give em a whack behind the head and tell em to fix the code tag, the letters are way to big!!!

InUreCan StealinUreBike
Gallente
Pineal Squeegee
Pineal Squeegee Federation
Posted - 2009.11.28 03:09:00 - [196]
 

Edited by: InUreCan StealinUreBike on 28/11/2009 03:54:07
Disregard.

Adahy Eagleton
Caldari
Duke Technologies
Posted - 2009.12.28 19:34:00 - [197]
 

Hey Everyone,

I'm not sure if support on this mod still exists but I'll ask anyways.

I applied the above fixes to the functions_user.php which made some of my errors go away. But anytime I put an API key in and hit submit I end up at a blank page with nothing on it. "http://website.com/ucp.php?mode=register"

I'm not really sure what I'm doing but if someone could help that would be awesome.

Thanks,
Adahy

Adahy Eagleton
Caldari
Duke Technologies
Posted - 2009.12.28 20:40:00 - [198]
 

I think the issue is somewhere in root/ucp.php

in case 'register':

But everything looks good to me and there haven't been any changes to this file (stock)

Thanks for any help in advance.

MWGemini
Posted - 2009.12.31 21:01:00 - [199]
 

I recently tried adding this mod to my own forums, and the only thing I have not been able to get working so far is the new user registration. If I attempt to register a new user (at the ForumRoot/ucp.php?mode=register url), the terms of use shows correctly (with the extra info about the API use at the bottom), but clicking on the "I agree" button brings me to the next page (same url), with nowhere to enter the API data. The user can fill all fields, but when attempting to create the account, it fails because the API data is blank.

I copied over all files from the archive to the board (v3.0.5), which formerly had no mods installed. I'll throw some isk at whoever can help me find a solution to this issue (it should be pretty simple, I think). Also, if anyone is interested in adding features to this, I'll compensate you for your time.

Thanks,

MWGemini

SlidW
Extreme Solutions
Black Star Alliance
Posted - 2010.01.06 01:52:00 - [200]
 

I've seen phpbb3 now reached the V3.0.6, will this hack still work with it?
ty

Caxs
Shiva
Morsus Mihi
Posted - 2010.01.12 19:36:00 - [201]
 

Originally by: Miraki Alsento
Edited by: Miraki Alsento on 25/11/2009 20:27:10
Edited by: Miraki Alsento on 25/11/2009 19:42:18
Originally by: Altair Mogwa
Edited by: Altair Mogwa on 06/11/2009 04:35:40
anyone seen this error? (I know this isn't being actively supported anymore)

Quote:
[phpBB Debug] PHP Notice: in file /includes/functions_user.php on line 154: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration
[phpBB Debug] PHP Notice: in file /includes/functions_user.php on line 154: file_get_contents(http://api.eve-online.com/eve/CharacterID.xml.aspx?names=Altair+Mogwa) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found

Fatal error: Call to a member function attributes() on a non-object in /home/minor/public_html/forum/includes/functions_user.php on line 155


I researched it to be related to the php.ini not having allow_url_fopen on. The host provider said this can't be changed. Is there a work around or am i boned?

This was 2.1.1 installed onto a fresh phpbb 3.0.5

EDIT: Things i've read is to usea cURL function. Programming noob I am i have not figured this out yet.


To use the cURL do the following:
In includes/function_users.php find
/**
* Gets the ID for the specified username.
*
* @param string $username The username for the account to be created.
* @param bool $updatename Flag for whether to update the username's capitalization during registration.
* @return the character's ID.
*/
function getID(&$username, $updatename = false) {
$url = "http://api.eve-online.com/eve/CharacterID.xml.aspx?names=".urlencode(stripslashes($username));
$xml = simplexml_load_string(file_get_contents($url));
$id = (string) $xml->result->rowset->row[0]->attributes()->characterID;
if($updatename)
{
$username = (string) $xml->result->rowset->row[0]->attributes()->name;
}
return $id;
}

Add before
/**
* Fetches filecontent from the interwebz
*/
function curl_get_file_contents($request)
{
$c = curl_init();
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_URL, $request);
return curl_exec($c);
curl_close($c);
}


After you've done this replace all occurrences of "file_get_contents" with "curl_get_file_contents". This works with 3.0.5. However on 3.0.6 there's something that messing things up, can't get the API info to download properly any longer. Came here looking for a solution heh.

EDIT: The bug with 3.0.6 is seems to be that nonmember characters can't register. I'm messing around with this trying to figure out why.

EDIT 2: Figured it out :) The error was that if you had the mod set to Alliance as Validation Method and had non-member registration on, characters not in an alliance would not be able to register. This probably apply if it's running on phpBB 3.0.5 aswell. The fix is quite simple.

Fix in next post!


I have tried this fix on a fresh 3.05 install, and i now get this error "Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/evolution/public_html/forum/includes/functions_user.php on line 165"

Elemiah
Caldari
Darkwater Industries
Posted - 2010.01.17 19:57:00 - [202]
 

i am getting this error


Fatal error: Call to undefined function get_unread_topics() in /home/content/07/5479507/html/forums/includes/functions_display.php on line 110


any suggestions?

Darius Skywalker
Posted - 2010.01.22 15:42:00 - [203]
 

I'm not sure if this is allready fixed, but i see in acp_users.php you forgot to get character id before validating charater, so api allways fails when you try to edit user profile, just add this before validation:

$charid = ($data['username']) ? getID($data['username']) : getID($user->data['username']);

if(!$charid)
{
$error[] = $user->lang['INVALID_CHAR_NAME'];
}
if (!sizeof($error))
{
//validation goes here
}


Agent Unknown
Caldari
Posted - 2010.01.27 20:01:00 - [204]
 

Edited by: Agent Unknown on 27/01/2010 20:23:56
Originally by: Elemiah
i am getting this error


Fatal error: Call to undefined function get_unread_topics() in /home/content/07/5479507/html/forums/includes/functions_display.php on line 110


any suggestions?


Same here. The mod wasn't updated to support 3.0.6, so I'd imagine that would be the problem.

In any case, I cannot seem to open the XML file whatsoever. IE 8 spits out this:

Quote:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

An invalid character was found in text content. Error processing resource 'file:///D:/Downloads/phpBB API Mod 2.1.1/install...


<![CDATA[ You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated ...



Edit: Apparently I didn't read all of the OP. Embarassed

Psycer
Posted - 2010.01.28 18:23:00 - [205]
 

Originally by: Agent Unknown
Edited by: Agent Unknown on 27/01/2010 20:23:56
Originally by: Elemiah
i am getting this error


Fatal error: Call to undefined function get_unread_topics() in /home/content/07/5479507/html/forums/includes/functions_display.php on line 110


any suggestions?


Same here. The mod wasn't updated to support 3.0.6, so I'd imagine that would be the problem.

In any case, I cannot seem to open the XML file whatsoever. IE 8 spits out this:

Quote:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

An invalid character was found in text content. Error processing resource 'file:///D:/Downloads/phpBB API Mod 2.1.1/install...


<![CDATA[ You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated ...



Edit: Apparently I didn't read all of the OP. Embarassed


Works perfectly for my on 3.0.6, check if you have any other mods installed.. and if you do, don't just copy api mod files over yours.. follow instal.xml rules, modify files by hand.

Freeholder Joe
Caldari
Posted - 2010.01.29 19:34:00 - [206]
 

Edited by: Freeholder Joe on 29/01/2010 19:51:10
Bug Fix:

The problem with getting the mod xml to load has nothing to do with internet explorer. It's partly because the xml file is encoded as UTF-8 with BOM instead of just UTF-8.. The rest are encoded in ANSI.... Using notepad++ I opened all files and saved as UTF-8.

I then changed

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>

to

<?xml version="1.0" encoding="utf-8" ?>

There's more difference then just the standalone part.. apparenty the <?xml version="1.0" part is written in a different character set then the rest.

Encoding strikes again!

Cheers!

Zendoren
Aktaeon Industries
The Black Armada
Posted - 2010.02.10 22:31:00 - [207]
 

We need to start a GoogleCode or sourceforge repository so that this will have some structure.

Thanks,
Zen

Scipio Ceaser
Gallente
White Star Line 2010
DEM0N HUNTERS
Posted - 2010.02.16 02:47:00 - [208]
 

Edited by: Scipio Ceaser on 16/02/2010 02:48:08
I have the server space and the needed resources to host this file at my website eve-corps.com I am not sure who is in charge of this project at the moment but if you eve mail me I will respond or you can email me at webmaster {at} eve-corps.com I will also be happy do donate a subdomain for testing this mod. as well as enabling further development.

Ryu Icewing
Posted - 2010.02.24 02:46:00 - [209]
 

Edited by: Ryu Icewing on 24/02/2010 02:51:08
I have php 3.0.6 and the one for 3.0.5 witch 2.1.1 dose not work for it as well id like it to work on the eve stile

the stille can be retrived at

http://www.dragon-services.net/forum/download/EveStyle for phpbb Forum.zip

I alsow get the
Fatal error: Call to undefined function get_unread_topics() in /home/content/07/5479507/html/forums/includes/functions_display.php on line 110 error

only difrance on mine is i am using a difrent stilesheet

Agent Unknown
Caldari
Posted - 2010.02.26 06:22:00 - [210]
 

Note: On a vanilla PHPBB3, install the older version (3.0.5) first, apply the mod, then patch it using the upgrade package from the website.


Pages: 1 2 3 4 5 6 [7] 8

This thread is older than 90 days and has been locked due to inactivity.


 


The new forums are live

Please adjust your bookmarks to https://forums.eveonline.com

These forums are archived and read-only