The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
CountryFlag Details »» | |||||||||||||||||||||||||
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: HTML Code:
<div> $vbphrase[posts]: $post[posts] </div> HTML Code:
<if condition="$post[fieldX] != ''"><div> Country: <img src="images/flags/$post[fieldX].gif" title="$post[fieldX]" align="center"> </div></if> 3. Upload /flags to images/flags to your forum dir. <!--- That's it! ---> --------------------------------------- To show countryflag in profile: Open memberinfo template, FIND: HTML Code:
<if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if> HTML Code:
<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....9&postcount=14 Show Your Support
|
Comments |
#152
|
|||
|
|||
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.
|
#153
|
||||
|
||||
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 |
#154
|
|||
|
|||
Quote:
any suggestion please.. many thanks see attachment: |
#155
|
|||
|
|||
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? |
#156
|
||||
|
||||
Any way to have this show the country in text instead of gif icon?
|
#157
|
|||
|
|||
Just installed it on a vB 3.6 forum, worked perfectly thanks.
Perhaps you should move it up to the 3.6 area? Paul |
#158
|
|||
|
|||
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 |
#159
|
|||
|
|||
Excellent... fits the bill perfectly
|
#160
|
|||
|
|||
|
#161
|
||||
|
||||
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...) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|