These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Teamspeak and phpBB Forums EVE Online API Registration System

Author
Drake Draconis
Brutor Tribe
Minmatar Republic
#81 - 2011-09-29 17:52:08 UTC
Installed patched files last night.

works like a charm like it did before....love the additions to the code.

Brilliant as ever.

*thumbs up*

================ STOP THE EVEMAIL SPAM! https://forums.eveonline.com/default.aspx?g=posts&t=78152

MisterMagotchi
Deep Core Mining Inc.
Caldari State
#82 - 2011-09-30 02:22:46 UTC
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
Caldari Provisions
Caldari State
#83 - 2011-09-30 08:09:54 UTC  |  Edited by: Laxen
Hello !


so use the same domain and subdomain.

If I'm wrong somewhere please tell me ..

Sincerely,
Gary Hagon
W.A.R. Inc.
#84 - 2011-09-30 12:23:17 UTC  |  Edited by: Gary Hagon
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
Caldari Provisions
Caldari State
#85 - 2011-09-30 22:49:35 UTC  |  Edited by: Laxen
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
Deep Core Mining Inc.
Caldari State
#86 - 2011-10-01 04:36:35 UTC
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
Brutor Tribe
Minmatar Republic
#87 - 2011-10-01 20:58:57 UTC
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.

Big smile

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

================ STOP THE EVEMAIL SPAM! https://forums.eveonline.com/default.aspx?g=posts&t=78152

MisterMagotchi
Deep Core Mining Inc.
Caldari State
#88 - 2011-10-01 22:30:27 UTC

  1. I don't know what you mean by "rejected" API keys.
  2. I'll do this next time I release an update. I'm not going to make an update just for it, though.
Drake Draconis
Brutor Tribe
Minmatar Republic
#89 - 2011-10-01 23:48:49 UTC
MisterMagotchi wrote:

  1. I don't know what you mean by "rejected" API keys.
  2. 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.

================ STOP THE EVEMAIL SPAM! https://forums.eveonline.com/default.aspx?g=posts&t=78152

MisterMagotchi
Deep Core Mining Inc.
Caldari State
#90 - 2011-10-02 10:41:23 UTC
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
The Hornet's Nest
#91 - 2011-10-02 11:15:18 UTC
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.

Arguing with strangers on the internet is a sucker's game because they inevitably turn out to be, or are indistinguishable from, self-righteous sixteen-year-olds possessing infinite amounts of free time.

MisterMagotchi
Deep Core Mining Inc.
Caldari State
#92 - 2011-10-02 21:18:34 UTC
Simon Victor wrote:
I understand why you don't want to do that,...
Anything else?
Simon Victor
The Hornet's Nest
#93 - 2011-10-02 23:44:47 UTC
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.

Arguing with strangers on the internet is a sucker's game because they inevitably turn out to be, or are indistinguishable from, self-righteous sixteen-year-olds possessing infinite amounts of free time.

MisterMagotchi
Deep Core Mining Inc.
Caldari State
#94 - 2011-10-02 23:49:43 UTC
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
The Hornet's Nest
#95 - 2011-10-03 00:00:58 UTC
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.

Arguing with strangers on the internet is a sucker's game because they inevitably turn out to be, or are indistinguishable from, self-righteous sixteen-year-olds possessing infinite amounts of free time.

Flamewreathe
#96 - 2011-10-03 05:00:40 UTC
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
Brutor Tribe
Minmatar Republic
#97 - 2011-10-03 05:55:42 UTC  |  Edited by: Drake Draconis
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. :)

================ STOP THE EVEMAIL SPAM! https://forums.eveonline.com/default.aspx?g=posts&t=78152

Drake Draconis
Brutor Tribe
Minmatar Republic
#98 - 2011-10-03 06:00:04 UTC
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.

================ STOP THE EVEMAIL SPAM! https://forums.eveonline.com/default.aspx?g=posts&t=78152

MisterMagotchi
Deep Core Mining Inc.
Caldari State
#99 - 2011-10-03 06:32:10 UTC
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
W.A.R. Inc.
#100 - 2011-10-03 07:35:54 UTC  |  Edited by: Gary Hagon
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...