Version 2.0 - September 6, 2001
====================================================
This is the second release of the Country Hack. I have
converted it to make it work with Bain's vBStats hack
that will be released sometime in the near future. Bain
and I have been working together because both the Country
Hack and vBStats Hack require all the flags. We didn't
want you to have to have double images with different
names (which would mean over 450 files in the flags
directory!)
By changing the flag names from their country code to
their country name, it is now possible to have the ALT
tag show the name of the country when you put your mouse
pointer over the flag image.
Thanks to Stasik for starting the Admin Control Panel
Addon. I modified it to use the same country list in
the modifyprofile_country, so adding countries or making
changes need only one template change and an upload of
the flag .gif file. I also made it so you can not only
edit the Country Flag in the CP user profile edit, but
also choose a flag when adding a user with the CP.
Those that have installed Country Hack
v1.0 and are upgrading, you will need to do all the
steps below except for steps 2 and 8 (no changes in these
steps from v1.0). For changes in the other steps, just
overwrite everything between the // Country Hack Start/End
comments in your php files from v1.0 with what is in the
steps below.
Changes from v1.0:
- Images have been changed from country codes to country names
- Flags will now have their ALT text as country name.
- Modified Hack to work with Bane's vbStats hack that will be released in the future.
- Added CP Addon by Stasik and modded it for new country names
- Changed country field in USER table from CHAR(2) to VARCHAR(50)
- Support for 226 countries
Known Problems:
- Countries with a dash (-) or comma (,) will not show up
automatically in as selected when you or the member edit
their profile (Congo, Korea, and Micronesia are the only 3)
Anyone know a fix please let me know.
- The 'modifyprofile_country' template needs to be changed
to a default original templatesetid of -1 (changed templates
have the templatesetid set to 2) or else the Admin CP addon
will not work (Any ideas why?). To do this, use phpMyAdmin
and run this query:
UPDATE template SET templatesetid="-1" where title="modifyprofile_country"
This will move the template from the custom to default templates
and will be found in the 'User Option Templates' group.
Any questions or comments can be posted here. Enjoy!
====================================================
This is the second release of the Country Hack. I have
converted it to make it work with Bain's vBStats hack
that will be released sometime in the near future. Bain
and I have been working together because both the Country
Hack and vBStats Hack require all the flags. We didn't
want you to have to have double images with different
names (which would mean over 450 files in the flags
directory!)
By changing the flag names from their country code to
their country name, it is now possible to have the ALT
tag show the name of the country when you put your mouse
pointer over the flag image.
Thanks to Stasik for starting the Admin Control Panel
Addon. I modified it to use the same country list in
the modifyprofile_country, so adding countries or making
changes need only one template change and an upload of
the flag .gif file. I also made it so you can not only
edit the Country Flag in the CP user profile edit, but
also choose a flag when adding a user with the CP.
Those that have installed Country Hack
v1.0 and are upgrading, you will need to do all the
steps below except for steps 2 and 8 (no changes in these
steps from v1.0). For changes in the other steps, just
overwrite everything between the // Country Hack Start/End
comments in your php files from v1.0 with what is in the
steps below.
Changes from v1.0:
- Images have been changed from country codes to country names
- Flags will now have their ALT text as country name.
- Modified Hack to work with Bane's vbStats hack that will be released in the future.
- Added CP Addon by Stasik and modded it for new country names
- Changed country field in USER table from CHAR(2) to VARCHAR(50)
- Support for 226 countries
Known Problems:
- Countries with a dash (-) or comma (,) will not show up
automatically in as selected when you or the member edit
their profile (Congo, Korea, and Micronesia are the only 3)
Anyone know a fix please let me know.
- The 'modifyprofile_country' template needs to be changed
to a default original templatesetid of -1 (changed templates
have the templatesetid set to 2) or else the Admin CP addon
will not work (Any ideas why?). To do this, use phpMyAdmin
and run this query:
UPDATE template SET templatesetid="-1" where title="modifyprofile_country"
This will move the template from the custom to default templates
and will be found in the 'User Option Templates' group.
Any questions or comments can be posted here. Enjoy!
Comment