Page 5 of 9

Re: [DEV] TULIP: Tiny User Locator by IP

Posted: Thu Oct 29, 2009 5:43 pm
by dpaanlka
katib wrote:
dpaanlka wrote:Is that part of phpBB? I can't find that anywhere.
No, but a list of online guests along with theire IPs is availabe for Moderators and admins at:
yoursite.com/viewonline.php?sg=1
Ah yes, thanks for reminding me of that. I'll get to work on this to find a simpler and elegant solution.

I've setup a dev board by the way, at http://www.danpalka.com/phpbb

I'll be trying out edits and stuff there before posting them here.

Re: [DEV] TULIP: Tiny User Locator by IP

Posted: Thu Oct 29, 2009 6:05 pm
by Marcus Wendel
mtrs wrote:
Marcus Wendel wrote:Thanks but what does need to be changed in it to work within this mod instead of in the memberslist?
Of course, you should prefer only a one time code run and update all users data. Having said that, the code, I gave a link of, is a simple example. It updates an unset IP number once the profile of a user is clicked. Database query is run only once.
I solved it by copying memberlist.php to a new file called ip-fix.php, in that file I added your code and changed the number of results to a suitably large numbers to handle a large number of users at a time.

/Marcus

Re: [DEV] TULIP: Tiny User Locator by IP

Posted: Thu Oct 29, 2009 6:08 pm
by katib
Marcus Wendel wrote:I solved it by copying memberlist.php to a new file called ip-fix.php, in that file I added your code and changed the number of results to a suitably large numbers to handle a large number of users at a time.
/Marcus
Please, could you share your edits ?
How to make changes to php and html files?

Re: [DEV] TULIP: Tiny User Locator by IP

Posted: Thu Oct 29, 2009 6:15 pm
by Marcus Wendel
katib wrote:
Marcus Wendel wrote:I solved it by copying memberlist.php to a new file called ip-fix.php, in that file I added your code and changed the number of results to a suitably large numbers to handle a large number of users at a time.
Please, could you share your edits ?
How to make changes to php and html files?
First I added the code posted by mtrs at http://www.phpbb.com/community/viewtopi ... 5#p9474635 and then I changed

Code: Select all

$result = $db->sql_query_limit($sql, $config['topics_per_page'], $start);
to the below, this mean 1000 members will be handled at one time.

Code: Select all

$result = $db->sql_query_limit($sql, '1000', $start);
I use the free Notepad++ as editor, you can download it at http://notepad-plus.sourceforge.net

/Marcus

Re: [DEV] TULIP: Tiny User Locator by IP

Posted: Thu Oct 29, 2009 8:08 pm
by Marcus Wendel
Serbian addresses are correctly recognized but no Serbian flag is included.

/Marcus

Re: [DEV] TULIP: Tiny User Locator by IP

Posted: Thu Oct 29, 2009 8:16 pm
by dpaanlka
Marcus Wendel wrote:Serbian addresses are correctly recognized but no Serbian flag is included.

/Marcus
Hey sorry about that!

The flags I included with the package were made by someone else. I personally didn't like how they looked, and made my own set for my website. It does include a Serbian flag.

You can download it here: http://www.info-mac.org/flags/SI.gif

I'll make a new package with the better flags right now.

Re: [DEV] TULIP: Tiny User Locator by IP

Posted: Fri Oct 30, 2009 4:29 pm
by 3Di
dpaanlka wrote:
3Di wrote:
dpaanlka wrote:Is that part of phpBB? I can't find that anywhere.
It is a part of my MOD: http://gold.io3di.com/index.php ;)
I'm assuming phpBB maintains a list of the last IPs to have visited the board in the past however many minutes? If so this shouldn't be that hard to implement.
Nope, wrong assumption. :)

Re: [DEV] TULIP: Tiny User Locator by IP

Posted: Fri Oct 30, 2009 4:32 pm
by 3Di
katib wrote:
3Di wrote: It is a part of my MOD: http://gold.io3di.com/index.php ;)
Yes you are right
However you did say here:
http://gold.io3di.com/viewtopic.php?p=684#p684
This version has been tested and runs only on phpBB 3.0.4 though.
So I wonder, is there any one still using 3.0.4 ?
By the way, Your board looks very nice ;)
the IPCF for phpBB 3.0.6 RC3 version has been fixed right of today. Isn't public till phpBB 3.0.6 will be released though. ;)

Anyway: @ the Author of this MOD that belongs of this topic... keep up the good work and sorry for the intrusions. And a suggestion: what about if the server it is down? Will your MOD stand on that delay or?

Regards.

Re: [DEV] TULIP: Tiny User Locator by IP

Posted: Fri Oct 30, 2009 4:41 pm
by Neuropass
any screen shot? i'm not sure i understood this mod.... :oops:

Re: [DEV] TULIP: Tiny User Locator by IP

Posted: Fri Oct 30, 2009 5:16 pm
by dpaanlka
3Di wrote:Nope, wrong assumption. :)
Then how do you explain all the guest IP addresses in viewtopic.php?
3Di wrote:And a suggestion: what about if the server it is down? Will your MOD stand on that delay or?
This mod doesn't rely on any remote server.
Neuropass wrote:any screen shot? i'm not sure i understood this mod.... :oops:
Image

Re: [DEV] TULIP: Tiny User Locator by IP

Posted: Fri Oct 30, 2009 7:50 pm
by Marcus Wendel
The Guernsey flag is also missing.

/Marcus

Re: [DEV] TULIP: Tiny User Locator by IP

Posted: Fri Oct 30, 2009 8:02 pm
by dpaanlka
Updated the zip file to include 22 new missing flags.

http://www.danpalka.com/phpbb/download/file.php?id=8

Re: [DEV] TULIP: Tiny User Locator by IP

Posted: Sun Nov 01, 2009 10:01 am
by Marcus Wendel
dpaanlka wrote:Updated the zip file to include 22 new missing flags.

http://www.danpalka.com/phpbb/download/file.php?id=8
You might want to check the size of the Nauru flag :-)

I also recommend that you remove the Mac-related files that have no part in the actual mod.

/Marcus

Re: [DEV] TULIP: Tiny User Locator by IP

Posted: Sun Nov 01, 2009 10:02 am
by Marcus Wendel
So far this mod has been running fine in my forums, both in the small ones with low traffic and the biggest one with a lot of traffic, I'm very pleased with it.

/Marcus

Re: [DEV] TULIP: Tiny User Locator by IP

Posted: Sun Nov 01, 2009 9:17 pm
by dpaanlka
Marcus Wendel wrote:
You might want to check the size of the Nauru flag :-)
Thanks... fixed.