|
Page 1 of 3
|
KasLimon
Joined: November 2006
Posts: 494
Location: Madrid (Spain)
|
IP Country Flags
IP Country Flags 1.0.0 BETA-3
What is this mod for?
This mod adds the ability of taking user's country from IP. You can easily manage countries from ACP and add/delete IP ranges.
You can show user's flag everywhere near to their username, or only in viewtopic. You can also set which flag you want to show (user's profile or user's IP) in case of having the two of them available. You can set configuration from ACP -> Configuration -> Site -> Abilities.
Also, you can arrange memberlist by their IP country.
Demo board: iesmg.es/ip
Who created it?
This mod was created by Marco (3Di at phpbb.com). This mod was released here.
I've adapted it to Icy Phoenix, but this mod I show you has not all the features the original mod does. I think the current ones are enough.
Installation instructions
- Make a full backup of your forum, including database and files
This is strictly necessary because this mod can damage your database.
- Download the attached package
- Delete or rename images/flags folder
- Upload all files and folders located in root/ directory to the root of your forum
- Login as administrator and run install_ip_cf.php (http://www.youripforum.com/install_ip_cf.php) and follow the instructions. Please use a browser that supports javascript and wait until the installer ends.
- Delete install_ip_cf.php file and ipcf_data folder
- Open file ip_country_flag_1.0.0B2.txt included in the package and follow the instructions
- Clean cache
- Enjoy your new implementation!
Update from BETA-2 to BETA-3Upload root/install_ip_cf.php to install_ip_cf.php
Upload root/ipcf_data/* to ipcf_data/*
Login as Administrator and type this address: www.yourforum.com/ipcf_data/update_ip_cf_from_beta2.php
Wait until the updater finishes updating.
Open includes/usercp_register.php
Find $sql = "INSERT INTO " . USERS_TABLE . " (user_registered_ip, user_registered_hostname, user_id, username, user_regdate, In-Line, Finduser_next_birthday_greeting In-Line, After AddFind VALUES ('" . str_replace("'", "''", $user_registered_ip) . "', In-Line, Find'$next_birthday_greeting' In-Line, After Add, '" . $userdata['session_cf_iso3661_1'] . "'
Update from BETA-1 to BETA-2Upload root/adm/admin_ip_cf_user_flags.php to adm/admin_ip_cf_user_flags.php
Open includes/functions_groups
Find if($update_cache == true) Before, add if($user_cf == 'wo')
{
$update_cache = true;
}
Suggestions and opinions are always welcome. Have a nice day!
Description: |
|
Download |
Filename: |
ip_country_flag_1.0.0B3.zip |
Filesize: |
1.42 MB |
Downloaded: |
752 Time(s) |
____________ Gabriel Anca
Edited by KasLimon, Sat 08 Mar, 2008 16:59: Updating Attachment Edited by KasLimon, Sun 09 Mar, 2008 09:27: Uploading new package Edited by KasLimon, Wed 16 Apr, 2008 23:25: Updated to BETA-3 |
#1 Sat 08 Mar, 2008 11:31 |
|
Sponsors
|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Limun
Joined: January 2008
Posts: 1334
Location: [Censor]
|
Re: IP Country Flags
Thanks Kas...i will test it tonight
Caramba
____________ We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
|
#2 Sat 08 Mar, 2008 12:47 |
|
ThE KuKa
Joined: August 2006
Posts: 489
Location: Sabadell
|
Re: IP Country Flags
Thanks Kas, MODification man!
|
#3 Sat 08 Mar, 2008 13:05 |
|
Limun
Joined: January 2008
Posts: 1334
Location: [Censor]
|
Re: IP Country Flags
[*]Open file ip_country_flag_1.0.0B1.txt included in the package and follow the instructions
?? where is it ?
did u mean ipcf296a.txt
____________ We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
|
#4 Sat 08 Mar, 2008 13:10 |
|
KasLimon
Joined: November 2006
Posts: 494
Location: Madrid (Spain)
|
Re: IP Country Flags
I'm sorry, I mixed files
In the old package it was original mod file (much bigger and longer). I've updated the package with the correct file.
Thank you for reporting and sorry for the mistake
____________ Gabriel Anca
|
#5 Sat 08 Mar, 2008 17:00 |
|
Limun
Joined: January 2008
Posts: 1334
Location: [Censor]
|
Re: IP Country Flags
First try -falied-
ok see pics...
and as not installed (because of erorr in first pic) i saw also this ..
____________ We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
|
#6 Sun 09 Mar, 2008 06:04 |
|
KasLimon
Joined: November 2006
Posts: 494
Location: Madrid (Spain)
|
Re: IP Country Flags
I've tested it a lot of times before releasing...
I'll correct them.
Greetings!
____________ Gabriel Anca
|
#7 Sun 09 Mar, 2008 09:16 |
|
KasLimon
Joined: November 2006
Posts: 494
Location: Madrid (Spain)
|
Re: IP Country Flags
Please download the package and upload new files to your forum (adm/admin_ip_cf_user_flags.php and install_ip_cf.php)
Then try again. Thank you for reporting.
Greetings!
____________ Gabriel Anca
|
#8 Sun 09 Mar, 2008 09:26 |
|
Limun
Joined: January 2008
Posts: 1334
Location: [Censor]
|
Re: IP Country Flags
sec try
DEBUG MODE
SQL Error : 1050 Table 'ip_cf_ip_to_iso3661_1' already exists
CREATE TABLE ip_cf_ip_to_iso3661_1 ( ip_id int(6) NOT NULL auto_increment, ip_from int(11) unsigned NOT NULL default '0', ip_to int(11) unsigned NOT NULL default '0', iso3661_1 char(2) NOT NULL default '', ip_prefix char(3) NOT NULL default '', PRIMARY KEY (ip_id), KEY ip_from (ip_from,ip_to) );
Line : 50
File : install_ip_cf.php
shoud i clean this table ip_cf_ip_to_iso3661_1 or delete ?
____________ We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
|
#9 Sun 09 Mar, 2008 12:02 |
|
KasLimon
Joined: November 2006
Posts: 494
Location: Madrid (Spain)
|
Re: IP Country Flags
Well, now you can't go back. It's because of the first error, so enter to the install like this:
http://www.your_ip_board.com/install_ip_cf.php?step=2
Greetings!
____________ Gabriel Anca
|
#10 Sun 09 Mar, 2008 12:06 |
|
Limun
Joined: January 2008
Posts: 1334
Location: [Censor]
|
Re: IP Country Flags
now i go to that manual part
but see this...PS I didnt done yet manual part "ip_country_flag_1.0.0B1.txt"
____________ We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
|
#11 Sun 09 Mar, 2008 12:15 |
|
KasLimon
Joined: November 2006
Posts: 494
Location: Madrid (Spain)
|
Re: IP Country Flags
You have to apply code changes related to constants.php.
Look at the txt
Greetings!
____________ Gabriel Anca
|
#12 Sun 09 Mar, 2008 12:21 |
|
KasLimon
Joined: November 2006
Posts: 494
Location: Madrid (Spain)
|
Re: IP Country Flags
Package updated to 1.0.0 BETA-2
Updating instructions are included in first post. Greets!
____________ Gabriel Anca
|
#13 Sun 09 Mar, 2008 15:15 |
|
KasLimon
Joined: November 2006
Posts: 494
Location: Madrid (Spain)
|
Re: IP Country Flags
The mod has been updated to 1.0.0 BETA-3 version.
What's new?
Updated all the IP database to make most of the IPs recognisable.
I'll do a full checking of all the features and I'll add new ones when the time let me...
Greets!
____________ Gabriel Anca
|
#15 Wed 16 Apr, 2008 23:28 |
|
|
Page 1 of 3
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|