Pages: 1 2 3 4 5 6 :: [one page] |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |

MisterMagotchi
B4D W0LF B4D W01F
2
|
Posted - 2011.09.06 22:48:00 -
[1] - Quote
Teamspeak and phpBB Forums EVE Online API Registration System
Features Summary:
- Combines phpBB (forums) registration with Teamspeak registration
- Automatically puts users in groups in Teamspeak and phpBB based on EVE corporation via EVE API
- Automatically removes users from those groups if their API information becomes invalid or if they are no longer in a configured corporation
- Automatically switches members between corp. groups if they switch from one configured corp. to another
- Provides an admin interface for admins to view the registration information, update a user's details, recheck them, view registration errors with information to troubleshoot them, etc.
- Reasonably well-documented code for easy customization
More Info and Download
Screenshots:
Registration Screen
Admin Area / Registration List
If anybody has any difficulty installing or using it, I'll be glad to help.
Special thanks to Gary Hagon for helping me test it. There were some initial issues that prevented it from working on some other servers, and those are now fixed. |

Fenris Nihilus
S0utherN Comfort Controlled Chaos
0
|
Posted - 2011.09.07 02:18:00 -
[2] - Quote
I just need to know... does this api authentication code have to run on the same server hosting the ts3 server? I understand its something you implement into your forum code... but what about people who pay for TS3 hosting? There isn't much detail on your site how you connect ts3 to the authentication process. |

Fenris Nihilus
S0utherN Comfort Controlled Chaos
0
|
Posted - 2011.09.07 02:32:00 -
[3] - Quote
Fenris Nihilus wrote:I just need to know... does this api authentication code have to run on the same server hosting the ts3 server? I understand its something you implement into your forum code... but what about people who pay for TS3 hosting? There isn't much detail on your site how you connect ts3 to the authentication process.
Actually I think I found it. Your using ServerQuery in the code right? So you just have to grant it access to the server via admin panel from your ts3 host. Correct me if I'm wrong. |

MisterMagotchi
B4D W0LF B4D W01F
2
|
Posted - 2011.09.08 23:04:00 -
[4] - Quote
Sorry for the delay in response. I wish this system sent emails, but I haven't figured out if it does or where to set the option.
Yes. It just uses TS3's Server Query.
Normally you have to add the IP of the server you'll run this script on to TS3's "query_ip_whitelist.txt", so how you do this is really determined by your TS3 server host. If they provide you with either FTP or an interface to edit the IP whitelist, then great. Otherwise you'll likely need to talk to their support about it. |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.10 20:59:00 -
[5] - Quote
Magotchi - I am still trying to break it 
So far, no problems yet.
For the person who asked about TS hosting, you need to ask your hosting provider to make you a server query account and get the web server that the script is running on "white-listed".
Most hosting companies will not do this under any situation, but I do hosting at decent rates with this mod as an option. mail me and I can help you get set up.
Also, Magotchi, Let me know if you are already working on this, but im trying to get the new api system running with this script.
Let me know if you come up with anything because this is worse than beating my head against a wall. |

MisterMagotchi
B4D W0LF B4D W01F
2
|
Posted - 2011.09.11 10:09:00 -
[6] - Quote
I haven't started on it yet, but I've done a little looking into it. I'll let you know what I come up with.
Update: I have a good plan, and there's a good chance I'll implement it tomorrow. It won't be hard. It will include the ability to require a minimum set of access mask options for the keys as well, although it technically only needs a Character (not Account) key with access to the CharacterInfo under Public Information (on the API creation page). My assumption is that corps. and alliances will want that same thing but as an Account key as their minimum (for very rudimentary manual spy-checking ability), but I'll leave that customizable. |

Philderbeast
M.I.M.M.S The Watchmen.
0
|
Posted - 2011.09.11 11:24:00 -
[7] - Quote
i just installed this and its very nice but its not adding some people to the appropriate groups on ts. so far it seems server, specifically the people set up as server admins, is this intentional or caused by ts? |

MisterMagotchi
B4D W0LF B4D W01F
2
|
Posted - 2011.09.11 11:30:00 -
[8] - Quote
I think I would have to know the specifics to help much further, but if the user's Username and API info. match a character that's in a corp. you have configured in config.inc.php ($config['Groups']), and that group ID exists in Teamspeak, there's no reason they shouldn't get added to the correct group. |

MisterMagotchi
B4D W0LF B4D W01F
2
|
Posted - 2011.09.11 12:06:00 -
[9] - Quote
After thinking about how to work with the new API system, I have some dramatic changes coming down the pipe, again likely worked on heavily tomorrow (well today I mean since it's 6am'ish my time and I'm awake still).
Summary of Planned Changes in Upcoming Version:
- The new customizable API keys will be required. The access mask and key type will be configurable as described in my previous post.
- There will be a registration page separate from the phpBB registration page. It will still require the user be logged in to the forums to use, though.
- Much less customization will be required to the forums. Adding the Teamspeak Registration table and a link in the forums to the new registration page will be the only required steps in that regard.
- The registration page will be re-usable by the users to re-register as their information (API key, character they want registered, TS UID) changes.
- The registration page will walk users through the process in a much better way, including using AJAX to get the username/usernames of their characters in configured corps. and verifying that all the submitted information is correct.
- Registration will require the user to be in the Teamspeak server. It's a long story as to why, but it's for security.
- As another security fix, Unique IDs will be checked to make sure they're not already in use by another registered user.
- Successful registration will update the user's forums username to match their registered player name.
- Checks where there is a failure due to bad key information or where the user is no longer in a registered corp. will, in addition to removing the user's forums and TS rights, also unregister them entirely (not from the forums, but only from this API registration system). This will prevent future unnecessary checks. They can of course still re-register at any time as above.
- The system will use the EVE API CachedUntil timestamp to make its determinations instead of the time of the last check. In cases where the connection to the EVE API server fails during a check, that timestamp will be cleared so that the user is moved to the front of the line for the next check.
There may be more features, and as the above are just based on the program plan I wrote for myself, there is a chance some of them could change as I get into the actual coding.
There won't be much of an upgrade path from the old version other than that most of the things in the config file will stay the same (with a couple new additions). Due to the fact that the API key system is changing, this only makes sense anyway.
I'm going to get some sleep and then get right back on this when I wake up this afternoon. |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.11 14:58:00 -
[10] - Quote
Careful bud, I dont know how, but I crashed my computer... Apparently I accidentally got it into a infinite loop... (I have a test server on my box).
Hey bud, when you release that, I wil, yet again, be your test dummy =).
Im gonna keep trying with the code (this time on a VMware....) |
|

MisterMagotchi
B4D W0LF B4D W01F
4
|
Posted - 2011.09.12 09:59:00 -
[11] - Quote
I've done the vast majority of the work on implementing these changes today (Sunday), and I'll likely finish it tomorrow evening.
I just need to finish some minor things, do some more testing, and make the appropriate changes to the documentation.
I'll be back on it when I get off work Monday evening. |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.12 21:31:00 -
[12] - Quote
Hey bud, Im starting a small beta test on it now. You have my TS info, so if im ingame, come on in and we can try to break it again!  |

MisterMagotchi
B4D W0LF B4D W01F
4
|
Posted - 2011.09.13 04:45:00 -
[13] - Quote
Well mine is done. I'm just still tweaking the documentation as I said. I'll release it tonight. |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.13 11:55:00 -
[14] - Quote
Sorry I missed you when you hopped on TS3...
I will test it when I get home today.
EDIT: I dont know if you have implemented this yet, but I reccomend you have a API template URL somewhere on the registration page for the users to click on.
Example https://support.eveonline.com/api/key/CreatePredefined/58720264
That link would send a person to the CCP API page to create an api with the following permissions... AccountStatus CharacterInfo CharacterSheet CharacterInfo
BTW, Witch xml does this script need access to? |

MisterMagotchi
B4D W0LF B4D W01F
4
|
Posted - 2011.09.13 18:17:00 -
[15] - Quote
The script already uses the template URL on the registration page for whatever your configured minimum access mask is.
If you read the documentation in config.inc.php, you'll have your answer about what it requires: "These are totally up to you as an admin."
Even an access mask of 0 is enough for this script, as that still gives access to the character list, and that's why it's the default in the config. |

Balani
ELVE Industries Shadow of xXDEATHXx
1
|
Posted - 2011.09.13 18:22:00 -
[16] - Quote
i get after installation
Parse error: syntax error, unexpected T_SL in /var/www/vhosts/*****/httpdocs/register/index.php on line 4
same in admin dir
Parse error: syntax error, unexpected T_SL in /var/www/vhosts/*****/httpdocs/register/admin/index.php on line 39 seems EOL causes it
|

MisterMagotchi
B4D W0LF B4D W01F
4
|
Posted - 2011.09.13 18:56:00 -
[17] - Quote
Balani: I guess I should put in the requirements that it requires PHP 5.3.0 or greater.
The ( EOL ) sections aren't the problem. It's the ( 'EOL' ) (with a single quote on each side of EOL) that only work in PHP 5.3.0 or greater. You can either upgrade your PHP, or you might be able to just find and replace every occurrence of the second thing with the first thing, and it should work fine, but you might have to put a backslash ( "\" ) before the dollar signs in the javascript section in index.php (located in lines 136 -161). This syntax it's currently using is called Nowdoc in case you're wondering. |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.13 21:23:00 -
[18] - Quote
I have not gone live on the code yet, still looking over the code and wondering how I can break it .
I am placing it live tonight and might try to make it plug into a modular with CSS similar to the EVE dev kb layouts.
Ill be online and on TS3 around 23:30 EVE Time, you have my details  |

MisterMagotchi
B4D W0LF B4D W01F
4
|
Posted - 2011.09.13 23:44:00 -
[19] - Quote
Do whatever you want to with the code, but I will have no part of helping you use the Smarty templating engine like EDK uses. Also, this is incredibly easy to customize. There's only one end-user-facing page ('index.php"), and you can make it reference whatever stylesheet you want or just edit the style block in the header. |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.13 23:47:00 -
[20] - Quote
I noticed that bud thats what made me think about doing it.
Installing it now and myself plus my alliance members will be trying to break it.  
I mentioned the ts3 incase you want to try breaking it yourself... lol |
|

MisterMagotchi
B4D W0LF B4D W01F
5
|
Posted - 2011.09.13 23:48:00 -
[21] - Quote
Also, so far I've had 19 registrations since I started using the new version (which is immediately after I published it last night), and it's working great so far.
Eventually I think I will make it so the registration page verifies that the TS Unique ID exists in the TS database (meaning the user has at some previous time joined the TS server). This should further prevent mistakes. Right now if they enter a bogus TS Unique ID (like one of my guys that entered just his name he uses in TS), nothing ever tells them its incorrect; they just don't get any TS rights until they fix it by re-registering. |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.14 00:36:00 -
[22] - Quote
Quick question, Is there a way to make this script a standalone registration page? Im looking into it now, but dumbass me keeps on breaking it....
meh... Ill figure it out sooner or later. |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.14 00:56:00 -
[23] - Quote
dude, i was taking another look at the new code and i realized something that made me do a "double take"....
This can easily be integrated into the registration script and your admin script can easily be integrated into the ACP.
Im going to try to make a pre-packaged and fully installable phpbb3 with that installed.
Ill let you know what happens
|

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.14 04:02:00 -
[24] - Quote
Suggestion for next release:
Allow us the option to specify what group they are placed if they fail the API check.
If you need me to elaborate more, eve mail me.
Besides that one little missing feature, I must say you really outdid yourself... |

Drake Draconis
Shadow Cadre Shadow Confederation
1
|
Posted - 2011.09.14 04:55:00 -
[25] - Quote
HOLY #### this is awesome.
I'm gonna have to make a new set of boards to test this out!
Some questions:
1: Is this FRIENDLY when it comes to PHPBB Official Update packages... as in it won't go ape-**** crazy if it patches as they regularly do release updates. (Last API Mod caused me to scrap Databases on a regular basis... utter pain-in-the-ass)
2: Is there a way to shutoff the Teamspeak 3 portion as we do not use TS3 (Shadow Confederation)
3: Is it possible to configure the API checker to multi-corps/multi-alliances?
4: I don't understand the bit about a separate registration page... can you clarify? Will it require modifications to make it work? This also include the ACP As well?
5: Can it be installed on an already active DB/Forums?
6: Last but not least...willing to give me some minor coaching's on some specific customizations such as getting cron to email me? Linux docs can be confusing at times.
Thanks so much for your time and patience. |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.14 05:40:00 -
[26] - Quote
Drake Draconis wrote: 1: Is this FRIENDLY when it comes to PHPBB Official Update packages... as in it won't go ape-**** crazy if it patches as they regularly do release updates. (Last API Mod caused me to scrap Databases on a regular basis... utter pain-in-the-ass)
2: Is there a way to shutoff the Teamspeak 3 portion as we do not use TS3 (Shadow Confederation)
3: Is it possible to configure the API checker to multi-corps/multi-alliances?
4: I don't understand the bit about a separate registration page... can you clarify? Will it require modifications to make it work? This also include the ACP As well?
5: Can it be installed on an already active DB/Forums?
6: Last but not least...willing to give me some minor coaching's on some specific customizations such as getting cron to email me? Linux docs can be confusing at times.
Drake, I will gladly be willing to help you out.
Answers to your questions...
1. From the looks of the script, it should keep functioning no matter what unless an update modifies the name of a table or its structure. Most updates these days are related to the internal php code, not the tables. So I think it would be safe to say this mod would be reliable over updates.
2. I haven't tried but I would think that commenting out the ts3 portion would do the trick. I will look into this when I work on the ACP mods (keep reading)
3. Yes, You can set this up for as many corps/alliance as you want. I currently have this setup working for 5 corps in my alliance, and 8 blue corps. It would be safe to say the limit is infinite.
4. No modifications are needed. What happens is they register normally through your phpbb, then they log in, click the link, and enter the needed details. When it comes to the separate reg page, my guess is to make it so that you can take almost any theme straight from phpbb.com and deploy it. There is no direct ACP controls but there is a stand alone admin page that will allow you to view all the data in the system. I am working on a ACP mod that will do the same.
5. Yes. I was easily able to install and employ this setup on a live database in about 15 minuets with no issue.
6. Hit me up in-game and I will gladly get you set up, If needed, I do TS3, forums and Kb hosting for ISK at affordable rates. (I will mail you tomorrow) |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.14 06:33:00 -
[27] - Quote
Found what looks to be a glitch in the system. When updating TS UID info, its possible to have multiple clients registered, but only the most recent uid will be removed from the TS3 groups.
Suggested fix: When users update their API info via the index.php page, do not overwrite the old UID. When it comes time to deactivate their account, have the system attempt to remove all the associated UIDs from the system.
I can elaborate more tomorw at 23:30, im wiped out... (2 am!)
This is the only bug I have found so far. I must applaud you  |

MisterMagotchi
B4D W0LF B4D W01F
5
|
Posted - 2011.09.14 07:04:00 -
[28] - Quote
Gary:
I don't know what you mean by "standalone registration page". The registration page is a completely separate page from everything else as it sits now.
I don't think it's a good idea to integrate the registration page too heavily into the registration process of phpBB. I made it a separate page on purpose in order to allow users to register as many times as they want if they lose access due to key issues, if they want to change the character they have registered, etc.
If you want to integrate the registration list into the ACP, that's your prerogative, but for ease of installation and to avoid update breakage, I think leaving it separate is the best option. It also allows me lots of flexibility in writing the code the way I want it and not be bound by phpBB's inner-workings.
Currently if they fail an API check, they are removed from all TS and forums groups except those in the ignore list in config.inc.php. Making them then then join some other group is doable, but I don't see the point, and it's more work than I want to do. You're welcome to add that feature to yours if you like. A person can fail an API check for a number of reasons. It can expire. They can lower the rights to less than the required minimum. They can leave the corporation. They can quit paying for their account. There are probably also other reasons. Just letting them revert to Guest seems totally reasonable to me.
Drake:
Thanks.
1. It shouldn't, as the only modification it makes to the database is the addition of the one table (EVE Registration). If phpBB does end up releasing a new version where they change the names of the data fields related to sessions, usernames, and groups, I'll have to make a fix to support it, but I doubt it as phpBB is a very mature piece of software.
2. It's not possible in the config, but someone who understands the basics of phpBB should be able to strip out the parts related to Teamspeak. The code is all commented. I don't plan to remove the Teamspeak integration or make it optional, as there are other phpBB EVE registration systems which are likely better suited to only being used for that purpose.
3. It supports an unlimited number of corporations to be configured.
4. By separate registration page, I mean that the API registration is independent of the phpBB registration. A forums user can do the API registration as many times as they'd like.
5. Yes, and it's no different than installing it for a fresh phpBB install.
6. I could help you with it. For starters, by default, cron emails to the Linux user who owns the crontab that called the job. On many systems, having a ".forward" file in the user's home directory with an email address to forward mail for that user to will do just that. It really depends on your system. Linux comes in a lot of flavors. In something like cPanel, you can set the email right in the interface I believe.
No problem.
Gary:
2. True, but there are parts of index.php that reference it, and even bigger parts of check-users.php that reference it, including MySQL code that mixes references to TS with references to the forums. Certainly it can be edited out, but it will take some minor finessing, and I don't want to mess with it and have to maintain two editions, or add what I think is unneeded complexity by allowing for it to be disabled.
4. True, but my reason for the separate registration page is that I want people to be able to fix their own registration problems with little or no help from admins. With a separate registration page apart from the phpBB registration, users can register over and over again to their hearts content (if they want to change or fix things).
Regarding the glitch you say you found, you'll have need to explain that more thoroughly. Here's how the system works as it pertains to users updating their TS UID via the registration form: When a user submits their data, the system verifies that no other forums user is already using the TS UID they entered, then it checks their API information again to be sure it works and they're in a registered corp., then it updates their forums username, then it does a MySQL "REPLACE INTO" operation into the EVE Registration table with all of their data. REPLACE in that context is just like INSERT, but if the data being inserted conflicts with any column that's marked as unique in the table, the entire row gets replaced with the new data. The TS UID and User (phpBB user ID) columns are both unique keys, so the system will not allow duplicate TS UIDs in the table. As I didn't really understand what you meant, I just did my best to explain the process here again.
Thanks. |

MisterMagotchi
B4D W0LF B4D W01F
5
|
Posted - 2011.09.14 07:26:00 -
[29] - Quote
New version released.
From my changelog:
"2011-09-14 - 1.52 - Registration form script now verifies that the TS UID entered is recognized by the TS server (meaning the user has been in the server before and the UID is correct) and gives them an error otherwise. The instructions were clarified a little more on the registration page. Other minor typo fixes and code cleanups."
Changed files (just replace them): admin/index.php , index.php , check-users.php , setup.inc.php , readme.html |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.14 14:25:00 -
[30] - Quote
Thanks for the update and your input on the extremely long post 
Oh, and you mentioned two different editions, it could be possible to simply make a boolean style selection in the admin page to enable/disable the ts function.
In my honest opinion bud, what you have now is EXCELLENT! Myself and a few buds are using this script as a base for a few additional projects.
Oh, something I noticed that my be useful to mention in the comments, you can get your corp ID from dotlan maps =) Made my life much easier. (compared to running through the API xml).
Thanks bud |
|

Drake Draconis
Shadow Cadre Shadow Confederation
1
|
Posted - 2011.09.14 14:29:00 -
[31] - Quote
So to understand a few things based on the replies....
They have to register an account first....then register a second time with API information? How does this not cause "multiple acounts syndrome"
The API system is independent of the forums but runs its own check against the forums with the API keys.
TS3 portions can be ignored or commented out without causing harm to the system...
right?
Naturally when I have the time I'll setup a package myself and see how it works this weekend...but I'm just doing my homework in advance. 
Don't suppose you have a test board running somewhere where I could look. :)
PS: No need to offer hosting services... I have a very large web hosting package of my own. |

MisterMagotchi
B4D W0LF B4D W01F
5
|
Posted - 2011.09.14 18:41:00 -
[32] - Quote
Gary:
Regarding your boolean option idea, note that I said "or add what I think is unneeded complexity by allowing for it to be disabled." One man's unneeded complexity is another man's great idea, but it would involve me having if-statements/switches for different SQL queries and then some more if-statements to include or not include other code and verbiage in other places, and I don't care to do so. That's all I'm saying.
I may add the DOTLAN note to the config.inc.php documentation in a future update. Good idea.
Drake:
To do API registration, one must have a forums account. When they visit the API registration page, it verifies that they have a phpBB session cookie specifically for the configured board, that it matches a session in the phpBB database, and that it hasn't expired (based on the session length configured in phpBB). The API registration is tied to their phpBB account, and the EVE Registration table's primary key is User, which contains the user's phpBB ID number. In my first version, registration for EVE was done directly through the phpBB registration form, which didn't easily allow a mechanism for re-registration when a user wanted to fix or change their API information, and as I had it, required heavy admin. intervention to fix all problems.
The API registration page is independent of the forums in the sense that its URL and look-and-feel are different, but the registration page/script, check-users script, and admin registration list all make use of the phpBB database, so they're not actually independent. The "check against the forums" is the verification that the user is logged in on the forums, and when the check-users script is setting their groups, it of course modifies their group memberships in the phpBB database.
TS3 portions can be edited out or commented out, and most of the TS3-related sections are directly labeled as such with comments, but you'll also need to edit the MySQL in check-users.php which gets that data (labeled "//Get forums user info checked longest ago") and remove the HTML table row from index.php that mentions it.
I don't have a test board. Sorry. In order to do that and have it be a reasonable test, I'd likely have to put every corp. ID in the game into its config. file. That would also mask some of the features (like the fact that when index.php uses AJAJ to get your list of characters, it only shows characters in the configured corps.). |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.14 18:58:00 -
[33] - Quote
I will be willing to host a test board....
I will probably put a html based text editor (make the config and error logs world writeable) and simply put a cron job to reset the whole setup every 2 hours or so. |

Drake Draconis
Shadow Cadre Shadow Confederation
3
|
Posted - 2011.09.14 22:10:00 -
[34] - Quote
I like what your saying...I'll feel better when i get it up and running on my system.
As for the TS3.... if its "ignored" will it cause harm?
Sounds like there's no way to quickly/cleanly remove it/disable it.
PS: Your description as to how it works is quite telling of your knowledge of PHPBB/SQL... I LIKE IT!!!! This is gonna be awesome for my alliance!  |

MisterMagotchi
B4D W0LF B4D W01F
5
|
Posted - 2011.09.14 23:22:00 -
[35] - Quote
Gary:
If you want to make a test board, do whatever you want, but I don't believe a test board will do this justice without a test TS server as well. I also think it's unnecessary, but again, it's your prerogative.
Drake:
The more I think about it, the more I'm softening on the idea of making Teamspeak registration optional via the config. I'll see what I can do on it tonight.
No harm will be caused if TS3 is disabled in the right way, so that's another reason I'm thinking about making it easier for everybody.
Yeah. It's not all that easy unless you're already a PHP coder.
Thanks for the great compliment. I've been a PHP/MySQL developer full-time for five years, and I've been tinkering with phpBB and other PHP apps. for many years before that in a hobby capacity. |

Drake Draconis
Shadow Cadre Shadow Confederation
3
|
Posted - 2011.09.14 23:54:00 -
[36] - Quote
MisterMagotchi wrote:Gary:
If you want to make a test board, do whatever you want, but I don't believe a test board will do this justice without a test TS server as well. I also think it's unnecessary, but again, it's your prerogative.
Drake:
The more I think about it, the more I'm softening on the idea of making Teamspeak registration optional via the config. I'll see what I can do on it tonight.
No harm will be caused if TS3 is disabled in the right way, so that's another reason I'm thinking about making it easier for everybody.
Yeah. It's not all that easy unless you're already a PHP coder.
Thanks for the great compliment. I've been a PHP/MySQL developer full-time for five years, and I've been tinkering with phpBB and other PHP apps. for many years before that in a hobby capacity.
Ive seen alot of people throw around jargon....admitedly I know enough to be dangerous....understand various concepts.... but I'm nowhere taletned enough to tangle with the likes of a rock solid PHPBB platform.
I even threatened to make an EVE Online theme and found out it would take me more time that I can afford to create.
I find its truely genius how your approaching this.
By isolating your code and just interfacing with the DBTables for referenceing and not direct modification... any chance of an update/patch rolling over on your code is slim to none.
Its a bit awkward in some aspect.... perhaps theres a way you could coordinate with the PHPBB devs for some sort of structure template that would at least let you integrate your registration tool with the registration page itself.
But this is better than nuking my DB/Forums over a patch...and well worth the added work as opposed to an entire staff dedicating to auditing membership (as I was planning to do).
I defiinately look forward to using your package...and perhaps...useful constructive critqueing. 
However I will say this much.... make the TS3 package optional and your gaurenteed to get a ton of use out of this...not everyone uses TS3... ours is Ventrillo..some still use EVE Voice...others Mumble.
I'll try to get a head start on your stuff tonight if I'm still conscience.... still at work.   |

MisterMagotchi
B4D W0LF B4D W01F
6
|
Posted - 2011.09.15 00:36:00 -
[37] - Quote
New version released.
Changelog: "2011-09-14 - 1.53 - Made Teamspeak functionality optional. Other minor documentation and textual changes."
Changed files (replace): readme.html, index.php, check-users.php Changed files (hand edit): config.inc.php (added "$config['Use Teamspeak']" option and some documentation) |

MisterMagotchi
B4D W0LF B4D W01F
6
|
Posted - 2011.09.15 00:54:00 -
[38] - Quote
Drake:
Again, thanks for the compliments. I really appreciate them.
Regarding integrating this with the phpBB registration, again, my original version did that. I found a few problems with that: Users couldn't edit their own registration information if it was or became invalid, so the role of admins was too heavy with that way. Nobody could sign up for the forums unless they had their EVE and Teamspeak information which meant that only EVE players in corp. or alliance could even use the forums, and this severely limited the use of the forums. In this new way, you can still provide some basic level of access for un-API-registered users while giving API-registered users more permissions. Thirdly, and maybe even the most important to me, being required to work directly in someone else's code framework, using their naming scheme, code formatting standards, and general way of doing things is irritating for me; also, the more tightly integrated a phpBB plugin is, the more complicated its installation process often becomes.
That being said, if you put the link to the registration page in a prominent place like the main navigation of phpBB, users that want to do the API registration should have no problem finding it. I've also added a sample code snippet in the installation instructions that you can paste into any phpBB template file and have it only show for logged-in users. I put mine to the right of the rest of the main top navigation, in a little bit bigger font, and in a color that stands out from the other stuff, and that's probably the one thing my users haven't complained about.
Keep the constructive criticism headed my way. There's little I enjoy more than people being able to benefit from things I make.
FYI, I wish I didn't have to use Teamspeak. I would use Mumble if I had the choice, as I especially prefer its permissions system, among other things, over Teamspeak, but it's hard to teach old dogs new tricks, and that's definately a true statement in my alliance. |

Drake Draconis
Shadow Cadre Shadow Confederation
3
|
Posted - 2011.09.15 01:42:00 -
[39] - Quote
dont modifications of the PHBB Webpages cause issues with modification checks during updates?
Course thats a MINOR issue in comparison from my previous issues.
At that rate I'll just slap a "forum board link" in the middle of the main section and use that instead.... if its a problem.
Won't know till I try it. :)
Thanks so much for the explinations... I can see it would be difficult for registration to be integrated.
But as I said...small price to pay...for added security/convience of API. |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.15 01:46:00 -
[40] - Quote
Drake Draconis wrote:small price to pay...for added security/convience of API.
Amen.  |
|

Drake Draconis
Shadow Cadre Shadow Confederation
3
|
Posted - 2011.09.15 04:42:00 -
[41] - Quote
MisterMagotchi wrote:Balani: I guess I should put in the requirements that it requires PHP 5.3.0 or greater. The ( EOL ) sections aren't the problem. It's the ( 'EOL' ) (with a single quote on each side of EOL) that only work in PHP 5.3.0 or greater. You can either upgrade your PHP, or you might be able to just find and replace every occurrence of the second thing with the first thing, and it should work fine, but you might have to put a backslash ( "\" ) before the dollar signs in the javascript section in index.php (located in lines 136 -161). This syntax it's currently using is called Nowdoc in case you're wondering.
Guess what.... got dinged too.
I'm running 5.2.x
Good luck asking my host to update that...they're paranoid like hell.
>.< *Bangs head on desk* Guess I'll need to make those changes.
EDIT: The changes you suggested to fix are not working.
Code Example:
Yours Says
'EOL'
Should it say
EOL
I did a find replace and that seemed to stop the PHP Parser from spitting nails.
The API Registration page will not load the key or go to the next screen. Errors out saying "wrong information"
I put "\" in front of the dollar signs (coincidentally it goes further than 161 ;) ) but its still not working.
PS: I'll not be able to make any changes until tomorow night...and even then It'd be nice to have someone to check my syntax with without having to wait hours >.<;;; So any clear cut suggestions for this out of practice noob would be great! |

MisterMagotchi
B4D W0LF B4D W01F
6
|
Posted - 2011.09.15 05:35:00 -
[42] - Quote
You should tell your host that PHP 5.3 has been a stable release for 2.5 years and that they need to get their act together if they want to keep business.
If you have 5.2.x, then certainly the 'EOL' (nowdoc) syntax won't work and the single-quotes must be removed. Furthermore, you'll need to find any situations where there are dollar signs in the heredoc string and escape them with a backslash, but I believe only the index.php has a section like that. I know this is just a rephrasing of what I already wrote.
If you absolutely cannot update away from your old version of PHP, I am willing to walk you through fixing the errors in comms, (your Ventrillo if you want). I don't have an old version of PHP to test on.
Also, the reason it goes past line 161 is that we weren't even talking about the same version of the code that exists now.
EDIT: Apparently you don't need to escape the $ signs. I just tried it (switching from nowdoc to heredoc on that section), and it worked fine without doing so. You only need to do that sometimes, in cases where PHP could easily mistake the $ for a variable, like if a letter comes immediately after it. I guess since that jQuery code all starts with "$(", it's not a problem.
Also, here's a list of files that have the 'EOL' (with single-quotes): admin/index.php index.php eve-api-get-names.json.php (a file index.php makes use of when doing the AJAJ stuff) |

Drake Draconis
Shadow Cadre Shadow Confederation
3
|
Posted - 2011.09.15 17:05:00 -
[43] - Quote
Using Coda last night I maanged to find and replace each and every EOL...only thing is I dont know if spaces should be inserted or not after the ">>>"
The pages load up ok but the API key isn't showing up...or im not sure whats supposed to happen.
I just put in the key and the verification code and it sits there.
So I may have had a syntax error somewhere I missed.
To top that off... my vent provider screwed me over this moring when they moved my server and nuked the entire useraccount database... kinda got my hands full.... not sure if ill get back to this tonight or not. *facedesk*
So should I remove the backslashes from $'s and then just make sure EOL's are ok? |

MisterMagotchi
B4D W0LF B4D W01F
6
|
Posted - 2011.09.15 19:50:00 -
[44] - Quote
The dollar signs don't need backslashes, and there should be absolutely no spaces on the same line after EOL. I would just replace your index.php with the latest copy and replace all the 'EOL' (with single-quote) parts with EOL (without single-quotes). |

Drake Draconis
Shadow Cadre Shadow Confederation
3
|
Posted - 2011.09.15 19:57:00 -
[45] - Quote
MisterMagotchi wrote:The dollar signs don't need backslashes, and there should be absolutely no spaces on the same line after EOL. I would just replace your index.php with the latest copy and replace all the 'EOL' (with single-quote) parts with EOL (without single-quotes).
OK.
What does EOL really accomplish?
I tried to decipher the syntax by checking PHP manuals and didn't get anywhere.
Best I could come up with an educated guess is "End of Line"
something along the lines of PHP_EOL which is a more formal better "\n" char or even a "\r"
Additionally... could you detail whats supposed to happen when you go to the reigstration page for API check. And I didn't catch where to set group assignments at.
In other words...alliance member signs up...want him in the alliance membership group...etc.
I saw in your configuration file where to set ignoring of groups however.
Additioanly... the section where you put in the DB information.... I presume thats where you go to sign into the SQL Database right? *attempting to troubleshoot why the reigstraiton page keeps erroring out when checking* |

MisterMagotchi
B4D W0LF B4D W01F
6
|
Posted - 2011.09.15 21:27:00 -
[46] - Quote
I can't write the syntax on these forums exactly, because whenever I post left less-than signs (angle brackets), I get an error that I can't post HTML.
Heredoc and nowdoc syntax are documented at the Strings page of the PHP manual.
"EOL" is just the string delimiter I choose for my code. The delimiter could be anything, including "TACOS".
Here's how the registration page works: A user visits the registration page. They see the form as in the screenshot (with some minor variation based on your config.inc.php settings). They enter their API Key ID and API Key Verification Code. Once they change focus away from either the Key ID or Verification Code boxes, and if there is something in them, the AJAJ process starts (using a Javascript "onchange" event), calling the "eve-api-get-names.json.php" script. "eve-api-get-names.json.php" does some basic validation of the Key ID and Verification Code, then it gets their character list via the API page "account/APIKeyInfo.xml.aspx". If the key works, the access mask is correct, the account type is correct, and they have at least one character in a configured corp., the script sends that data back to the registration page, and Javascript plugs those names into the Character Name dropdown box. If the key had an expiration date, the user is warned about that as well. If there was an error, the error is shown instead, and the first two fields are cleared. The user then enters their TS UID and submits the form (if that's enabled). Most of the same API things are then verified again, except using the character name they specified. Some other things related to their forums account are verified. It's verified that the TS UID they entered has been used before on the TS server (if that's enabled). Their entry in the EVE Registration table is then either added (or replaced if it already exists). The check-users.php script is then called.
Group assignments are done in config.inc.php at and after line 80 of the current version with the $config['Corps'] array. There is a giant block of documentation above it.
The Forums DB information is the connection information for connecting to the database your installation of phpBB uses. This should match the information in config.php in your phpBB installation's files. |

Drake Draconis
Shadow Cadre Shadow Confederation
3
|
Posted - 2011.09.15 22:02:00 -
[47] - Quote
Strange..based on what you said...i have no idea why the java didn't kick in then.
as to the configuraiton page...musta missed that portion of the code...I'll have to take a closer loko at that.
thanks so much for the information. Should help me sort out why its not functional. |

Drake Draconis
Shadow Cadre Shadow Confederation
3
|
Posted - 2011.09.16 14:00:00 -
[48] - Quote
Looks like I'll have to start fresh...dug myself into a hole...but got an additional question.
Your documentation says corporate ID's for group assignments.
Is it possible to use the Alliance ID number?
PS: This weekend I'll plenty of free time to finally get it off the ground. |

Phoebus ApolloX
Reasonable People Of Sound Mind
1
|
Posted - 2011.09.16 14:18:00 -
[49] - Quote
Hey, first of all good work so far this project is pretty good. I did however run into a couple hiccups that I figure I'd post about while it's still fresh.
Problem 1: I disabled TS3 server features as my TS3 host doesn't seem to have a place to access and edit my whitelist, and TS3 registration isn't a huge deal to me. However every time the replace SQL query would run to add a new api key it'd eliminate the previous key, forcing me to keep only one key in the database at a time. I checked and rechecked, tried different query methods, and no dice. Found out after a lot of fiddling that the key for the TS UID is set to "unique", and every record I'd attempt to add was adding it with a value of "NULL", which was making the MySQL server gurgle. I changed that database column to "index" and I believe that has fixed my problem (still testing).
Problem 2: After letting someone test it out, they would get added to the right group but not be able to see the forums. It seems they were cached with the permissions prior to the edit, and having them relog didn't update their forum permissions. I found that by setting user_permissions to blank in check-users.php with a query just after the "setting default forums group" query, this fixed that problem. Here is the query I added.
edited out: the three less than signs before the first EOL
Quote: $query = (less than signs go here)EOL UPDATE {$config['Forums DB']['Table Prefix']}users SET user_permissions = "" WHERE user_id = {$forums_user['ID']} EOL; mysql_query($query) or log_message('Error clearing user_permissions. User: ' . $forums_user['Username']);
I also want to note that I am on php 5.2 and that with the current iteration of the code replacing all the 'EOL' with EOL definitely works just fine. |

MisterMagotchi
B4D W0LF B4D W01F
6
|
Posted - 2011.09.16 23:04:00 -
[50] - Quote
Drake:
No. The instructions do show you how to quickly grab a list of every corp. in an alliance, but you will have to update your config as corps. join or leave your alliance. I'll think about this and it may be a feature down the road.
Phoebus:
Problem 1: Good catch. That's exactly right. That would certainly be a problem. As I said upon releasing that feature, I figured there was a chance it may have issues. I had only tested with myself, so it was the only record,and I didn't notice. For optimization's sake, it's better to have that as a unique key, but I guess a regular index will have to do the trick for simplicity's sake combined with the option to disable TS.
Problem 2: Good catch again. I hadn't noticed, as we don't use our forums much at all. I'll figure out the exact proper way that phpBB does that when it does group assignments and make that happen. I think clearing user_permissions may cause problems with actual user-specific permissions admins can give users in phpBB.
I'll be releasing a new version with these fixes soon, and I think I'm going to get rid of all the nowdoc stuff (in favor of heredoc). I'm a fan of nowdoc, because I don't see the point of parsing for variables when there's no need, but it's not too intense of a script anyway, and if it opens it up to more people, then I guess it's worth it.
Update: Apparently the "user_permissions" field is a cache that is regenerated if empty, so your solution is exactly correct, and I'll have the code do it in that manner. |
|

MisterMagotchi
B4D W0LF B4D W01F
6
|
Posted - 2011.09.17 01:20:00 -
[51] - Quote
New version released.
From my changelog: 2011-09-16 - 1.54 - Made TS UID no longer a unique key in DB table to fix bug when TS functionality was disabled. Made check-users clear a user's permission cache after updating their group to fix users not being able to use their new group's permissions. Replaced all nowdoc syntax with heredoc syntax to allow PHP older than 5.3.0. Made index.php update PHP last_poster/topic_poster name cache in the topics table when changing a username.
Changed files (replace): readme.html, eve-api-get-names.json.php, index.php, check-users.php, create-table.sql, admin/index.php
Added file: update-table-153-154.sql If updating from 1.53 (or below) to 1.54 (or above), import this SQL file into your phpBB database or otherwise run its contents. This database update is not required if you use the Teamspeak functionality of this script.
Current known issues:
Forums username colors don't get updated when a user's groups are changed, as phpBB caches them in several places. In order to fix this, the best way will be to require the path name of the phpBB installation and then use phpBB's functions for user management. I will probably do this eventually, but it's a somewhat heavy update, and I consider the colors to be a minor problem at the moment.
If a user fails the API key check and their permissions are therefore revoked, their default phpBB user group will become 2 (Registered Users). If you have modified the Registered Users group or use the COPPA group, this may cause an issue. |

Drake Draconis
Shadow Cadre Shadow Confederation
3
|
Posted - 2011.09.17 02:00:00 -
[52] - Quote
MisterMagotchi wrote:Drake:
No. The instructions do show you how to quickly grab a list of every corp. in an alliance, but you will have to update your config as corps. join or leave your alliance. I'll think about this and it may be a feature down the road.
Would be graet if it did...less opprotunities to mess with critical core files the more reliable the package.
But so noted...I'll stick with corp ID's from here on out. |

Drake Draconis
Shadow Cadre Shadow Confederation
3
|
Posted - 2011.09.17 05:15:00 -
[53] - Quote
is it possible to get on a mailing list to be alerted to updates to your package? 
And thanks much for the changes!  |

Drake Draconis
Shadow Cadre Shadow Confederation
3
|
Posted - 2011.09.17 05:27:00 -
[54] - Quote
Ok its not pulling the API key... its just sitting there.... I'm pretty sure I got all the files updated as specified... the DB connection is good... so whats causing it to not load the API information? |

MisterMagotchi
B4D W0LF B4D W01F
6
|
Posted - 2011.09.17 06:26:00 -
[55] - Quote
I don't know, and responding back and forth on the forums here isn't the best way to troubleshoot. Send me a mail with your comms. information or something so we can work it out.
I don't plan on making a mailing list about this. I wish the forums would email people notifications of watched threads, but they don't, and I agree that it's irritating. |

Drake Draconis
Shadow Cadre Shadow Confederation
3
|
Posted - 2011.09.17 17:44:00 -
[56] - Quote
Sent email. Look forward to contacting you..... |

Phoebus ApolloX
Reasonable People Of Sound Mind
1
|
Posted - 2011.09.17 21:28:00 -
[57] - Quote
I ran into an unexpected behavior. The updating bot script seems to add people to the correct forum group, but when API keys get deleted or characters with a valid API get booted from corp it doesn't seem to be removing them from the group. I let the script run overnight in case it's just a cache issue.
I haven't looked too far into it yet, but I'd appreciate any suggestions in pinning down the problem. I've updated the script to the version last supplied. |

MisterMagotchi
B4D W0LF B4D W01F
6
|
Posted - 2011.09.17 22:43:00 -
[58] - Quote
Phoebus:
I just did some testing on it, and it appears to work correctly:
I did API registration for myself. I deleted my API key (at CCP's site). I then tweaked my Cached Until time to be really old. Then when the cron job kicked in and did the check, since the API's "account/APIKeyInfo.xml.aspx" for my key ID and verification code was still cached (CCP currently caches it for about 5 minutes), my groups in TS and the forums were not changed. I changed my Cached Until time again to something old. This time when the cron job ran, my groups were revoked in TS and in the forums, and I verified that my user_permissions field in the "users" table was cleared.
Let me know if it still doesn't work for you. |

Phoebus ApolloX
Reasonable People Of Sound Mind
1
|
Posted - 2011.09.18 00:31:00 -
[59] - Quote
How old does cache time need to be before it runs a check? |

Drake Draconis
Shadow Cadre Shadow Confederation
3
|
Posted - 2011.09.18 01:15:00 -
[60] - Quote
Ran a test to act as if I booted a corporation. Still hasn't kicked said users... how long before it actually does that? Seems kinda odd that it hasn't done that as the cache has come and gone. (All I did was remove the entry of the corp in the config file) |
|

Phoebus ApolloX
Reasonable People Of Sound Mind
1
|
Posted - 2011.09.18 01:33:00 -
[61] - Quote
As an update, the updated code must have fixed the issue because everything did boot automatically that should've. It might be useful to still know how old a cache must be out of date before it re-checks, though. |

MisterMagotchi
B4D W0LF B4D W01F
8
|
Posted - 2011.09.18 02:48:00 -
[62] - Quote
Sure. Check the documenation --> Components --> check-users.php That's basically accurate, except in the last update, I changed that minimum time from 30 minutes to an hour, and I forgot to update the documentation to match or put it in the changelog.
The reason forums users are basically checked once every 24 hours and users active in Teamspeak are basically checked every hour is that I wanted to prioritize checking to those in comms. and also not be constantly hammering CCP's servers with checks of every registered person every hour. People in TS get checked more often and with higher priority than people not in TS. As you said you're only using the forums portion of this, you're welcome to tweak the DATE_SUB part in the SQL that chooses the user (line 57 in the current check-users.php file for those not using TS functionality). Basically that line just compares the currently stored Cached Until time in the database with the current time minus 23 hours, and if the Cached Until is older, that user is in the running to be checked, subject to the ORDER BY line's priorities. If you wanted to have them in the running as soon as their Cached Until time expires (1 hour from last check or actual API CachedUntil time, whichever is greater), you could get rid of the DATE_SUB entirely and just make it say "NOW()" instead of "DATE_SUB(NOW(), INTERVAL 23 HOUR)". Alternatively, you could tweak the time amount, like "37 MINUTE" OR "3 HOUR". |

Drake Draconis
Shadow Cadre Shadow Confederation
3
|
Posted - 2011.09.18 05:55:00 -
[63] - Quote
Got it working.... the delay is a major factor so I'm fine tuning that.
Some things to note.
I've noticed that 8 times out of 10 the API server doesn't answer... not sure if its CCP messing with it or something else.
I'm also trying to make sure my cron job is working correctly.
Could you please answer this little riddle.
* * * * * /usr/bin/php5 folder1/folder2/eve-api-reg/check-users.php 2>&1
The underlined part... what is that?
Thanks. :)
PS: SWEET MOD THIS IS! |

MisterMagotchi
B4D W0LF B4D W01F
8
|
Posted - 2011.09.18 10:15:00 -
[64] - Quote
Yeah. Regarding the delay, I'll likely add that to the config. in a future release, as it makes sense that people would want to tweak it if they don't use the Teamspeak functionality.
I haven't had any failed connections to the API server in a couple days on mine, and if I do have them, it's only one in a day.
Whoops. I need to correct that in the instructions. That's actually incorrect. The documentation should have " > /dev/null 2>&1" instead of just " 2>&1".
Here's what " > /dev/null 2>&1" means in English: "Redirect standard output to /dev/null (a blackhole) and redirect standard error to standard output." It's a very common thing for people to add onto the end of their cron jobs in order to prevent getting any email output from the cron jobs.
In the case of the current documentation, which I will immediately update in the web documentation and in the readme.html on my next release, it's only redirecting stderr to stdout, so it's not doing much. |

Drake Draconis
Shadow Cadre Shadow Confederation
3
|
Posted - 2011.09.18 19:32:00 -
[65] - Quote
Ok.... the weird thing is... if I run it manually from command prompt... it works.
But if its running by itself... it won't connect to the API Server... not sure why.
I'll try adding the corrections and see if it fixes it.
Update: ok I think I found out why....for some reason the cron job won't run correct in its current context.
If the script is run from the servers home directory where ever the hell it is...it errors out.
If its run from the directory (in this case the eve-api-reg) in which its located...it loads fine.
Guess I'll need to figure out how to bypass that and I'm not having much luck in that. Weird thing is... it shouldn't be having this kind of trouble... hate to have to run this script manually.  |

MisterMagotchi
B4D W0LF B4D W01F
8
|
Posted - 2011.09.18 23:16:00 -
[66] - Quote
Drake:
If that's the case, then try this as the cron job:
* * * * * cd PATH_ABOVE_EVE_API_REG/eve-api-reg && /usr/bin/php5 check-users.php
The "&&" means "and", so if the first command returns TRUE, it runs the second command. That's a common way to run a cron job from a specific working directory. Of course edit the "PATH_ABOVE_EVE_API_REG" section.
I don't have to do that on mine, though.
For those reading this and unsure why I'm saying "/usr/bin/php5", it's a specific thing for his web host he needs to do to use PHP 5 instead of PHP 4. |

Drake Draconis
Shadow Cadre Shadow Confederation
3
|
Posted - 2011.09.18 23:35:00 -
[67] - Quote
I'll give that a shot.
update: It works just fine now!
Much thanks!    |

MisterMagotchi
B4D W0LF B4D W01F
8
|
Posted - 2011.09.22 00:50:00 -
[68] - Quote
New version released.
From my changelog: "2011-09-21 - 1.55 - Fixed users with single-quotes in their EVE character names not being able to register. Made check frequency configurable. Minor documentation changes."
Changed files (replace): readme.html, index.php, check-users.php
Changed files (hand edit): config.inc.php (added Check Frequency section at the end after Ignore Forum Groups) |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.25 21:29:00 -
[69] - Quote
Just came back and did the updates, and still, I am impressed.
What I may try to do just for fun is make a installer similar to phpbb's forums installer so that the end user just has to place the files with the correct permissions and run with it.
Ill let ya know when I finish it. |

MisterMagotchi
B4D W0LF B4D W01F
8
|
Posted - 2011.09.26 10:10:00 -
[70] - Quote
The only step an installer could reasonably do is create the table in the database (or maybe allow them to pre-configure the config.inc.php). I don't see the point. |
|

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.26 13:26:00 -
[71] - Quote
Like I said, just for the lols, and the computer illiterate.
Gonna start on it once I fix my dang server. Broke it testing something else  |

Eugene Spencer
Rodents of Unusual Size
9
|
Posted - 2011.09.26 18:02:00 -
[72] - Quote
Hello,
So far, this is excellent! I am using it on my corp's website - no TS stuff.
I used another phpBB registration script before. It was difficult to upgrade phpBB since it was so heavily integrated with the core files. This is much better!
Just one thing though - when you add a user to a group, is it possible to assign that group as the user's default? For example, if a corp member joins, their default group should be "corp members". Basically I want group colours assigned to each member.
Of course, this could get complicated if a user is a member of multiple groups. But do you have any thoughts on this?
All in all, a top script!
Eugene |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.26 18:15:00 -
[73] - Quote
I think the group they are assigned to gets set to default, I haven't really paid much attention to that.
If not, I don't think it would be too hard to put a Boolean into the script to set default or not. |

Drake Draconis
Shadow Cadre Shadow Confederation
5
|
Posted - 2011.09.27 00:08:00 -
[74] - Quote
Yes it sets the group to default.
But only one group.
Not too big of an issue...still a top notch script. |

Eugene Spencer
Rodents of Unusual Size
9
|
Posted - 2011.09.27 13:04:00 -
[75] - Quote
Hmmmmm - it doesn't seem to be setting my defined groups as default. Any ideas? No doubt it'll be a single switch somewhere...
I've also modified the script to fit into the skin of my website - http://therodents.net/EVE-API-Registration/
Might give you guys some ideas.
Eugene |

Drake Draconis
Shadow Cadre Shadow Confederation
6
|
Posted - 2011.09.27 18:12:00 -
[76] - Quote
Eugene Spencer wrote:Hmmmmm - it doesn't seem to be setting my defined groups as default. Any ideas? No doubt it'll be a single switch somewhere... I've also modified the script to fit into the skin of my website - http://therodents.net/EVE-API-Registration/Might give you guys some ideas. Eugene
Things to check.
1: Configuration script.... make sure the corp ID is correct... 2: Make sure your cron job is triggering correctly...try running the command from the home directory via SSH (IF your web provider gives that kind of access) because 9 times out of 10 that will determine if its really working or not. 3: Manually trigger the script and check the error log in the admin panel.
Now I've fine tuned mine to run a little more frequently than designed...granted I've not patched mine...but I'm more paranoid than most...
I know for a fact that it will asign to the correct groups...it will MOVE corporation members if I change group suddenly...and it will KICK them out of that group to the group set if you comment out the corporation in the config file.
So odds are its the triggering of the script and not so much the configuration.
PS: I specified a specific group to kick them out too to know for sure if it works or not.... might work for you too. |

MisterMagotchi
B4D W0LF B4D W01F
8
|
Posted - 2011.09.28 05:57:00 -
[77] - Quote
Sorry for being AWOL. I really wish these forums would notify via email like every other forums system.
Colors are currently unsupported. It says so in the "current known issues" on one of the previous posts. They do get their default group set to the group they get assigned to, but the color is set in several places, not just in their entry in the members table. I'll figure it out eventually. Right now I have the flu. |

Laxen
Romanian Brother.s ROMANIAN-LEGION
0
|
Posted - 2011.09.29 07:11:00 -
[78] - Quote
Hi !
I installed and configured as far as I understood TeamSpeak-phpbb-eve-api-registration.
If I am following erroare web access:
"Error getting information phpBB cookie."
Can you guide me where it comes erroare, so you can fix.
Sincerely, |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.29 07:43:00 -
[79] - Quote
I haven't seen that error code before, and I have been trying to break this thing for weeks now...
I'm guessing the API registration script can not find what kind of cookie the board is giving it's clients...
Question, Are you using SSL? |

Laxen
Romanian Brother.s ROMANIAN-LEGION
0
|
Posted - 2011.09.29 07:54:00 -
[80] - Quote
I do not use SSL. Just access the page and I appears. check => http://tsreg.hellgames.ro/ |
|

Drake Draconis
Shadow Cadre Shadow Confederation
12
|
Posted - 2011.09.29 17:52:00 -
[81] - Quote
Installed patched files last night.
works like a charm like it did before....love the additions to the code.
Brilliant as ever.
*thumbs up* |

MisterMagotchi
B4D W0LF B4D W01F
8
|
Posted - 2011.09.30 02:22:00 -
[82] - Quote
Laxen:
I notice that you have installed this script on the subdomain "tsreg.hellgames.ro". Unless your forums are also on this same subdomain, this will not work. The Teamspeak registration script and phpBB must be on the exact same hostname (FQDN). Although it is possible to make cross-domain cookies with some extra configuration of phpBB, for the sake of simplicity, the code requires it be on the same exact fully-qualified domain name (FQDN) as phpBB.
The specific error you give, though, is not related to that.
The error means that while the index.php script successfully connected to the database server and selected the database you specified in the configuration, it was unable to run the query which determines the cookie name the board uses. I believe this likely means that $config['Forums DB']['Table Prefix'] is incorrectly set. If not, then it's another bug in my code. |

Laxen
Romanian Brother.s ROMANIAN-LEGION
0
|
Posted - 2011.09.30 08:09:00 -
[83] - Quote
Hello !
TS3 server is: host = tsreg.hellgames.ro: 20000
apy registering users with key is => http://tsreg.hellgames.ro/
so use the same domain and subdomain.
If I'm wrong somewhere please tell me ..
Sincerely, |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.09.30 12:23:00 -
[84] - Quote
TS3 and the registration script dont have to be on the same server and sub-domain but the need to be white-listed.
On the other hand, PHPBB and the registration script MUST be on the same server and same domain.
(I would also recommend that you remove your ts info from the forums, you may get a good bunch of trolls in there)
EDIT: It doesn't even look like you have phpbb installed, whats up? |

Laxen
Romanian Brother.s ROMANIAN-LEGION
0
|
Posted - 2011.09.30 22:49:00 -
[85] - Quote
Hello again!
It seems that I advanced a little:)
We reached the following error:
"Error: You are not logged in on the forums. Please do it and THEN try to register again."
You do not know what to do, if I can guide you ...
Sincerely, |

MisterMagotchi
B4D W0LF B4D W01F
8
|
Posted - 2011.10.01 04:36:00 -
[86] - Quote
Laxen:
You must have phpBB and the registration script on the exact same domain name.
For example, if your phpBB is at something like http://hellgames.ro/forums/ , then your registration script needs to be something like http://hellgames.ro/eve-api-reg/ . Notice that the domain names are exactly identical. As you currently have things set up, unless your forums are somewhere on the tsreg.hellgames.ro, the system will not work. You either need to move your phpBB installation to tsreg.hellgames.ro to be with your registration script (not recommended), or you need to move your registration script to the same domain as phpBB is currently installed. |

Drake Draconis
Shadow Cadre Shadow Confederation
13
|
Posted - 2011.10.01 20:58:00 -
[87] - Quote
2 Requests:
1: Add to the config file where you can drop "rejected" API keys there so we don't need to mod the user-check file.
2: Add a hyperlink at the end of the registration page that will allow any user (who isn't savvy about this stuff) to find their way back to the forums.
A: I realize that I can just mod the file but I have to remember to edit them every time you patch.
B: And yes I can add a hyper link to the end of your file but there should be some sort of way to do that without having to put it back in each time.
Granted nothing spectacular and easily anyone could do it...but If I forget to put these "mods" back in...life gets a little interesting.

Either way I'm happy with the script...but it would be nice to have those little minor things. |

MisterMagotchi
B4D W0LF B4D W01F
8
|
Posted - 2011.10.01 22:30:00 -
[88] - Quote
- I don't know what you mean by "rejected" API keys.
- I'll do this next time I release an update. I'm not going to make an update just for it, though.
|

Drake Draconis
Shadow Cadre Shadow Confederation
13
|
Posted - 2011.10.01 23:48:00 -
[89] - Quote
MisterMagotchi wrote:
- I don't know what you mean by "rejected" API keys.
- I'll do this next time I release an update. I'm not going to make an update just for it, though.
When they fail the API check..as in not on the registered corporations list... they get booted to the "registered users" group.
The only way to change that is to mod the check users file.
I'm asking to allow us to pick the group we want them to go to.
In some cases the registered users may not be the best group to dump a bunch of people in for any number of reasons.
It's not that big of a deal..just less hassle. |

MisterMagotchi
B4D W0LF B4D W01F
8
|
Posted - 2011.10.02 10:41:00 -
[90] - Quote
I can't see a good reason why Registered Users is a bad group to have them put in, as 100% of your non-bot users should be in the Registered Users group. What setup do you have that some people aren't in that group? I was under the impression that even with Newly Registered Users set up, users are in both anyway? It's not too big of a deal to add the feature, but I'm curious as to why anyone would even need it, and if you don't have a legitimate reason, to me it's just an extra thing to potentially confuse people to have in the config. If you have a reason that I think will have useful application to an even somewhat-wide group of people, I'll add that option. |
|

Simon Victor
Axiom Holdings Axiom Alliance
0
|
Posted - 2011.10.02 11:15:00 -
[91] - Quote
I like what I'm seeing here, and I may be installing it soon, but I'd have to say that I would like to see this more integrated into the phpBB ACP. I understand why you don't want to do that, but it seems like the re-registration of an API can happen in the user control panel fairly easily. I don't claim to be any kind of master at php so if this is off the wall just tell me to shut up. |

MisterMagotchi
B4D W0LF B4D W01F
8
|
Posted - 2011.10.02 21:18:00 -
[92] - Quote
Simon Victor wrote:I understand why you don't want to do that,... Anything else? |

Simon Victor
Axiom Holdings Axiom Alliance
0
|
Posted - 2011.10.02 23:44:00 -
[93] - Quote
MisterMagotchi wrote:Simon Victor wrote:I understand why you don't want to do that,... Anything else?
Like I said, it seems like the re-registration of an API can happen in the user control panel fairly easily. Integration just makes things more accessible to the users, and gives whatever site it's used on a more professional design. Just suggesting, that's all.
|

MisterMagotchi
B4D W0LF B4D W01F
8
|
Posted - 2011.10.02 23:49:00 -
[94] - Quote
It also makes it harder to maintain (for me), install, and update, and it makes it more prone to breakage with phpBB updates. |

Simon Victor
Axiom Holdings Axiom Alliance
0
|
Posted - 2011.10.03 00:00:00 -
[95] - Quote
MisterMagotchi wrote:It also makes it harder to maintain (for me), install, and update, and it makes it more prone to breakage with phpBB updates.
Fair enough. I know just enough to be dangerous so I didn't know if that would be feasible or not. |

Flamewreathe
State War Academy Caldari State
0
|
Posted - 2011.10.03 05:00:00 -
[96] - Quote
i got all the way to step 7 on the installation guide. but when i try to go to the /eve-api-reg/ page i get a file permission error.
What script is it that needs permission? or maybe i didnt configure something right... |

Drake Draconis
Shadow Cadre Shadow Confederation
13
|
Posted - 2011.10.03 05:55:00 -
[97] - Quote
MisterMagotchi wrote:I can't see a good reason why Registered Users is a bad group to have them put in, as 100% of your non-bot users should be in the Registered Users group. What setup do you have that some people aren't in that group? I was under the impression that even with Newly Registered Users set up, users are in both anyway? It's not too big of a deal to add the feature, but I'm curious as to why anyone would even need it, and if you don't have a legitimate reason, to me it's just an extra thing to potentially confuse people to have in the config. If you have a reason that I think will have useful application to an even somewhat-wide group of people, I'll add that option.
Lets just say that when people get kicked or API keys expire too soon I don't want them to be able to do certain things that "registered" users can do.
I'm rather particular about forums access and permissions.
As I said before...not that big of a deal. :) |

Drake Draconis
Shadow Cadre Shadow Confederation
13
|
Posted - 2011.10.03 06:00:00 -
[98] - Quote
Simon Victor wrote:MisterMagotchi wrote:It also makes it harder to maintain (for me), install, and update, and it makes it more prone to breakage with phpBB updates. Fair enough. I know just enough to be dangerous so I didn't know if that would be feasible or not.
Ever try to update PHPBB forums with an non-sanctioned/approved PHPBB modification(s)?
Do a little reading and you'll find out why its a bad idea.
http://www.phpbb.com/mods/rules-and-policies/
PHBB in-itself is rock solid and streamlined for performance...but if you modify any piece of it outside its normal boundaries and you get a patch...you'll be pulling your hair out and screaming at your toasted database.
Ain't going there again.
This modification is really an extension...and while it has its unusual setup....its a VERY small price to pay for the luxury of API security.
PS: If someone can make it a sanctioned mod then by all means go for it...but I suspect not many EVE Online corps/alliances use PHPBB. Call it a hunch. |

MisterMagotchi
B4D W0LF B4D W01F
8
|
Posted - 2011.10.03 06:32:00 -
[99] - Quote
Drake Draconis wrote:Lets just say that when people get kicked or API keys expire too soon I don't want them to be able to do certain things that "registered" users can do. Every user is a Registered User. A user even with a new, freshly created account, is a Registered User, possibly in addition to other groups (like Newly Registered Users). Normally to give a user extra permissions, they are then added to another group, but they aren't removed from Registered Users. Are not 100% of all your human users in the Registered Users group? |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2011.10.03 07:35:00 -
[100] - Quote
Magotichi,
The reason why so many pepole are asking for a "rejected" group is because some people have the link to the api mod only showing up to the users who are in the registered users group.
If the registered users group is not on the ignore list, it will move them completely to another group upon successful registration, BUT if they were to fail a few days later, it wont put them back in the registered group, it will put them in no group (unless they were in a group on the ignore list).
It would be usful but there are workarounds... All I did was add a few lines to have bad users added to a group, just like what the script would do if they were good... |
|

Drake Draconis
Shadow Cadre Shadow Confederation
15
|
Posted - 2011.10.03 20:35:00 -
[101] - Quote
MisterMagotchi wrote:Drake Draconis wrote:Lets just say that when people get kicked or API keys expire too soon I don't want them to be able to do certain things that "registered" users can do. Every user is a Registered User. A user even with a new, freshly created account, is a Registered User, possibly in addition to other groups (like Newly Registered Users). Normally to give a user extra permissions, they are then added to another group, but they aren't removed from Registered Users. Are not 100% of all your human users in the Registered Users group?
I quarentine failed API accounts to keep things easy to sort out from registered users group.
Basically its to prevent abuse for those who get booted and want to cause trouble that requires registered user access.
While every user is a reigstered user...not all have default access in that group necessarily. |

MisterMagotchi
B4D W0LF B4D W01F
8
|
Posted - 2011.10.05 01:56:00 -
[102] - Quote
Gary:
One person so far has asked for such a feature, not "so many". I maintain that 100% of all human users should always be in the Registered Users group, EVE usage aside. To only show the link to users who have not already registered is a bad idea also, as it doesn't make it easy for people to change their API key if they feel like it or to change their registered character (if they have multiple in registered corps.).
The Registered Users group should always be in the ignore list. It's a bad idea to remove users from that group.
You shouldn't have to add any lines to the code to do that. Line 115 of the current code for check-users.php is where you can set the forums group failed users go into upon failure. However, and this is the contention of this whole argument, to change that value is unsupported and in my opinion a bad idea, so I don't have any plans to add it to the configuration, in order to prevent confusion and data loss (the accidental removal of a bunch of users from the Registered Users group).
Drake:
I still don't understand. If you don't want failed API users to cause trouble, then don't give the Registered Users group very much power. There's no reason why a failed API user should be in a different category than a random Joe Blow that freshly registers on the forums as far as permissions go.
Anyway, as said, you can change it on line 115, but until someone gives me an explanation of the broad appeal of this, which I contest should be 0 with my current knowledge, it's an unsupported option. |

MisterMagotchi
B4D W0LF B4D W01F
8
|
Posted - 2011.10.06 18:04:00 -
[103] - Quote
Big problem:
Apparently when EVE's API server isn't completely down, it sometimes gives other error messages about being disabled.
My code currently wasn't explicitly checking for the bad API key error message, but was saying the key was bad if it just couldn't get the character list info.
This means that in this state, likely many registered people will get unregistered.
I just lost several people this morning.
I hope you guys have backups.
I'll be releasing a fix soon. |

MisterMagotchi
B4D W0LF B4D W01F
8
|
Posted - 2011.10.07 01:59:00 -
[104] - Quote
New version released.
From my changelog: "2011-10-06 - 1.56 - Fixed users having registration deleted when EVE API server gives error messages other than authentication failures. Made similar fix in registration script to differentiate between a bad key and the API server giving other errors. Added forums link to end of registration script success message. Caused the Username column to sort case insensitively in registration list. Minor documentation changes."
Changed files (replace): setup.inc.php, eve-api-get-names.json.php, admin/index.php, readme.html |

Eugene Spencer
Rodents of Unusual Size
9
|
Posted - 2011.10.07 11:10:00 -
[105] - Quote
Thanks for the updated. One of my users reported the issue twenty minutes ago. Patched and all sorted.
Cheers again!
Eugene |

Drake Draconis
Shadow Cadre Shadow Confederation
16
|
Posted - 2011.10.08 21:23:00 -
[106] - Quote
Much thanks for the update!
:) |

Rache Le'Bonbon
Dissension X Inc.
0
|
Posted - 2011.10.10 01:50:00 -
[107] - Quote
I have tried and tried to get this working and for some reason after I put in the API info, and click to get the characters... NOTHING it acts as if clicking that part has no effect on the script what so ever. Does anyone have any idea what could be causing this problem?
Thank you in advance |

MisterMagotchi
B4D W0LF B4D W01F
9
|
Posted - 2011.10.10 02:50:00 -
[108] - Quote
For one, it requires Javascript, but I assume you have that enabled.
When you change focus away from the API Key ID or Verification Code boxes (clicking anywhere else basically), either you should get some form of error message, or the characters list should populate with characters you have in registered corps.
If you want to send me a mail or email with your comms. details, I could help walk you through it. |

TA5E
Nagrom Security Syndicate Flatline.
0
|
Posted - 2011.10.10 06:03:00 -
[109] - Quote
The change event doesn't get triggered when you click the drop down box, you need to click elsewhere on the page.
Also, the json script stalls at
$characters = simplexml_load_file('https://api.eveonline.com/account/APIKeyInfo.xml.aspx?keyID=' . $_POST['Key_ID'] . '&Vcode=' . $_POST['Key_Ver_Code']) or die(json_encode(array('error' => 'Error connecting to EVE API server.')));
I hard coded the key id and the vcode and removed the previous checks and put a die right after that, but the simplexml_load_file never loads. |

MisterMagotchi
B4D W0LF B4D W01F
9
|
Posted - 2011.10.10 07:50:00 -
[110] - Quote
I prefer just having it load the latest version of jQuery from Google. Many people already have it cached anyway, as a lot of sites do that. |
|

Eugene Spencer
Rodents of Unusual Size
11
|
Posted - 2011.10.10 13:09:00 -
[111] - Quote
Hi B4D W0LF,
Would it be possible to have some kind of visual to tell the user that work is going on in the background? A wee loading gif or something? Feedback from my users suggest that people don't think anything is happening after they enter their API details. Sometimes it can take a while for the script to retrieve the API data and users have been refreshing and re-entering their details, since they think nothing is happening.
Just a thought! Eugene I have a specific comb for my beard. |

Rache Le'Bonbon
Dissension X Inc.
0
|
Posted - 2011.10.10 14:00:00 -
[112] - Quote
My PHP Info shows all that is ON. My hosting company allows us to change php.ini settings, but the script is def stalling someplace. I hate when things pause and give ya no clue on where it paused lol.
Also TA5E you can get the latest version of jquery from http://jquery.com/ and put it into your site. |

Rache Le'Bonbon
Dissension X Inc.
0
|
Posted - 2011.10.10 16:08:00 -
[113] - Quote
YEA!!! I found the problem!!
There is currently a certificate problem with
https://api.eveonline.com/account/APIKeyInfo.xml.aspx?
You can get the same info with just
http://api.eveonline.com/account/APIKeyInfo.xml.aspx?
So no need to use a HTTPS site to get the info as web certs can and will cause problems with scripts if they are out of date.
I knew it was something simple so I just made a simple script to test out the simplexml_load_file function. I was still not receiving any information so I used CURL to try and get the information. Upon using CURL it informed me
"Error fetching data: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed"
So I changed it from HTTPS to HTTP using simplexml and it worked like a charm. |

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.10 18:46:00 -
[114] - Quote
Rache: You're welcome to use the HTTP version if you want, but there's nothing wrong with the HTTPS site on their end, and I recommend the HTTPS over the HTTP for the fact that when you use SSL you aren't transmitting API Key information in plain text.
Eugene: I've thought about some sort of loading thing, but as you say, it would only be a meaningless passive loading indicator like a GIF. I'll plan to do that for the next release, On mine, as long as the API server isn't down, it's instant. The most I ever see it take is about 3 seconds. I've also never had anyone mention that as a problem in the past in my alliance, but I admit I've thought of it myself. Working with it the other day when the API server was sluggish/down for a while, though, I definitely saw where the need might be in that area either the API server or one's web server is slow. |

Rache Le'Bonbon
Dissension X Inc.
0
|
Posted - 2011.10.10 18:53:00 -
[115] - Quote
True, you are not transmitting the API key, However as you see from my post above "SSL certificate problem, verify that the CA cert is OK" A problem does exist someplace lol. I haven't used simplexml very much. Is there a command to ignore Cert's? I would prefer to use SSL if I could. Ill also look up on google as well and see if I cant find a ignore command. |

TA5E
Nagrom Security Syndicate Flatline.
0
|
Posted - 2011.10.10 19:00:00 -
[116] - Quote
My 1and1 webhost doesn't seem to want to do "exec("php check-users.phhp"); or any "exec("php...");
Tho exec("echo 'hello'"); works. |

Rache Le'Bonbon
Dissension X Inc.
0
|
Posted - 2011.10.10 19:09:00 -
[117] - Quote
Make sure you can use exec in your hosting companies site, also can you add a php.ini to your site. Some hosting companies allow this and it helps a lot, you can modify php to your liking. |

Drake Draconis
Shadow Cadre Shadow Confederation
16
|
Posted - 2011.10.10 19:32:00 -
[118] - Quote
EDIT: Nm.
1 And 1 user here as well... I do have some sort of fix here but I can't recall what it took to get mine working...
I'll need to look into that when I get the chance.
Odd thing to report.... I only see 1 user reported in the error log but no one else shows up in that log. |

Rache Le'Bonbon
Dissension X Inc.
0
|
Posted - 2011.10.10 21:37:00 -
[119] - Quote
Now I am having the problem that it is not connecting to my TS3 server. I know all ports are open I can access and modify the Teamspeak 3 Server from the same server. Anyone have any idea's to try?
Yes my white list has been updated, and working properly as I can connect with the admin website.
This is the error msg I am receiving!
Error connecting to TS server to check whether or not the Teamspeak Unique ID you entered is recognized by the Teamspeak server.
But everything is correct I must have checked it a 100 times now.. |

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.10 21:37:00 -
[120] - Quote
TASE: You need to edit line 263 of index.php in the current package and change "php" to "/usr/bin/php5" (the full path to PHP5 on your host). You also need to change the cron job to use "/usr/bin/php5".
I may make that a config. option in the next release. I won't be able to fix the cron job part, but I guess I can make a note about it in the documentation. In a properly configured environment, in my opinion, "php" should point to the latest version of PHP on the server, but in 1and1's case, they're using PHP4 and PHP5 concurrently, so for compatibility, they have PHP4 as the default.
I believe you also need to do as Rache says on 1&1 with the php.ini file (make a php.ini file in the directory that contains "allow_url_fopen = On"). I think Drake had to do that as well.
Drake: Either you haven't had anybody lose their registration and haven't otherwise had errors, or there's a problem. Try editing your entry directly in the EVE Registration table in the database so that your Verification Code is invalid, and set your Cached Until timestamp to something way in the past, and see if it then revokes your privileges and puts an error in the log. |
|

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.10 21:40:00 -
[121] - Quote
Rache: I'll try to help you with that tonight (in a few hours, after work).
You might check your Teamspeak logs though, to verify that it indeed has never connected to the server. |

Rache Le'Bonbon
Dissension X Inc.
0
|
Posted - 2011.10.10 21:45:00 -
[122] - Quote
Found my problem! others may want to take not if it hasn't been said before. In the config
$config['TS Server']['Script Nickname'] = 'EVE Registration bot';
I had
$config['TS Server']['Script Nickname'] = 'EVE Registration Assistant';
I guess there is a limit on the length of the script nickname that can be used. Assistant will not work and give an error as if it cannot connect each time. But bot works just perfectly!
Just an FYI for anyone in the future to take note of! |

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.10 21:47:00 -
[123] - Quote
Cool, Rache. I'll have to look into that limit and put it in the config. documentation. |

Drake Draconis
Shadow Cadre Shadow Confederation
16
|
Posted - 2011.10.10 22:25:00 -
[124] - Quote
MisterMagotchi wrote: Drake: Either you haven't had anybody lose their registration and haven't otherwise had errors, or there's a problem. Try editing your entry directly in the EVE Registration table in the database so that your Verification Code is invalid, and set your Cached Until timestamp to something way in the past, and see if it then revokes your privileges and puts an error in the log.
The day the API server took a nose dive prior to your patching it revoked the rights of every member on the list...but only reported my name as such in the error log. |

Rache Le'Bonbon
Dissension X Inc.
0
|
Posted - 2011.10.10 23:06:00 -
[125] - Quote
Here is another issue I found and have corrected. I have only found this issue to cause any problems but you may want to update the script.
in index.php Line 209
$corp = get_eve_corp ($_POST['Key_ID'], $_POST['Key_Ver_Code'], $_POST['Character_Name']) or die('Error getting corporation information with submitted API information.'); if ($corp == -1) { //connection error die('Error connecting to EVE API server to verify corporation membership. Please try again later.'); }
Should be
$corp = get_eve_corp ($_POST['Key_ID'], $_POST['Key_Ver_Code'], stripslashes($_POST['Character_Name'])) or die('Error getting corporation information with submitted API information.'); if ($corp == -1) { //connection error die('Error connecting to EVE API server to verify corporation membership. Please try again later.'); }
The reason for this change is for people that have names like mine with a ' in the name. This caused problems and could not verify the corp with the character because it had a slash in it. IE Rache Le\'Bonbon. The fix will remove the slash and allow the script to run properly.
I have not found any other places in the script where this may exist. I will keep my eye out. |

TA5E
Nagrom Security Syndicate Flatline.
0
|
Posted - 2011.10.10 23:52:00 -
[126] - Quote
Replacing in the exec the command from php to /usr/bin/php5 doesn't affect the result here on 1and1
Still warns about => exec() [function.exec]: Unable to fork [/usr/bin/php5 -v] |

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.11 00:26:00 -
[127] - Quote
TA5E: I don't know. It works for Drake, and he's on 1&1.
Rache: Although from looking it, you should be right, I do have a character in my corp. with a single-quote in his name, and he registered just fine after my 1.55 update. I'll probably correct that anyway, though, after doing some testing to see why it worked for me in the first place. It might be that you have Magic Quotes on in PHP, which would then be double-escaping things unnecessarily.
EDIT: I also verified that it didn't put a backslash on his name in the database.
Drake: I don't know why. Mine was filled with log lines of people being deleted, but I didn't lose everybody (since I caught it in time). The moral of the story is that backups are key, always. Sorry for the loss, though. |

Rache Le'Bonbon
Dissension X Inc.
0
|
Posted - 2011.10.11 02:06:00 -
[128] - Quote
Thanks, Yea I will have to modify the script to turn off magic quotes for this site. Would be easier than updating the whole thing, but it would be a good thing to note in doc's. BTW thank you for taking an active roll in your script, so many make it and you never hear from them again!
This added to the top of index.php took care of all slashes if you magic quotes are turned on. May be a good thing to add just so its a non issue.
if (get_magic_quotes_gpc()) { $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST); while (list($key, $val) = each($process)) { foreach ($val as $k => $v) { unset($process[$key][$k]); if (is_array($v)) { $process[$key][stripslashes($k)] = $v; $process[] = &$process[$key][stripslashes($k)]; } else { $process[$key][stripslashes($k)] = stripslashes($v); } } } unset($process); } |

Curson
The Technomages Crimson Alliance
0
|
Posted - 2011.10.11 04:29:00 -
[129] - Quote
Ok first off, excellent work being the first to actually attempt this with the new keys. From the posts here seems fairly solid.
However in my case we are hitting a wall with no real explanation. After Key entry when the user goes to click the character selection drop down the setup holds for second (It doesn't lock up) It seems to be attempting to contact the API server then returns with a message...
"Error Contacting API server"
Now I'm pretty sure of the culprit but before I proceed, is this the error that was displayed due to the 'EOL' vs. EOL and SQL version that was listed earlier in this thread? No real description of the that error was ever given only that the mod "Didn't work".
We aren't running 5.3 and I'm sure we need to upgrade, but before I go chasing that I wanted a little feedback here.
Thanks for the hard work BTW. |

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.11 04:51:00 -
[130] - Quote
Rache:
That edit you made, while it may work, isn't the best workaround in my opinion.
In many configurations, PHP settings can be changed in a local php.ini file.
In that case, you could put a file called php.ini in the directory with the scripts and put the following in it:
Quote:magic_quotes_gpc = Off For those that need to enable allow_url_fopen, they can also usually add the following line and have it work:
Quote:allow_url_fopen = On As Magic Quotes is already deprecated, I'm not going to sully my code with stuff to work around its presence. It's long been a hated setting by developers, and in the past, many big projects have made attempts to work with it, on or off, but these days I believe it's a minority of hosts that have it on by default, any good host should have it off, and it's not hard to fix your environment, either via the php.ini method or the .htaccess methods (when not using a suPHP environment) to change PHP settings.
Regarding allow_url_fopen, I plan to make the code check for the presence of CURL and use it if it's available, as it works a little faster than the default URL wrapper (url_fopen), and if it's not available, I'll have it use the default URL wrapper. This should be in my next release, which I'm working on now.
Also, a much easier way to undo the effects of magic_quotes_gpc in code (if you must do it in code):
Quote:if (get_magic_quotes_gpc()) { $_POST = array_map('stripslashes', $_POST); $_GET = array_map('stripslashes', $_GET); $_COOKIE = array_map('stripslashes', $_COOKIE); } It could be simplified even further, but it would be harder to explain.
Curson:
Thanks for the compliments.
The EOL thing is no longer an issue, because as of 1.54, I made everything use heredoc syntax (EOL) instead of nowdoc syntax ('EOL').
Verify that allow_url_cexec is on and verify that there isn't a firewall issue somehow.
If you still can't get it to connect, if you want to message me, we can probably work through whatever the problem is. |
|

Rache Le'Bonbon
Dissension X Inc.
0
|
Posted - 2011.10.11 05:05:00 -
[131] - Quote
Yea, php.ini is the best way, but its not always a perfect world. I guess when I make scripts I try to think of it this way. Most people are dumb, and probably don't know how to modify there php.ini! Or their hosting service wont let them, or even they do use it for other scripts thus can not turn it off.
So as making a script I always put stuff in to take care of any problems that might rise to any situation, so I don't have to worry about it later. Making assumptions that people are smart will always get ya into trouble. LOL no matter what its about Life, scripts, Eve lol
I do understand from your prospective that Magic Quotes is deprecated and I believe in 6.0 is gone all together if I remember reading. So really no big deal! I guess I am the only one that ran into it seems anyhow. LoL. At minimum its in these forums, for anyone that might run into it, they can then search and find answers!
I am a novice to advanced in what I know about PHP, basically know enough to get into trouble lol.
However I did run into one more problem! I can not get it to interface with TS3.. It says everything is ok, but it is not adjusting groups like it should! Haven't started to dig yet into it. you have my TS info jump on if ya like, or just write back.
Also I would like to get your opinion on why I can not use the HTTPS as it tells me that the cert is bad. |

Drake Draconis
Shadow Cadre Shadow Confederation
16
|
Posted - 2011.10.11 05:35:00 -
[132] - Quote
MisterMagotchi wrote:
Drake: I don't know why. Mine was filled with log lines of people being deleted, but I didn't lose everybody (since I caught it in time). The moral of the story is that backups are key, always. Sorry for the loss, though. Is it logging other things correctly?
didn't lose anything...
It just didn't report everyone getting removed even though it did as expected.
I'm only griping about the lack of logging...not so much function.
Which does so quite beautifully mind you. 
PS: I won't be able to get around to the 1and1 fixes due to real life but I'll try my best to look you up TA5E if you need help... but it may be the weekend.
|

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.11 05:48:00 -
[133] - Quote
Also, guys, although I mentioned some fixes in index.php, I apparently forgot to include the updated index.php in my most recent release, so they actually weren't added, and I'll instead stick it in my next release.
Sorry about that. |

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.11 08:49:00 -
[134] - Quote
New version released.
From my changelog:
Quote:2011-10-11 - 1.57 - Now uses cURL if available or url_fopen wrapper if not. PHP command (path to PHP binary), as used in registration script, is now configurable. Fixed users with single-quotes in names not being able to log in to forums after doing API registration. Fixed name of last poster in a forum not updating when a username is changed due to API registration. In the previous release, the updated index.php (registration script) was accidentally omitted, so the changes mentioned for 1.56 involving it are now in effect. Minor documentation changes. Changed files (replace): check-users.php, eve-api-get-names.json.php, index.php, setup.inc.php, readme.html
Changed files (hand edit): config.inc.php (added 'PHP Command' option and documentation at bottom) |

Quantum Doom
POWER of EQUALITY Monolith Alliance
17
|
Posted - 2011.10.11 12:49:00 -
[135] - Quote
Hello, i have a problem in TS3, im install you script, user EVE Registration Bot found in Admin server query group, but no one new user not enter any group. Forum registration work fine and no errors in txt file. Help me pls. |

Drake Draconis
Shadow Cadre Shadow Confederation
16
|
Posted - 2011.10.11 18:40:00 -
[136] - Quote
MisterMagotchi wrote:Although I mentioned some fixes in index.php, I apparently forgot to include the updated index.php in my most recent release, so they actually weren't added, and I'll instead stick it in my next release. The good news is that they weren't critical changes.
Sorry about that.
Drake: It should have logged, and it logged it all for me. That's what I'm trying to troubleshoot. Does it log errors normally otherwise?
Yes its logging....if you want to call it that...just only my account shows up when something happens.
All other accounts aren't being logged but its obviously doing something in the background. |

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.11 19:03:00 -
[137] - Quote
Quantum: It could be a lot of things. Verify your group configuration and TS ignore list are set up correctly. Beyond that, it's hard to give you specific information when I have limited information. If Teamspeak is connecting at some point (probably when the registration form is submitted, but possibly not when check-users.php runs, that rules out a lot of things. If you need help, mail or email me with your comms. information, and I may be able to help figure out why it isn't connecting.
Drake: I have no idea why it would log problems with only one user, it doesn't make sense that that one user would just be you (instead of some other random person), it's not happening for me, and I haven't seen it happen with anyone else.
Something you might try to test: On line 3 of check-users.php, paste the following:
Quote:log_message('Check script ran.', FALSE); With that, you should get an entry in errors.txt every time check-users.php runs via the cron job or via the registration form. My only guess I can think of is that it might be only logging when it runs via the registration form and not via the cron, but if you said it did show that your registration got deleted during the EVE API downtime, then that may not be it. Either way, that's a good troubleshooting step to make sure it at least can log at the appropriate times. |

Drake Draconis
Shadow Cadre Shadow Confederation
16
|
Posted - 2011.10.11 23:08:00 -
[138] - Quote
MisterMagotchi wrote:Drake: I have no idea why it would log problems with only one user, it doesn't make sense that that one user would just be you (instead of some other random person), it's not happening for me, and I haven't seen it happen with anyone else. Something you might try to test: On line 3 of check-users.php, paste the following: Quote:log_message('Check script ran.', FALSE); With that, you should get an entry in errors.txt every time check-users.php runs via the cron job or via the registration form. My only guess I can think of is that it might be only logging when it runs via the registration form and not via the cron, but if you said it did show that your registration got deleted during the EVE API downtime, then that may not be it. Either way, that's a good troubleshooting step to make sure it at least can log at the appropriate times.
Very nice...I'll insert that when i get access to the server tonight. |

Drake Draconis
Shadow Cadre Shadow Confederation
17
|
Posted - 2011.10.12 20:53:00 -
[139] - Quote
Running into RL stuff...gonna be a bit delayed on feedback results for the test. |

Rache Le'Bonbon
Dissension X Inc.
1
|
Posted - 2011.10.13 22:59:00 -
[140] - Quote
Just to let ya know MisterMagotchi I am still having the problem with I register with the ' in my name. It register's fine but when I got to log in I can't, Log in with admin account remove ' and add ' and it works just fine after that. All I can think is that it has something to do with the database not wanting to see the ' as a '. Just letting ya know, not a big problem due to not many have ' in names.
Also I am working on a mod for this script. I will post what I have in here or to you, however ya like. |
|

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.14 02:58:00 -
[141] - Quote
Are you using the current version of the script (1.57)?
I made a character with a single-quote in the name, tested it as you said, it didn't work as you said, and I fixed it and did testing on it. It should be working with 1.57. It wasn't working because phpBB3's clean function converts single-quotes into "modifier letter prime" characters (a character that must be encoded in UTF-8 as 2 bytes). |

TA5E
Nagrom Security Syndicate Flatline.
0
|
Posted - 2011.10.14 17:58:00 -
[142] - Quote
Hey Magotchi, I've noticed that after my users become part of the API group, they dont get assigned that group as a default group. |

Rache Le'Bonbon
Dissension X Inc.
1
|
Posted - 2011.10.14 18:22:00 -
[143] - Quote
yea I noticed you did an update, so I updated and tested. let me do some more testing, however I did notice this time it made my clean name as! rache le+è-¦bonbon not rache le'bonbon somehow it got the +è in it! lol |

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.14 21:23:00 -
[144] - Quote
TA5E: I don't know what's happening for you, but all of my members have their default group (in phpBB) set as the group it assigned them to. As has been said before, default group colors are currently not working with this, so don't base it on that.
Rache: The way that shows up for you is actually sort of correct, in that that's how the symbol shows up when you aren't viewing it as Unicode, but since you said it looked like a single-quote last time we talked, it seems that on your host, it must be that it's inserting the symbol wrong, not that you're viewing it wrong. I may have to look into inserting the name value as hexadecimal instead of as a string to ensure it gets properly inserted on all platforms. It's supposed to show as a modifier letter prime symbol. |

Rache Le'Bonbon
Dissension X Inc.
1
|
Posted - 2011.10.15 03:51:00 -
[145] - Quote
Here is a mod I have made for this script by MisterMagotchi. This will allow you to set the EVE Avatar as you forum characters Avatar.
I recommend you make any backups before continuing, i am not responsible for you messing your scripts up.
Instructions on how to setup avatar in script.
MisterMagotchi may or may not include this in his script as a release. He is welcome to include it if he see's fit, as he is the author of the main script . I am just trying to add some more function to it that others may enjoy. |

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.15 20:42:00 -
[146] - Quote
It looks like a good idea, and your code seems fine. I'll see what I can do in the next release or so. |

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.21 01:12:00 -
[147] - Quote
New version released.
From my changelog:
Quote:2011-10-20 - 1.58 - Removed dependency on PHP mbstring module inadvertently caused by last update's single-quote fix. Made registration script force usage of UTF-8 character set when updating a user's username_clean (related to single-quote issue). Added ability to set EVE character avatars as forums avatars (code idea by Rache Le'Bonbon). Minor documentation changes.
Changed files (replace): check-users.php, index.php, setup.inc.php, readme.html
Changed files (hand-edit): config.inc.php (added EVE Avatars section toward the bottom, other very minor formatting and textual changes) |

Ulthary Chinmay
Imperial Academy Amarr Empire
0
|
Posted - 2011.10.21 18:19:00 -
[148] - Quote
Could it be requested that the scritp checks for director role and if the person got it then its add's them into an "director" group also |

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.22 03:05:00 -
[149] - Quote
I've looked into it, and I don't plan to add that feature, Uithary.
Some possible ways I've thought of as reasonable for doing it:
- Every X hours, grab corp/MemberTracking.xml.aspx for each corp., and cache a list of the character IDs of the all the directors (based on the "roles" bitmask) and what corp. ID they're in (either in a file or in the database). Use this data to determine if a user is a director of their corp. as they are checked. This is bad simply because I find it needlessly complex for a limited benefit.
- Allow Corporation keys, which are equivalent to Character keys (as opposed to Account/all-character keys), marking anyone as a director of their corp. if their provided key is a Corporation key. This is bad because directors would then not be required to give an Account key (with info. about all characters in their account), as is the default setting, and as I presume a lot of admins. would want.
Additionally, the config. would of course require a couple more settings (2 phpBB groups and 2 TS3 groups per corp. instead of 1 for each), with a mechanism for disabling the feature per-corp. (probably just using FALSE or 0 for the 2nd group).
There's a basic program plan, and I may soften on the idea eventually, but I don't feel like implementing the feature, given the things I said above and that I don't like the added complexity. |

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.22 05:30:00 -
[150] - Quote
I accidentally used nowdoc syntax again on line 221 of index.php ('EOL') instead of heredoc syntax (EOL), so those using PHP less than 5.3 would have had issues with yesterday's release.
I've updated the package, but I didn't change the version number or date. |
|

Ulthary Chinmay
Imperial Academy Amarr Empire
0
|
Posted - 2011.10.22 16:41:00 -
[151] - Quote
MisterMagotchi wrote: There's a basic program plan, and I may soften on the idea eventually, but I don't feel like implementing the feature, given the things I said above and that I don't like the added complexity.
i hope you pick to make it anyway since im not that good with coding, like i dont know how to do it xD, but would really love you if you made it :) |

Ulthary Chinmay
Imperial Academy Amarr Empire
0
|
Posted - 2011.10.23 14:12:00 -
[152] - Quote
Quote:EDIT 2011-10-22: Apparently corp/MemberTracking.xml.aspx requires a Corporation API key to even work. I didn't notice that. There may be another way to get that info out, though.
If CEO puts in the Corp key then it could cache directors char ID's and auto place them in the 2nd group when they enter a char API i guess |

Sjet Idahon
Lost Souls Continuum United Pod Service
0
|
Posted - 2011.10.24 21:03:00 -
[153] - Quote
Will it be possible to add users to a CHANNELgroup? I will create Corp only Channels on my Server in which the other Corps of my Allianz are not able to join. With the Right System of Teamspeak, this is only able with Channelgroups, not with Servergroups. |

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.25 06:59:00 -
[154] - Quote
I don't have any plans to add channel groups, but I will spend some time looking into it, and if it's not very difficult to add, I may just do it. Don't count on it, though. |

Eugene Spencer
Rodents of Unusual Size
11
|
Posted - 2011.10.26 08:40:00 -
[155] - Quote
Hello!
In the next version, would it be possible to remove the styling from index.php and stick it in a seperate CSS file? It'll make modifying the styles easier :)
Thanks!
Eugene I have a specific comb for my beard. |

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.26 21:39:00 -
[156] - Quote
In what way would it be easier: upgrading purposes only or for some other reason? As it's just one uninterrupted block of CSS code, and it only relates to that one page/script, it seems logical to me for it to be in the script itself. If it's that you believe it will make upgrades easier, as I don't change the CSS often between different versions, you're right, but copying one block of CSS of your custom CSS into the file every time you upgrade it doesn't seem like a big issue to me, and I believe keeping it simple outweighs the benefit of not having to do that. |

Gaitrie
DPB Corporation
0
|
Posted - 2011.10.26 23:02:00 -
[157] - Quote
Great work on this mod for Eve.
My provider is using an older version of php (yes... I know :-) )
I have followed the guide and installing and changing the config files. I have replaced all items in the config.inc.php. I created the link and then I just get a blank page... so no idea what I am doing wrong.
Also have a question for entries in the config.inc.php file - below are the first couple lines of the TS3 setup.
//Teamspeak 3 connection settings $config['TS Server']['Server'] = 'localhost'; //If not localhost, your TS server will need to whitelist your web server. $config['TS Server']['Port'] = 9987; //Port for the virtual server you want to manage. Default is 9987 $config['TS Server']['SQ Port'] = 10011; //Default is 10011 $config['TS Server']['SQ Username'] = 'serveradmin'; $config['TS Server']['SQ Password'] = 'mytssqpassword'; $config['TS Server']['Script Nickname'] = 'EVE Registration Bot'; //If over 30 characters, TS connection will fail.
As in my case (older php) I need to replace all text in bold with my details and leave the ' ' in place. But why do the ports (9987 and 10011) do not have the ' ' ?
And does anyone have the setup files for a php5.2 so I can compare and see what is changed to get this to work.
|

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.26 23:27:00 -
[158] - Quote
If you're getting a blank page when you visit index.php "eg. http://example.com/eve-api-reg/", check your Apache error log (or other places where PHP errors are shown on your host), and see if there are any errors being generated for the script.
The config.inc.php file doesn't need to be edited any differently for those with an older version of PHP than 5.3.
The reason that the config. options composed solely of numbers don't have quotes is because they don't need them. In this case, the script would work identically even if you did put single or double quotes around those port numbers. In more technical terms, I'm assigning them as integers, but PHP is weakly typed, and therefore even though I plan to use the numbers in a string context later in the code, I'm not required to specify them as strings ahead of time. With non-numeric text, though, if I didn't put quotes around it, PHP would assume I was referring to the name of a constant.
If you need some help working through these problems, if you want to give me your TS3 info in a mail, and I can likely help get it figured out. It also helps me to find unexpected bugs or compatibility issues that I wouldn't otherwise notice on my own system. |

Gaitrie
DPB Corporation
0
|
Posted - 2011.10.26 23:44:00 -
[159] - Quote
Got it working - now see the Eve API screen. Problem was database not correct, had an additional space and found that out by chekcing the error text file.
Took me like 3 hours :-)
Now the problem I see now is that I am on a windows hosting setup - so how do I setup a cron job as I googled and do not see an option to set it up in windows environment |

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.27 01:28:00 -
[160] - Quote
I don't know what Windows hosts provide as a cron equivalent. Basically you need a scheduled task to run the PHP5 executable with that check-users.php script. Locally, this would probably look something like "php.exe C:\path_to_website_root\eve-api-reg\check-users.php". Alternatively, you could allow web access to it (with the assumption it's even blocked, as you're probably not using Apache as your web server, so the .htaccess file is probably doing nothing), and you could remotely access it via the web from another machine via a Scheduled Task or cron job (there are many cron job services if you Google that sort of thing), probably using cURL, or if you really wanted to, through a web browser. There are actually quite a few ways to do it, but all of them would take some explaining, and I really don't want to take the time to support this on Windows. PHP on Windows is somewhat of an unholy abomination in the first place.
A popup saying, "Error getting API data from EVE server." likely means neither the cURL extension for PHP is loaded nor the allow_url_fopen option is available. |
|

Gaitrie
DPB Corporation
0
|
Posted - 2011.10.27 06:28:00 -
[161] - Quote
Well then need to talk with the hosting provider. Great app and keepup the good work :-) |

Gaitrie
DPB Corporation
0
|
Posted - 2011.10.27 14:24:00 -
[162] - Quote
MisterMagotchi wrote:A popup saying, "Error getting API data from EVE server." likely means neither the cURL extension for PHP is loaded nor the allow_url_fopen option is available.
Have checked with my provider and they have both the cURL and the allow_url_fopen active and enabled. Now do I need to have the cron setup before I can register a user ? |

MisterMagotchi
B4D W0LF B4D W01F
10
|
Posted - 2011.10.27 20:48:00 -
[163] - Quote
No, but you'll need to adjust your path to the PHP5 executable for your system (toward the bottom of the config.inc.php file). This will depend on your provider, and will probably involve "php.exe". |

Gaitrie
DPB Corporation
0
|
Posted - 2011.10.27 21:21:00 -
[164] - Quote
Hmm weird - did not have that part :-) redownloaded the files again and it works now |

venomkid
1 percent Club
0
|
Posted - 2011.11.03 01:36:00 -
[165] - Quote
I'm getting the following when i navigate to the registration page
Error: You are not logged in on the forums. Please do so and then try to register again.
im guessing its not linking to the fourm page correctly or something cause im most definetly logged into the fourm page...also does this have to be in the fourm folder? like /www/fourm/eve-api-reg/
or can it be in its own folder liker /www/eve-api-reg/
not sure what i did wrong..followed the setup guide maby i missed something -.- |

MisterMagotchi
White Powder
10
|
Posted - 2011.11.03 02:14:00 -
[166] - Quote
It has to be served on the same exact domain/hostname as the forums. For example, if your forums are on the hostname "www.example.com", maybe "www.example.com/forums/", the script would need to be somewhere on "www.example.com", maybe "www.example.com/reg-script/". There are no restrictions on its placement other than sharing the same exact hostname.
The error you're seeing means the script properly connected to the phpBB3 database and got the cookie name it uses, but when it checked for that cookie name on your computer for the domain on which it was running, it either didn't find it, or it found it, but upon checking the session timestamp for the cookie in the database, it thought it was expired. I assume it's the first thing: it's likely having trouble finding the cookie with that name.
If you would like, you can send me a mail or email with your TS3 details, and I can help you through it. |

venomkid
1 percent Club
0
|
Posted - 2011.11.03 03:04:00 -
[167] - Quote
Its at the exact same hostname. And could it be because the website is locally hosted?? So while its looking for bassetthosting.us.to its finding 192.168.1.40..... and i Sent you a eve msg. |

MisterMagotchi
White Powder
10
|
Posted - 2011.11.04 03:32:00 -
[168] - Quote
As I've mentioned before to others, it's not easy (without more API requests or periodic caching combined with a corporate key, and therefore a lot of changes to the code and how it works) to make it so Directors/CEOs are treated differently than regular users.
For your situation, the only reason I can see this mattering to you is if you have a specific icon for, say, ACME corp and another icon for ACME-Officers, or if you show the group names in front of each person's name. For the icons, it shouldn't be a big deal to have both. For the names, that's a limitation of how this works, I agree, but I don't care. You'll have to not show the name for the officers, shorten one or both names, or live with it. Regarding permissions, it should be no problem to grant everyone in ACME a certain set of common permissions and then grant everyone in ACME-Officers an extra set of permissions to add to or replace the others. |

crashchick
Perkone Caldari State
0
|
Posted - 2011.11.09 08:49:00 -
[169] - Quote
Hey all, I installed the scripted and modified the config what i wish but cant get it to run
When i log into the admin site i get
Warning: session_start() [function.session-start]: open(/home/users/web/b1298/ipg.eveowgcom/cgi-bin/tmp/sess_be0264c4b287ca8d34fe847721f5f789, O_RDWR) failed: No such file or directory (2) in /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php on line 5
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php:5) in /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php on line 5
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php:5) in /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php on line 5
Password:
Warning: Unknown: open(/home/users/web/b1298/ipg.eveowgcom/cgi-bin/tmp/sess_be0264c4b287ca8d34fe847721f5f789, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/users/web/b1298/ipg.eveowgcom/cgi-bin/tmp) in Unknown on line 0
any idea? |

crashchick
Perkone Caldari State
0
|
Posted - 2011.11.09 20:39:00 -
[170] - Quote
crashchick wrote:Hey all, I installed the scripted and modified the config what i wish but cant get it to run
When i log into the admin site i get
Warning: session_start() [function.session-start]: open(/home/users/web/b1298/ipg.eveowgcom/cgi-bin/tmp/sess_be0264c4b287ca8d34fe847721f5f789, O_RDWR) failed: No such file or directory (2) in /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php on line 5
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php:5) in /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php on line 5
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php:5) in /hermes/bosweb/web129/b1298/ipg.eveowgcom/eve-api-reg/admin/index.php on line 5
Password:
Warning: Unknown: open(/home/users/web/b1298/ipg.eveowgcom/cgi-bin/tmp/sess_be0264c4b287ca8d34fe847721f5f789, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/users/web/b1298/ipg.eveowgcom/cgi-bin/tmp) in Unknown on line 0
any idea?
nm I got it lol
some how my cgi-bin folder was deleted so created a new one and protect it ^^
epic fail |
|

MisterMagotchi
NUTS AND BOLTS MANUFACTURING F0RCEFUL ENTRY
11
|
Posted - 2011.11.09 21:20:00 -
[171] - Quote
Nice. I'm glad you got it figured out. |

Subsparx
Crimson Serpent Syndicate
0
|
Posted - 2012.01.05 04:42:00 -
[172] - Quote
I'm running in to a couple issues myself. The first was an issue with it loading the characters just like the previous person had. I was able to resolve that issue by commenting out the curl code as follows:
Quote:$api_url = 'https://api.eveonline.com/account/APIKeyInfo.xml.aspx?keyID=' . $_POST['Key_ID'].'&Vcode=' . $_POST['Key_Ver_Code']; //if (extension_loaded('curl')) { // $api_handle = curl_init($api_url); // curl_setopt($api_handle, CURLOPT_RETURNTRANSFER, TRUE); // if (!($api_xml = curl_exec($api_handle)) or curl_getinfo($api_handle, CURLINFO_HTTP_CODE) != 200) { // die(json_encode(array('error' => 'Error getting API data from EVE server.'))); // } // curl_close($api_handle); //} //else { $api_xml = file_get_contents($api_url) or die(json_encode(array('error' => 'Error getting API data from EVE server.'))); //}
Once that was done it correctly pulled up my character list so I'm guessing there was an issue with curl. The next issue occured shortly afterwards. I am getting the error "Error connecting to EVE API server to verify corporation membership. Please try again later." now after hitting register. However if I put in the url manually that it should be generating I can see character info in the XML page including my corporation ID. Any suggestions on how I can modify the code to make this work? I'm guessing it's another curl issue.
EDIT: Confirmed a curl issue. I disabled the module and it started working through the api_xml method. I don't need curl on any other websites so this will work just fine for me. |

Fly
Deep Core Mining Inc. Caldari State
0
|
Posted - 2012.01.22 01:54:00 -
[173] - Quote
I have problems with recieving char lists after entering API Key ID and Verification Code.
Checkbox is disabled with text "Loading. Please wait..."
no errors in errors.txt log :(
Point pls - what have i to check?
TY
P.S. Editing files like posted in previous message didn't help. |

Gary Hagon
Angry Hobos Interstellar Hobos
0
|
Posted - 2012.01.22 21:33:00 -
[174] - Quote
Magotchi, any chance of adding alliance support?
Some of the alliances in our colation have a TON of corps, so you could see the use of that...
Why not make a simple bool.
333333333 => array(13, 15, 0), //ACORP
0 for corp and 1 for alliance? |

MisterMagotchi
NUTS AND BOLTS MANUFACTURING F0RCEFUL ENTRY
13
|
Posted - 2012.01.31 19:56:00 -
[175] - Quote
I'm sorry I haven't been around the forums to help with things lately. Gary: I don't plan to add support for alliances, as that would add an extra HTTP call on each check.
Fly: I don't know if you're still having the problem or if you've moved on, but make sure you check your PHP and web server error logs to see if the problem might be mentioned there. The errors.txt won't show you everything. It's primarily meant for errors in everyday checks once it's up and running.
Again, if people want my attention, they need to email me. I haven't been playing EVE much lately, but I'm still willing to support people on this. |
|
|
|
Pages: 1 2 3 4 5 6 :: [one page] |