Pages: 1 2 [3] 4 5 6 :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
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. |
|
|
|
|
Pages: 1 2 [3] 4 5 6 :: one page |
First page | Previous page | Next page | Last page |