Version 2.1 - March 11, 2002
================================================== ==
Well, it's been awhile! I sorta disappeared there while
doing many other things! I guess v2.0 that was supposed
to use the same images as vBStats didn't go as planned
(thanks Bane ). I removed this hack from my site
awhile ago when I was having some other problems. I have
finally decided to add it back and it worked great in 2.2.0,
and I'm sure it will work in all other 2.2.x versions.
Changes:
- Updated to work with vBulletin 2.2.x
- Added Display Flag in Member List - Thanks Orca
- Used slightly larger flag images by X-Fan (I did run
them through Ulead's 16-color optimization which cut
the total file size from 271K to 54K!)
- Added 'align="absmiddle"' to image tag for text vertical centering
- Fixed Bane's name in docs below where I botched it up!
- Support for 280 Countries
Version 2.0 - September 6, 2001
================================================== ==
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!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Just installed this hack on a 2.3.0 board, and it's working a charm, thank you very much
Quote:
09-06-01 at 10:46 AM AJR said this in Post #1 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.
Taking a very quick glance as your code, I think it's not working because you are using variables named after the countries to call whichever country needs to be selected. In thory this works, until an invalid char comes into the arrangement, amnd breaks the variable.
In other words $ctryTogoselected - $ctryUnited_Kingdomselected & even $ctryBritish_Indian_Ocean_Territoryselected are all valid variable names, but $ctryUmm_al-Qaiwanselected is not. (all the computer see's is $ctryUmm_al).
Update the variables to remove the hyphens and comma's and it will work
(sorry if someone else has already posted this soloution, i've not read the thread or anything, i just knew this was the problem from looking at the code.
anyway, like i said, great hack, thank you very much.
It's controled by the template, i can't see a mistake in the file edit causing this, all I can suggest is that you maybe use my template, it's unmodified (bar the flag hack that is).
great hack.... i used it along with the store ... only problem is.... when i buy the flag... it shows up in the "Your Country Flag" option in the store in the "Country" field.... but i don't see a flag anywhere in my posts, or in the member list... what's wrong?
also, when a new user tries to sign up it says to make sure and fill out all necessary fields, even though they have filled them all in (there is no profile field for the flag either since its in the store)... what can i do to fix that?
Yesterday at 02:57 AM Sin City said this in Post #246 great hack.... i used it along with the store ... only problem is.... when i buy the flag... it shows up in the "Your Country Flag" option in the store in the "Country" field.... but i don't see a flag anywhere in my posts, or in the member list... what's wrong?
also, when a new user tries to sign up it says to make sure and fill out all necessary fields, even though they have filled them all in (there is no profile field for the flag either since its in the store)... what can i do to fix that?
06-29-03 at 02:57 AM Sin City said this in Post #246 great hack.... i used it along with the store ... only problem is.... when i buy the flag... it shows up in the "Your Country Flag" option in the store in the "Country" field.... but i don't see a flag anywhere in my posts, or in the member list... what's wrong?
also, when a new user tries to sign up it says to make sure and fill out all necessary fields, even though they have filled them all in (there is no profile field for the flag either since its in the store)... what can i do to fix that?
From the sounds of it you have not made any of the template changes, i recomend going back to the instructions and following them again.