Remove the TULIP functions from functions.php, but keep the modifications to online user list function... then above the line edited for displaying flags in the online user list in functions.php, add this line:katib wrote:Ok
I will try use the fuction_tulip.php file again, purging the cache,etc...
maybe you remember, that I am using the geoip function in functions.php file for Online user function
Probablly, this explain why ACP pages are checking for geoip files, thought it didnot display any flag
Code: Select all
include_once($phpbb_root_path . 'includes/functions_tulip.php');
Code: Select all
include_once($phpbb_root_path . 'includes/functions_tulip.php');
$user_online_link = '<img src="./flags/' . iptocountry($row['user_id']) . '.gif"> ' . get_username_string(($row['user_type'] <> USER_IGNORE) ? 'full' : 'no_profile', $row['user_id'], $row['username'], $row['user_colour']);
$online_userlist .= ($online_userlist != '') ? ', ' . $user_online_link : $user_online_link;
Code: Select all
/**
* Check for read forums and update topic tracking info accordingly
This post http://www.phpbb.com/community/viewtopi ... 5#p9474635 have a script to populate user_ip value with IPs from users' first post IP.Marcus Wendel wrote:Perhaps it would be possible to create a script to populate the registration ip-address with the one from the first post to correct this issue?
Thanks but what does need to be changed in it to work within this mod instead of in the memberslist?mtrs wrote:This post http://www.phpbb.com/community/viewtopi ... 5#p9474635 have a script to populate user_ip value with IPs from users' first post IP.Marcus Wendel wrote:Perhaps it would be possible to create a script to populate the registration ip-address with the one from the first post to correct this issue?
That script checks for the existance of user_ip, and if it doens't exist, pulls the ip address directly from the user's first post in the board.Marcus Wendel wrote:Thanks but what does need to be changed in it to work within this mod instead of in the memberslist?mtrs wrote:This post http://www.phpbb.com/community/viewtopi ... 5#p9474635 have a script to populate user_ip value with IPs from users' first post IP.Marcus Wendel wrote:Perhaps it would be possible to create a script to populate the registration ip-address with the one from the first post to correct this issue?
/Marcus
I think that would be the ideal solution, unfortunately I have no php coding skills so I hope someone can help with that.dpaanlka wrote:EDIT: Or, this script could, upon finding a non-existant user_ip field, find the user_ip in this manner and then populate the database for future use.
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.Marcus Wendel wrote:Thanks but what does need to be changed in it to work within this mod instead of in the memberslist?
/Marcus
Do you mean members or just guests ?dpaanlka wrote: Since installing it I've seen many interesting countries on my board, including China, Australia, Trinidad & Tobago, Thailand, Ukraine, Canada, Japan, the UK, and others! It's nice to see how international your board is!
Is that part of phpBB? I can't find that anywhere.katib wrote:Hi dpaanlkaDo you mean members or just guests ?dpaanlka wrote: Since installing it I've seen many interesting countries on my board, including China, Australia, Trinidad & Tobago, Thailand, Ukraine, Canada, Japan, the UK, and others! It's nice to see how international your board is!
Anyway, how can I display flags of online guests too ?
like this board:
It is a part of my MOD: http://gold.io3di.com/index.phpdpaanlka wrote:Is that part of phpBB? I can't find that anywhere.katib wrote:Hi dpaanlkaDo you mean members or just guests ?dpaanlka wrote: Since installing it I've seen many interesting countries on my board, including China, Australia, Trinidad & Tobago, Thailand, Ukraine, Canada, Japan, the UK, and others! It's nice to see how international your board is!
Anyway, how can I display flags of online guests too ?
like this board:
Yes you are right3Di wrote: It is a part of my MOD: http://gold.io3di.com/index.php
So I wonder, is there any one still using 3.0.4 ?This version has been tested and runs only on phpBB 3.0.4 though.
Well then I guess I'll have to write it into my MOD. Just making sure it wasn't already part of phpBB.3Di wrote:It is a part of my MOD: http://gold.io3di.com/index.phpdpaanlka 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:dpaanlka wrote:Is that part of phpBB? I can't find that anywhere.