PDA

View Full Version : Country Hack


02 Sep 2000, 18:01
Hi all!
I saw this cool hack @

http://www.coolsigforum.com/member.php?action=register&who=adult

you can choose a country, and in the thread´s your country flag is shown

how can i import this in my board?

thx!

02 Sep 2000, 18:15
The operator of that forum doesn't post his/her hacks on here so you will have to contact him/her directly. I could easily make that hack if you can supply me with all the flag icons that match each country.

02 Sep 2000, 18:26
That is a VERY cool hack...it'll only become more useful as more countries bring more and more people online. If someone can get permission to use the hack/flags, it'd be great. :)

02 Sep 2000, 19:28
I'm sure the flags are available somewhere, I doubt the admin created all the icons himself. Just find me the flags and I'll make the hack.

02 Sep 2000, 23:15
I have some
http://www.clubbers.ws/vb/images/flags

If you want them in a zip file just let me know.

I know I don't have them for all countries but if there are any more anyone wants I am sure I can sort them out.

02 Sep 2000, 23:27
Where'd ya get em? :)

03 Sep 2000, 02:50
Originally posted by rangersfan
The operator of that forum doesn't post his/her hacks on here so you will have to contact him/her directly. I could easily make that hack if you can supply me with all the flag icons that match each country. you'd have to contact AaronD (http://www.vbulletin.com/forum/member.php?action=getinfo&userid=719) who runs that forum

v0n
04 Apr 2001, 07:58
Sorry for bumping old thread back on the top, but this would be definitely interesting hack.
Was it ever finished?

Swoosh
04 Apr 2001, 14:31
I am also interested in this kind of hack. Is there any news at all about this hack?

jojo85
04 Apr 2001, 14:56
Have you try to make the hack freddie?

Pingu
04 Apr 2001, 19:04
As a matter of fact I was working on this :D

Of course I know nothing about PHP and such, so don't wait up for me, he he

v0n
06 Apr 2001, 03:02
Ok, this is kinda lame, but never the less it works. Just to give you idea how to do it yourself:

in showthread.php around line 450 you have something along the lines of:
$post[joindate]=vbdate($registereddateformat,$post[joindate]);

below add
include('/whatever/path/flags.php');

create file flags.php in /whatever/path and inside the file use
<?
$post[$field2] = ereg_replace("United Kingdom", "<img src=/path/to/your/flags/UK.jpg alt=\"United Kingdom\">", $post[field2]);
(...)
?>

To get eg:
Location: London [flag image] instead of just flag edit your postbit template and add $post[field1] after Location: ...

jojo85
06 Apr 2001, 05:59
He thx you very much guy :D

Swoosh
06 Apr 2001, 06:37
Thank you for the hack-it-yourself instructions, v0n! :)

auto
06 Apr 2001, 17:12
I found some good flags here:
http://www.ubbdev.com/ubbart/flags_.shtm

_capa_
06 Apr 2001, 20:53
http://www.coolsigforum.com/images/flags/

more simple :D

auto
06 Apr 2001, 21:08
nice! :D

Anybody have a program that can do mass-resize?
I forgot the name of the prog, and i dont have it anymore.... :o

JamesUS
06 Apr 2001, 21:28
I think Paint Shop Pro might be able to do mass conversions/resizing but I'm not positive.

upperking
07 Apr 2001, 02:33
i wouldnt be a fraid of converting the hacks from UBB
most of thier hacks they have over there were converted for thier board allso..
and i converted a few for ikonboard in which i seen this same flag hack also a few weeks ago and thought about converting it..

just dont use thier silly wordletts and other copy righted stuff..but the hacks are not thiers..
and if they try to copyright the imood hack wich they changed to mood then i think they could have a problem:(

upperking
07 Apr 2001, 03:13
flags download:eek:

auto
07 Apr 2001, 03:31
the colors of some flags are messed up

upperking
07 Apr 2001, 03:36
what do you expect? and dont blame them on me i didnt make them..they look good to me:rolleyes: :mad:

auto
07 Apr 2001, 03:42
haha :)

im ukrainian,

and if youre saying that this is the Ukrainian flag, then thats an insult to me :p

upperking
07 Apr 2001, 03:53
well i wouldnt know, the only flag i know is the american flag :/ but it sounds to me that alll you need to do is change the names around if they are named wrong..
the flags look nice and small and clean other then that..:confused::mad:

auto
07 Apr 2001, 05:09
im not whining, its just as that if you look at the flag that i attached, you will see that the bottom half is orange, where as it's supposed to be pure yellow like this:
http://www.flags2000.com/flags2000us/world/ukra.htm

:eek: :eek: :eek:

tubedogg
07 Apr 2001, 05:38
why doesn't someone just "borrow" the flags from here (http://www.flags2000.com/flags2000us/world.htm)?

upperking
07 Apr 2001, 06:22
maybe the guy was color blind that made the flags:D

Swoosh
07 Apr 2001, 18:58
Here's another site where you can find flags from all around the world:
World Flags Database (http://www.flags.net)

jrwap
07 Apr 2001, 20:31
Well we have plenty of flags...... now we just need a little code!!!

PeF
08 Apr 2001, 18:49
Tell me what features you want and I'll make it. It's not hard at all. :)

SilverBoy
08 Apr 2001, 22:50
who can write it for vb11x?

auto
09 Apr 2001, 00:50
Well, PeF,
we want the hack to be exactly like its on this site:
http://www.coolsigforum.com/member.php?action=register&who=adult
there you can select the country when you register,
then i guess it would be nice if you can edit it in your profile later on if you messed up during the regitration, and we want the apprporiate flag to show up on every post that person makes like this:
http://www.coolsigforum.com/showthread.php?threadid=9087

thats it :)

thanks

SteveK
09 Apr 2001, 01:21
How about an option for state/providence flags?

auto
09 Apr 2001, 01:29
um.... are you crazy?? :)
jk.
i think that would be going too far though... :)

just my .02:

SteveK
09 Apr 2001, 01:36
I can see where if you had ALL Countries and ALL their respective states/providences it would be too much. My board is on an internal WAN throughout our company which involves only the U.S. Thus everyone would have the US flag. It would be a nice option to have their state flag shown instead.

auto
09 Apr 2001, 01:43
once this country hack is out, you can easily edit the hack to show states/provinces instead of countries

PeF
09 Apr 2001, 08:24
Not a problem. The hack will be available on Wednesday 18:00 CET (Central European Time, GMT +1). ;)

jojo85
09 Apr 2001, 17:16
Originally posted by PeF
Not a problem. The hack will be available on Wednesday 18:00 CET (Central European Time, GMT +1). ;)

Thx very much :)

Lost
09 Apr 2001, 23:11
:cool: Sweat:)

Pingu
10 Apr 2001, 12:45
I've done it!

Excuse me for shouting, he he.

But I've got a working country hack, and for someone with no experience whatsoever that's pretty darn good.
Mind you, it could look better, but that's just a matter of a little fine tuning...

Ok, am I going to post here what I've done? No...
And that's for the simple reason that I have no experience in programming (I said that before, didn't I?!). Just because it works doesn't mean it's good.

I'm trying to get all the changes I've done into a file (just a few changes though), and I suggest that one of the people here who really know what they're doing, have a look at it. Maybe they can make something out of it, or it 'll help them to some new ideas.

If you wish an example, take a look at this thread (full of blah blah):
http://www.paysforum.com/forums/showthread.php?threadid=29

Two things to notice:
1 - there's a flag after Location if I don't move it), for Admin,
2 - the other users show a dreaded red X cause the code is not ready :)

george_proost
26 May 2001, 21:07
Originally posted by Pingu
I've done it!

Excuse me for shouting, he he.

But I've got a working country hack, and for someone with no experience whatsoever that's pretty darn good.
Mind you, it could look better, but that's just a matter of a little fine tuning...

Ok, am I going to post here what I've done? No...
And that's for the simple reason that I have no experience in programming (I said that before, didn't I?!). Just because it works doesn't mean it's good.

I'm trying to get all the changes I've done into a file (just a few changes though), and I suggest that one of the people here who really know what they're doing, have a look at it. Maybe they can make something out of it, or it 'll help them to some new ideas.

If you wish an example, take a look at this thread (full of blah blah):
http://www.paysforum.com/forums/showthread.php?threadid=29

Two things to notice:
1 - there's a flag after Location if I don't move it), for Admin,
2 - the other users show a dreaded red X cause the code is not ready :)



:p :p :p

kyle
19 Jul 2001, 19:28
:D :D :D Please Dose anyone have this code? I would love to use it on my forums.

Originally posted by george_proost




:p :p :p :D

AS_Eagle_1
19 Jul 2001, 19:57
yeah i need it too :D

ldydvr
01 Aug 2001, 19:31
Is this hack still alive somewhere?

auto
01 Aug 2001, 19:34
I don't believe it is, I'd really want to use it .....

Pingu
01 Aug 2001, 22:31
It's here:
http://www.vbulletin.com/forum/showthread.php?s=&threadid=23279

WEBDosser
02 Aug 2001, 08:55
Mmm. I could also do with this hack.. been looking at it and have a small question?.

in the txt file it says

1 - Add to database-Table user, field named: country
( country varchar(50) NOT NULL, )
This should be after field: nosessionhash

could someone help with this.. i use phpMyAdmin to edit the database but am a bit lost here. could someone tell me what to put in each field. there are 7 fields alltogether

FIELD,TYPE,LENGHT/SET,ATTRIBUTES,NULL,DEFAULT,EXTRA


thanx.

Pingu
02 Aug 2001, 23:03
This is what I have:
(see attachment)

WEBDosser
04 Aug 2001, 06:07
Thanx dude.. this will help a lot.:) one more thing does anyone have a zip with all the flags in that match the txt file..

AJR
01 Sep 2001, 11:16
I just released a complete Country Flag Hack, with support for 221 countries (with associated large or small flags). Check it out here:

http://vbulletin.com/forum/showthread.php?s=&threadid=27044