View Full Version : Show Thread Enhancements - CountryFlag
tnguy3n
10-04-2005, 10:00 PM
Site: http://www.vbviet.org
CountryFlag Mod for vb 3.5
This hack shows user's country flag in postbit, below the user name.
Original by SmartGnome, AJR, Pingu and Stasik for vb 2.2.x.
1. Go to AdminCP => Profile Fields => Add new Profile field => Single Select Menu
Title > Home Country
Description > Tell people where you're from.
Options:
[copy and paste list of countries in flags_list.txt to this option field]
Set Default: Yes, Include a First Blank Option
Editable By User: Yes
Display Page: Edit Profile
Write down your field# . i.e field6
2. Open postbit(_legacy) template,
FIND:
<div>
$vbphrase[posts]: $post[posts]
</div>
BELOW, ADD:
<if condition="$post[fieldX] != ''"><div>
Country: <img src="images/flags/$post[fieldX].gif" title="$post[fieldX]" align="center">
</div></if>
<!-- Don't forget to change X to the field id. -->
3. Upload /flags to images/flags to your forum dir.
<!--- That's it! --->
---------------------------------------
To show countryflag in profile:
Open memberinfo template,
FIND:
<if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if>
BELOW, ADD:
<if condition="$userinfo[fieldX] != ''"><div>
Country: <img src="images/flags/$userinfo[fieldX].gif" title="$userinfo[fieldX]" align="center">
</div></if>
-------------------------------
To Show User's Countryflag in Memberlist, see this following post:
https://vborg.vbsupport.ru/showpost.php?p=789649&postcount=14
Boofo
10-05-2005, 09:40 PM
Where's the file?
tnguy3n
10-05-2005, 09:42 PM
updating... it's been so long since I last release a hack, so I forgot all the procedures. :p
Boofo
10-05-2005, 09:44 PM
Well, I for one am glad to see you releasing stuff again. ;)
Is there a way to make this work in the memberlist, too? ;)
tnguy3n
10-05-2005, 09:47 PM
well, I can look into that option for you; however, I think that can't be done by template modding. Gotta code-hack or writing a plug-in for that.
Boofo
10-05-2005, 09:48 PM
I'm almost sure a plug-in could handle it. ;)
I like your gender images, by the way. ;)
tnguy3n
10-05-2005, 09:54 PM
Thanks.
Hey boofee-man, you're from IA, corn state? :p
Boofo
10-05-2005, 09:55 PM
Thanks.
Hey boofee-man, you're from IA, corn state? :p
Des Moines, to be exact. ;)
tnguy3n
10-05-2005, 10:05 PM
Des Moines, to be exact. ;)
and you're saying that Des Moines doesn't grow corn? :D lol j/k.
Boofo
10-05-2005, 10:07 PM
Not in the apartment I live it, we don't. I think you have to go outside of Des Moines a few miles for that. ;)
Check your PMs. ;)
SnowBot
10-06-2005, 07:44 AM
I had one almost the same as this. Thanks for your efforts :)
instead of country is there away to do state flags since most of my users are in the US and CA
TygerTyger
10-06-2005, 11:11 AM
Just change the list of countries to a list of states, and put the state flags in the flags directory with the same names as in the state list.
tnguy3n
10-07-2005, 09:43 PM
Well, I for one am glad to see you releasing stuff again. ;)
Is there a way to make this work in the memberlist, too? ;)
okie, this add-on is written as requested by bofo.
#------------------
Addon to show countryflag in Memberlist
Open memberlist_resultbit template,
FIND:
<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>
BELOW, ADD:
<if condition="$userinfo[fieldX] != ''"> <img src="images/flags/$userinfo[fieldX].gif" title="$userinfo[fieldX]" align="center"></if>
TygerTyger
10-07-2005, 11:31 PM
Damn, how cool are you? Thank you!
DefenceTalk
10-08-2005, 01:55 AM
For some reason, I am the image URL is missing the name of the country:
http://www.defencetalk.com/forums/images/flags/.gif
In this (http://www.defencetalk.com/forums/showthread.php?p=48883#post48883) thread...
tnguy3n
10-08-2005, 02:27 AM
For some reason, I am the image URL is missing the name of the country:
http://www.defencetalk.com/forums/images/flags/.gif
In this (http://www.defencetalk.com/forums/showthread.php?p=48883#post48883) thread...
Did you adjust $userinfo[fieldX] to your own ID?
Boofo
10-08-2005, 05:36 AM
Has the memberlist add-on been added to the zip in the first post, sir? ;)
Oblivion Knight
10-08-2005, 06:35 AM
Hmm.. Why exactly have you posted a plugin for the memberlist addon?
The template edits should work fine without it. ;)
Boofo
10-08-2005, 06:39 AM
Hmm.. Why exactly have you posted a plugin for the memberlist addon?
The template edits should work fine without it. ;)
Have you tried it without the plug-in?
Oblivion Knight
10-08-2005, 06:43 AM
Have you tried it without the plug-in?No, but I use similar code for my Gender userfield in the memberlist and it works fine..
Besides which, his $showflag variable is never used?
tnguy3n
10-08-2005, 09:34 AM
Actually, you're right. Plugin is unneccesary.
DefenceTalk
10-08-2005, 09:45 AM
Did you adjust $userinfo[fieldX] to your own ID?
Yes, I did.
<if condition="$post[field10] != ''"><div>
Country: <img src="images/flags/$post[field10].gif" title="$post[field10]" align="center">
</div></if>
:ermm:
tnguy3n
10-08-2005, 10:00 AM
I saw the flag just fine.
exceem
10-08-2005, 07:46 PM
cheers :)
tuanluu
10-10-2005, 09:19 PM
Options:
[copy and paste list of countries in flags_list.txt to this option field]
-----------------------------------------------------------------
I don't see this field. Am I blind are I am doing samething not right?
tnguy3n
10-10-2005, 10:21 PM
copy and paste the whole content in flag_list.txt and paste into option box. ;)
tuanluu
10-10-2005, 10:28 PM
thanks got it
lamilein
10-12-2005, 07:37 AM
some sexy free 18x12 flag icons for you i found on the web (list of filenames included for copy & paste)
Oblivion Knight
10-12-2005, 07:39 AM
some sexy free 18x12 flag icons for you i found on the web (list of filenames included for copy & paste)They're awesome! Thanks for sharing them.. :)
tnguy3n
10-12-2005, 01:14 PM
some sexy free 18x12 flag icons for you i found on the web (list of filenames included for copy & paste)
those are awesome. thanks for sharing it.
havefun
10-13-2005, 05:08 PM
thank you. that's nice :)
& thanks lamilein for the flags
rb290
10-16-2005, 06:13 AM
what do you mean change X to the field ID ?
Oblivion Knight
10-16-2005, 06:24 AM
what do you mean change X to the field ID ?After creating the custom profile field, you need to look in the Profile Field Manager for the field id (see screenshot). Replace X with this number.
Instead of creating a new profile field, I overwrote my Location field therefore my field id is 2.. Yours is likely to be 5 or 6, depending on if you've created any custom fields previously. :)
rb290
10-16-2005, 06:41 AM
vBulletin Message
You did not enter the correct format for the Home Country field. Please read the field description for the expected format.
rb290
10-16-2005, 06:44 AM
some help please ^
im pretty sure i did everything right
this is how my postbit legacy template looks like:
<div>
<font color="#999999"><strong>$vbphrase[posts]</strong></font>: <font color="#999999"><strong>$post[posts]</strong></font>
</div>
<if condition="$post[field5] != ''"><div>
Country: <img src="images/flags/$post[field5].gif" title="$post[field5]" align="center">
</div></if>
<if condition="$vboptions['vbookiecashon']">
<br />vCash: $post[vbookie_cash]
</if>
rb290
10-16-2005, 06:45 AM
the vbookie part was underneath the vbphrase[posts] part so I put it in between
Oblivion Knight
10-16-2005, 06:55 AM
vBulletin Message
You did not enter the correct format for the Home Country field. Please read the field description for the expected format.Where are you getting this error? In the Admin CP?
rb290
10-16-2005, 06:56 AM
When I choose my country and press save, it brings up the error page
Oblivion Knight
10-16-2005, 07:04 AM
Bizarre.. I'd check your settings for that custom profile field again, making sure that it's a Single-Selection Menu type and the options are configured as per the instructions.
rb290
10-16-2005, 07:08 AM
that suckkss
this hack was good too.!
rb290
10-16-2005, 07:52 AM
if anyone knows my problem can you help thanks.!
TNAImpact
10-16-2005, 09:02 AM
Thankyou!!
rb290
10-16-2005, 05:30 PM
alright I got it
anyone know how to align it better:
http://img288.imageshack.us/img288/6219/78690iz.jpg
i want "Reppin" centered abit down and the flag centered down too, their is kinda big gap between Reppin and Rep Power
Boofo
10-16-2005, 05:48 PM
Use class="inlineimg" for the flag image. ;)
rb290
10-16-2005, 06:42 PM
ok thankssssss i got it :)
Boofo
10-16-2005, 06:45 PM
Add class="inlineimg" right after the src="whatever" in the image link. ;)
rb290
10-16-2005, 06:47 PM
looks perfect now!
Boofo
10-16-2005, 06:48 PM
looks perfect now!
You had doubts? ;)
rb290
10-16-2005, 06:52 PM
hey do you know how to put borders around fields, for example, border around Location, Join Date, etc
then Border around Rep Points and Rep Power, make their own box so its separate
rb290
10-16-2005, 06:53 PM
You had doubts? ;)
hah not really i just thought the person who made the hack didnt wanna go into all the details and make it perfect
Boofo
10-16-2005, 06:54 PM
hey do you know how to put borders around fields, for example, border around Location, Join Date, etc
then Border around Rep Points and Rep Power, make their own box so its separate
Have you tried using the legend tag? ;)
rb290
10-16-2005, 07:08 PM
Have you tried using the legend tag? ;)
where is the legend tag ?
Boofo
10-16-2005, 07:27 PM
where is the legend tag ?
Do a search in templates for it. ;)
rb290
10-16-2005, 09:27 PM
Do a search in templates for it. ;)
how should it look like
rb290
10-16-2005, 09:28 PM
the legend tag
jmc123
10-17-2005, 12:23 PM
I can get the flags to show up in user profiles but how can i get the flags to show up in the forum threads? do i need to enable an option?
Don't worry, problem solved!
sellbuydomain
10-20-2005, 07:50 PM
i did it ,but flat and country not show up, when you said write down field6 ? how do you write down ,where to change field 6 , please more detail , thanks
sellbuydomain
10-20-2005, 07:54 PM
how do you put the icon in to the post
sellbuydomain
10-20-2005, 07:57 PM
i am using chinese version , is that any thing i need to change in coding ?
tnguy3n
10-21-2005, 05:30 PM
fieldid shows in User Profile Field Management. (see attachment)
change fieldX (in code bit below) to your fieldid (whichever for your countryflag).
<if condition="$post[fieldX] != ''"><div>
Country: <img src="images/flags/$post[fieldX].gif" title="$post[fieldX]" align="center">
</div></if>
sellbuydomain
10-27-2005, 08:29 PM
i try it, everything like you said, but the icon is not show up, no flag appear. why?
thalamus
10-28-2005, 09:17 AM
This is a great mod :) I'm looking to use something like this to indicate languages spoken by users, so there may be more than one selection - can you suggest if there's a way to edit the process for this to allow for multi-flags to be displayed?
Thanks again, definitely will install this anyway but the extras would be cool :)
I had this working until I deleted the new profile filed. It was field6 and then I created a new profile field and re-odered them and now my field is field8 and no go!
Here is my postbit code for proof:
<if condition="$post[field8] != ''"><div>
Country: <img src="images/flags/$post[field8].gif" title="$post[field8]" align="center">
</div></if>
I also have the flags in images directory. Here is proof:
http://www.cpfools.com/forum/images/flags/
As you see, neither my profile (after making other modification) or the posts show my US flag:
http://www.cpfools.com/forum/showthread.php?p=11883#post11883#post11883
Do you have any ideas why this will not work now?
tnguy3n
11-05-2005, 03:25 AM
I had this working until I deleted the new profile filed. It was field6 and then I created a new profile field and re-odered them and now my field is field8 and no go!
Here is my postbit code for proof:
<if condition="$post[field8] != ''"><div>
Country: <img src="images/flags/$post[field8].gif" title="$post[field8]" align="center">
</div></if>
I also have the flags in images directory. Here is proof:
http://www.cpfools.com/forum/images/flags/
As you see, neither my profile (after making other modification) or the posts show my US flag:
http://www.cpfools.com/forum/showthread.php?p=11883#post11883#post11883
Do you have any ideas why this will not work now?
how about make chanage in both postbit and postbit_legacy templates. :)
tnguy3n
11-05-2005, 03:26 AM
This is a great mod :) I'm looking to use something like this to indicate languages spoken by users, so there may be more than one selection - can you suggest if there's a way to edit the process for this to allow for multi-flags to be displayed?
Thanks again, definitely will install this anyway but the extras would be cool :)
I think there's a multiple selection menu option. You can try to use that instead of single selection as it was.
how about make chanage in both postbit and postbit_legacy templates. :)
That was it! You have to add it to both. I think I would modify your directions to clearly state that for dumbies like me.
Nie work by the way. I clicked instal
lazyseller
11-08-2005, 02:46 PM
For people who are having problems with their flags not showing try going to your profile and updating your country....
As far as modifying for postbit and postbit legacy you only need to modify for the one you are using....
mikehawk
11-09-2005, 07:14 AM
/me clicks install. Works perfect.
lazyseller
11-09-2005, 03:52 PM
Thanks for the mod tnguy3n .... creative
aacircle
11-13-2005, 06:22 AM
Vietnam flag has the wrong image. Please update your flags folder with this image http://www.appliedlanguage.com/flags_of_the_world/tiny_flag_of_vietnam.gif
JeffreySmith
11-27-2005, 09:14 AM
This might be crazy to most of you, but when I try to extract the flags folder to my flags folder under forum/images/flags I get nothing in the folder when I try to open it up. Is there something I am missing. I dont wanna have to create a page for each flag and hyperlink them one by one. What am I doing wrong?
-Jeff
BiReL41r
11-27-2005, 11:16 PM
I had this hack on my other forum, hesitating if I should add it again, users tend to abuse it at some points.
Martin64
12-10-2005, 02:34 PM
Thanks, great job. Saved me some work from pondering out how to do this myself ;)
Thanks, installed on 3.5.2 with no problems!
Tefra
12-23-2005, 10:00 AM
installed in 3.5.2 no problem .
noj75
12-26-2005, 12:22 PM
Installed on 3.5.2
Very simple and very quick. Thankyou very much. :)
sellbuydomain
12-29-2005, 04:43 PM
problem, i install everything like this ,the image flag is not showing,
<if condition="$post[field5] != ''"><div>
Country: <img src="images/flags/$post[fieldX].gif" title="$post[field5]" align="center">
i also try this way, not showing image flag
<if condition="$post[field5] != ''"><div>
Country: <img src="images/flags/$post[field5].gif" title="$post[field5]" align="center">
is this image/flags/ permission?
i try both on postit and postit_lengecy
not showing the image, any help please?
Thank you, nice hack.
Can you tell me if it is possible to have the Flag show on the left hand side Under the Avatar? Just asking as it is not that important.
Thanks
gdwoods
12-31-2005, 02:14 PM
I can get the flags to show up in user profiles but how can i get the flags to show up in the forum threads? do i need to enable an option?
Don't worry, problem solved!
so how did you solve it?
tnguy3n
01-04-2006, 08:17 PM
so how did you solve it?
modify the right template.
If you use Legacy Postbit Style, modify postbit_legacy template; otherwise, modify the postbit one.
Lpspider
01-07-2006, 08:39 PM
couldn't get it to show up... :/ probably I have to many mods or something
ProjectTR
01-08-2006, 11:45 AM
I have problems with 3.5.3 not working..
Chadi
01-15-2006, 06:18 PM
Just curious, anyway to replace the gif flag images with actual text instead?
If not, what about making the flag appear in a new line (break)?
funinthesun
02-08-2006, 09:44 AM
Please Delete This Post
blackpheonix
02-09-2006, 05:11 PM
graet mod installed thanks works perfect on 3.5.3
OndaReal
02-17-2006, 09:31 PM
works great on 3.5.3 cheers :)
Insert Username
03-02-2006, 07:48 PM
A question (I don't think it has been covered yet). Got this working, set the field to display in the memberlist. There's now a column for Home Country in the column list, but is what I want. But it does has the text for the country name instead of the flag. Is there a way to have it just display the flag image?
Funboy
03-13-2006, 10:50 AM
Hi guys,
Sorry to sound thick here but where is postbit(_legacy) within Version 3.5.4 as I can only find class_postbit.php & class_postbit_alt.php templates.
Also when looking for
<div>$vbphrase[posts]: $post[posts]</div>
all I can find is it within vbulletin-style.xml which was my old install folder which can not be right?
I know things have changed since this post first started so can this be installed on a fresh install of 3.5.. or only as an upgrade to 3.5..
Many thanks
I no under AdminCP you can change the Style & Language Settings as follows,
Use Legacy (Vertical) Postbit Template
If you prefer the old-style postbit, using two vertical columns rather than the new horizontal layout, you can switch back to using that template with this switch.
Please note that if you enable this option and wish to customize the template, you should edit the 'postbit_legacy' template rather than the 'postbit'.
which then changes the layout but is 'postbit_legacy' now called postbit_alt ?
Funboy
03-13-2006, 11:24 AM
OK being a MAJOR THICK O HERE!
Was looking in Dreamweaver at the templates instead of AdminCP as this was the way we did stuff on my old board.
Very sorry to all for taking up your time.
From one THICK Newbie to VB :)
rareclownfish
04-09-2006, 03:39 PM
is this working on 3.5.4?
lamilein
04-09-2006, 03:58 PM
is this working on 3.5.4?yes, perfectly
rareclownfish
04-09-2006, 05:06 PM
Thanks working great after a few tweeks.
Now for the State Flags.
GrendelKhan{TSU
04-17-2006, 01:40 PM
quick note:
Philipines flag wasn't showing... then I noticed:
image name is: Philippines.gif and yet the path pointed to "Philippine.gif"
(http://www.MYSITE.com/forums/images/flags/Philippine.gif)
(I don't know how to update the code, so I changed the image title to philippine.gif to get it to work.... but the proper name should be philippineS with an "s".)
wat u mean by
<!-- Change X to the field id. -->
it comes up as a text box where ya edit ya profile and no pics show
Dermo-MIO
04-20-2006, 06:43 PM
^im getting same problem as him
sc4r3d
04-23-2006, 01:08 AM
nice, thanks
it dont show in next to my users names
monkeywarplane
05-02-2006, 08:16 AM
Great mod, the user profile is working great and the flags are showing on the thread/post profile but I am getting an additional if condition=" != ''"> above the flag... for example...
Join Date: Mar 2004
Location: Israel
Posts: 1,172
if condition="israel != ''">
Country:
http://forums.interbasket.net/showthread.php?t=113 (check second post)
I am running vb 3.5.4
Any ideas?
Stuart
monkeywarplane
05-02-2006, 08:37 AM
Any ideas?
Forget it, silly mistake... silly question, it's 2:30 in the morning :)
Stuart
If you just want the country name to show up, then you just add the following syntax
Find:
<div class="info">$post[musername] is $post[onlinestatus] </div>
ADD BELOW: where you find sweetable
<if condition="$post['fieldX']"><div class="info">$vbphrase[location_perm]: $post[fieldX]</div></if>
REMEMBER to replace the "X" whit the field number as describet in the original script
putergirl
06-10-2006, 06:37 PM
how about make chanage in both postbit and postbit_legacy templates. :)
hello, I tried making the changes to both postbit and postbit legacy and still no flag shows up. Here is what I did:
Step one completed as stated
Step two:
<div>
$vbphrase[posts]: $post[posts]
<if condition="$post[field5] != ''"><div>
Country: <img src="images/flags/$post[field5].gif" title="$post[field5]" align="center">
</div></if>
<!-- Change X to the field id. -->
Am I supposed to change 3 X's?
flag folder added: Forum/images/flags
Help?
putergirl
06-13-2006, 01:30 AM
anyone? :)
Muscolino
06-13-2006, 03:59 PM
Do you get the bit that says 'Country:'? If so I'd guess you are either added the wrong fieldID or you put the flags in the wrong location.
If you haven't even got 'Country:' displayed then I suggest you start from the beginning and go through the installation again.
SHalliday
06-17-2006, 07:12 PM
**Clicked Install **
Thank you. Just want I was looking for. Now all we need are state and province flags :)
sebbe
06-18-2006, 09:57 PM
Thanks, installed! :)
leftie
07-02-2006, 03:44 PM
I help run a forum that has a lot of ex pats and i have been asked if it possible to add a second flag to say where they are originally from.
Can the profile field be edited to have the option of a second flag.
Masala4india
07-03-2006, 09:28 AM
Thankx its working very fine..
specmav
07-04-2006, 08:03 PM
Flag won't show up after I edited postbit-legacy template?
Here is the code. field5 is the correct field #. I uploaded the flags directory to [forum root]/images/.
<div>
$vbphrase[posts]: $post[posts]
</div>
<if condition="$post[field5] != ' ' "><div>Country:<img src="images/flags/$post[field5].gif" title="$post[field5]" align="center">
</div></if>
I am using the Kirsch style if that makes a difference.
Thanks
nathanaus
07-05-2006, 06:15 AM
Uh
Options:
[copy and paste list of countries in flags_list.txt to this option field]
Where would that flags_list.txt file be exactly?
Pete C
07-06-2006, 03:38 PM
Nice add-on :up: many thanks - *Installed*
nathanaus: It's in the zip file, together with the flag images and installation instructions ;)
will definetly install ;)
Masked Crusader
07-11-2006, 07:45 PM
Too make this even cooler, I would love to see under the 'USA' flag, the ability to pick a state flag. Just a little suggestion.
leftie
07-12-2006, 10:30 AM
Too make this even cooler, I would love to see under the 'USA' flag, the ability to pick a state flag. Just a little suggestion.
Yep, i've asked for something similar. The ability to choose a second flag.
hanna
07-12-2006, 05:19 PM
anyone know how to incorporate this hack into the todays post section. For example, if a users posts, it will show the flag under the last poster section beside the username. Similar to the site like this:
http://www.gotfrag.com/portal/forums/
Thanks for your help!
sdebank
07-13-2006, 08:10 AM
Tried editing postbit_legacy in templates and the flags don't show, might it work if you change postbit?
Tried editing postbit_legacy in templates and the flags don't show, might it work if you change postbit?
have you uploaded the flag images to the right location?
anyone know how to incorporate this hack into the todays post section. For example, if a users posts, it will show the flag under the last poster section beside the username. Similar to the site like this:
http://www.gotfrag.com/portal/forums/
Thanks for your help!
Excellent idea, anyone know how to do this?
I would be willing to pay for this as well.
-=DCG=-
aceofspades
07-14-2006, 09:48 PM
anyone know how to incorporate this hack into the todays post section. For example, if a users posts, it will show the flag under the last poster section beside the username. Similar to the site like this:
http://www.gotfrag.com/portal/forums/
Thanks for your help!
Did you just copy that sentance out of my request in the request section? Its word for word the same :o
Regardless of that, it sounds like there is a demand for this from several people, i would REALLY appreciate it if someone could take the time to find out how to add it next to the username next to the latest posts on forum home and latest posts when viewing inside a forum.
nathanaus
07-15-2006, 12:31 PM
Nice add-on :up: many thanks - *Installed*
nathanaus: It's in the zip file, together with the flag images and installation instructions ;)
Okay weird. I douwnloaded it but all I have are the flag images. No instructions and no list.
I'll try downloading again then
leftie
07-15-2006, 08:04 PM
Has the support for this hack finished. Seems like it.
Bubble #5
07-16-2006, 12:03 AM
how to add it next to the username next to the latest posts on forum home
Not possible on a stock vB forum. Extensive hacking would have to happen first.
I don't know about the support, but I do know this:
If you follow the guide in the top of this page, it will work for you.
I did make an alternative guide to this hack, in case you should like to get the country name to show, instead of the flags. Just look on a earlier page.
Follow the instruction step by step on this modifikation, and all will work :)
mustangcanada
07-18-2006, 05:50 AM
installed the hack, but changed it to "Favorite NHL team" instead of country (considering my forums are for canadians.)
http://mustangcanada.com/forums/showthread.php?t=114
Renmiri
07-24-2006, 07:31 PM
You are an angel!!!!
I added a "Bio" field to my User profile screens and it works like a charm!
http://sinsdawn.ffproject.net/showthread.php?t=133
You are an angel!!!!
I added a "Bio" field to my User profile screens and it works like a charm!
http://sinsdawn.ffproject.net/showthread.php?t=133
dead link
Renmiri
07-25-2006, 10:32 PM
dead link
oops!
http://sinsdawn.ffproject.net/showthread.php?t=137
Sorry, the forum launches this week so we are moving a lot of stuff around! :D
optrex
08-16-2006, 01:19 PM
Is this working on 3.6.0 ok?
twilighthush
08-17-2006, 06:55 PM
^I guess the best way to know is to try? I'm going to give it a shot later today. I'll post the results here.
Oblivion Knight
08-18-2006, 07:19 AM
Is this working on 3.6.0 ok?It works fine on 3.6.0.. ;)
optrex
08-18-2006, 09:29 AM
Thanks ;)
Can you use custom Images, i suppose you can but will they be distorted if its not the same size?
i.e did you make it have a height: and width: parameter when calling the image ;)
Avalon111
09-08-2006, 11:04 AM
great!!!
thank you
freshbreeze
09-12-2006, 03:34 PM
anyone has new "countryflag" modification for version 3.6.0 ?
Thomas P
09-12-2006, 04:55 PM
Hmmmm, this hack would be cool if the country was auto-determined by using the ip information ;)
Mecho
09-29-2006, 05:54 PM
hi .. i have problem with edit template .. i installed "Activity Modification" . and in that hack i moved this code from postbit and (.._legacy) :
<div>
$vbphrase[posts]: $post[posts]
</div>
so where should i put code for this hack ?!
tnx
under the code from you aktivity modifikation or just above, it is only a question about where the output is located
Mecho
09-30-2006, 01:50 PM
tnx for response .. i tested it in many places in postbit .. but nothing shows up :(
i made Fields . and i replace X with no of my fileds . but .....
what shall do mate ?
tnx
rareclownfish
10-16-2006, 02:13 PM
Anyone get this to work on 3.6.2 yet?
optrex
10-16-2006, 02:37 PM
Anyone get this to work on 3.6.2 yet?
yes thanks
Mecho
10-16-2006, 04:19 PM
is it possible that it we have flags without eidtable of users . i mean flag shows up by ip of each user ..
tnx
can you have more than one flag appear? I'd like to use this to display up to 7 little icons. any ideas?
a squared
10-17-2006, 06:32 PM
Glad to hear that this works in 3.6.2!
KenDude
10-18-2006, 01:57 PM
I followed the instructions verbatim, added in the new user field (field8 in my case) and modified the template cutting and pasting in and replacing the 3 X's with 8's and when I go view posts I don't see the user's country, even my own. The .gif files are in /image/flags where they are supposed to be. Any idea what went wrong?
Forum is at www.caymanclub.net
Thanks!
there are more than 3 x's to replace :) look at it again you might find a few more x's :)
Paul_d_g
10-22-2006, 07:57 PM
Looks like you fixed it as you do have the flags now
KenDude
10-22-2006, 10:38 PM
The problem wasn't the three places the problem is that I'm not using the legacy template, that's not what gets installed by default, I found the default template and modified it and now it works.
perfphysio
11-11-2006, 09:41 AM
OK, my forum shows the falgs nicely on the userCP and now on the members list. But what I would like is the flag to show under their usertitle whc you are viewing a posting made by that user on the /showthread.php page of the forum.
Can you please advise how and where to get the flag to show at this level as well. This makes it better for advising someone directly when reading their post on an international forum. many thanks
donaldgkimball
11-12-2006, 12:04 PM
Add class="inlineimg" right after the src="whatever" in the image link. ;)
thanks for this tip but the flags are still not lined up as they should be next to the usernames.
any suggestion please..
many thanks
see attachment:
McMendo
11-12-2006, 10:52 PM
How can I have the name of the countries with special characters in their own language?
E.g., country option Espa?a should go with flag image espana.gif
Is it possible to do it with cyrillic instead of latin characters?
Chadi
11-25-2006, 05:04 PM
Any way to have this show the country in text instead of gif icon?
pcsb23
12-17-2006, 08:44 PM
Just installed it on a vB 3.6 forum, worked perfectly thanks.
Perhaps you should move it up to the 3.6 area?
Paul
nogerorob
12-19-2006, 07:26 PM
Hey I just installed this. I didn't realize I needed to modify both postbit and postbit legacy at first. It works in 3.6. Thanks so much.
rob
Funky Diver
12-21-2006, 09:17 PM
Excellent... fits the bill perfectly :D
Eagle Eyes
12-26-2006, 11:05 PM
Flags are uneven, anybody got better flags?
Defence.pk (http://www.defence.pk/forums/showthread.php?t=3209)
KennyK
01-10-2007, 01:03 AM
Three or four things...
1. This is my first post on this board ever... Greetings :)
2. I liked the included flags pretty well, and was greatful just to find this (thanks tnguy3N). In truth though, what I really wanted was a consistently-sized set of flag icons that would fit OK on a single line or in a table (I have non-VB pages I want to display them on too). I spent a while surfing for another set, but didn't find anything that I particularly liked. So... I played around with the original flags from this mod and found that they resize pretty well in Photoshop to a consistent 26x14 pixels. There are only a couple/three flags I'm not sure I want to resize in width (might be noticeable).
3. Two things came up while working with my custom flag set. When saving my new files Photoshop warned me about keeping file name lengths to 31 characters or less for certain MAC browser compatibility. It also replaced the spaces in the file names with dashes by default.
I've seen a couple references on the web that using spaces in filenames is risky. Am I being paranoid, or has anyone else run into problems with spaces or filename length lately?
(Also see sample icons in the size I'm working on to see if you like...)
Foxsake
01-23-2007, 07:14 PM
Did you just copy that sentance out of my request in the request section? Its word for word the same :o
Regardless of that, it sounds like there is a demand for this from several people, i would REALLY appreciate it if someone could take the time to find out how to add it next to the username next to the latest posts on forum home and latest posts when viewing inside a forum.
Did this ever get resolved? - i like this idea
Foxsake
01-25-2007, 06:20 PM
Anyone???
akulion
01-29-2007, 04:10 AM
thanks works wonderfully on 3.6.4
jazde86
02-18-2007, 05:08 PM
How can I have the name of the countries with special characters in their own language?
E.g., country option Espa?a should go with flag image espana.gifWhat about this? I would like to name the image thueringen.gif, but in tooltip it shows Th?ringen.
Is it possible?
Cornie
02-18-2007, 05:47 PM
Nimm statts "Thüringen" ..............."Thueringen. Sonst geht es wohl nicht.
Hast Du zufällig die Flaggen aller Bundesländer?
jazde86
02-18-2007, 06:59 PM
Hmm, das will ich doch gerade nicht. So l?uft es derzeit ja schon bei mir.
Und japps, ich habe jegliche Flaggen von D, AU, CH. :D
Cornie
02-19-2007, 09:45 AM
Und japps, ich habe jegliche Flaggen von D, AU, CH. :D
Sch?n f?r Dich, h?ttest ja gleich sagen k?nnen das Du sie bei vbhacks eingestellt hast.:p :D
Chadi
02-28-2007, 02:20 AM
Does anyone have high quality replacement icons that are one size as well?
Chadi
02-28-2007, 03:02 AM
If you just want the country name to show up, then you just add the following syntax
Find:
<div class="info">$post[musername] is $post[onlinestatus] </div>ADD BELOW: where you find sweetable
<if condition="$post['fieldX']"><div class="info">$vbphrase[location_perm]: $post[fieldX]</div></if>REMEMBER to replace the "X" whit the field number as describet in the original script
I tried this, cleared cache and still shows the icons???
perfphysio
02-28-2007, 04:02 PM
I would still like to know which template and how to add the flag under or next to the users name when it appears at the top of a posting. At the moment you can only see the flag if you click on their profile. It woulbe be much nicer to see it at the point of reading their thread.
Can someone please help me to achieve this
thanks a lot :)
John Diver
03-10-2007, 09:22 AM
My new registrations on my forum are being put into the first country instead of being left blank, anyone know what could be wrong?
John Diver
03-13-2007, 08:28 AM
Anyone know?
Thanks :)
zaphrod
03-22-2007, 03:59 AM
My new registrations on my forum are being put into the first country instead of being left blank, anyone know what could be wrong?
Sounds like the default is not setting correctly. While it says
Set Default: Yes, Including a First Blank Option
I found that if I set none, it will give the users the option to leave the field blank if they want.
Jason
McMendo
03-22-2007, 03:52 PM
How can I have the name of the countries with special characters in their own language?
E.g., country option Espa?a should go with flag image espana.gif
What about this? I would like to name the image thueringen.gif, but in tooltip it shows Th?ringen.
Is it possible?I still haven't got an answer to this. I know that it can be done because I've seen it before. Anyone?
WebmasterSimds
03-24-2007, 01:54 AM
You should update this to say that this works with 3.6.5 as well. I aded it and it is working perfectly. thanks for this.
McMendo
03-29-2007, 08:37 PM
How about removing the flag of "supported"?
deezelpope
04-06-2007, 11:31 AM
Installed! Very nice...thank you!:up:
Dj megas
04-07-2007, 04:18 AM
am looking for small animated flags please ...eny one ?
Post them here please.
Thank youI post a sample here that i find in a forum
odie3
04-09-2007, 02:28 AM
I seem to be missing where the download files are [flag gifs/flag_list.txt]. I am I over looking it?
Edit: I found this attachment on the forums... it has the gifs and text file to import and I follow the directions from this thread [not the ones in the zip file I am attaching].
Dj megas
04-10-2007, 03:13 AM
am looking for small animated flags please ...eny one ?
I have the regular ones like the ones are posted above.
Thank you
Here you have the different IMG ALIGN values to put the flag in the correct place:
http://www.w3.org/MarkUp/Test/Img/imgtest.html
You can use it like this:
FIND:
$post[fieldX]" align="center">
REPLACE WITH
$post[fieldX]" align="xxxxx">
where "xxxxx" is one of the following:
top
texttop
middle
absmiddle
baseline
bottom
absbottom
texttop worked for me.
wengi
04-19-2007, 08:51 PM
Can files be re upped nd re coded to work on 3.6.5 pls
Regards
Wengi
deezelpope
04-19-2007, 09:16 PM
The code should work for 3.6.5 fine as it is.:)
wengi
04-19-2007, 10:17 PM
Can files be re upped nd re coded to work on 3.6.5 pls
The code should work for 3.6.5 fine as it is.:)
My mistake as i wasnt editing the correct field
Regards
Wengi
deezelpope
04-19-2007, 10:22 PM
Get it working?
onlinedesi
04-19-2007, 10:49 PM
where is the txt file:S
deezelpope
04-19-2007, 11:00 PM
Text file for what? The instructions are right up above.
aceofspades
04-21-2007, 11:42 AM
There is no flags_list.txt ([copy and paste list of countries in flags_list.txt to this option field])
Can someone post the contents of the flags_list.txt and the flag images please.
odie3
04-21-2007, 11:48 AM
One page back - https://vborg.vbsupport.ru/showpost.php?p=1223039&postcount=180
deezelpope
04-21-2007, 12:02 PM
Thanks Odie! I knew they were here...just wasn't sure which page!:up:
aceofspades
04-21-2007, 12:10 PM
Thanks guys
odie3
04-21-2007, 04:03 PM
Thanks Odie! I knew they were here...just wasn't sure which page!:up:
No problem, I found those needed files in a a completely different thread on these forums - I search for sometime for them a week or so ago.
Glad I could be of help!
tutusinghsohi
04-21-2007, 05:46 PM
cant find the file>....:(
perfphysio
05-11-2007, 08:06 PM
Hi guys. OK, this is perhaps the 4th time I have posted this request. I find the flags and country are great in the users public profile. But what we really need it also this same display on their actual posts.
I have made a screen shot of an actualy users profile page with the UK flag.
I have then made a mock of this mod on an actual post by this user.
CAN you PLEASE tell us how to add this to the actual post by each user.
See attached screen shots
many thanks
FreshPrince
05-27-2007, 11:23 PM
cant find the file>....:(
https://vborg.vbsupport.ru/showpost.php?p=1223039&postcount=180
FreshPrince
05-28-2007, 02:26 AM
I just want to let y'all know, that I followed the instructions and modified postbit_legacy, like the instructions said. Nothing happened. I performed the instructions on just postbit, and it worked.
Thank you for this mod. It is great. :)
FP
Adam21
05-28-2007, 02:57 AM
Works great on 367pl1 too :)
*Thumbs Up*
Yours
06-17-2007, 10:48 PM
No file is uploaded.......................
deezelpope
06-17-2007, 10:50 PM
Read through this thread...:rolleyes:
Ranger375
07-22-2007, 03:44 AM
Just to let you know, it screws up the multiquote feature in 3.6.7 pl1
Reverting the post bit template seemed to fix it, so Im guessing that was the problem.
perfphysio
08-04-2007, 07:47 AM
okie, this add-on is written as requested by bofo.
#------------------
Addon to show countryflag in Memberlist
Open memberlist_resultbit template,
FIND:
<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>
BELOW, ADD:
<if condition="$userinfo[fieldX] != ''"> <img src="images/flags/$userinfo[fieldX].gif" title="$userinfo[fieldX]" align="center"></if>
How about an edit in the members signature that appears next to the actual post? Where to you make this change. This flag thing is great but really the most impt place to put is is with the users signature, not just on their profile page
Nordraserei
08-15-2007, 11:12 PM
Any way to make it appear with the country name in it too? For example, instead of just the Danish flag, if it could be [Flag] Denmark?
Stifmeister2
08-16-2007, 06:25 PM
Any way to make it appear with the country name in it too? For example, instead of just the Danish flag, if it could be [Flag] Denmark?
Yes.
Instead of
<if condition="$userinfo[fieldX] != ''"><div>
Country: <img src="images/flags/$userinfo[fieldX].gif" title="$userinfo[fieldX]" align="center">
</div></if>
Use this:
<if condition="$userinfo[fieldX] != ''"><div>
<img src="images/flags/$userinfo[fieldX].gif" title="$userinfo[fieldX]" align="center"> $userinfo[fieldX]
</div></if>
Hope that helps. :)
B_Pages
11-07-2007, 11:44 PM
if anyone(programmer with lots of VB experience) is interested in dong this hack for my forums shoot me an email or pm!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.