The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Country Flags - Postbit & Postbit_Legacy. vB 4.0.x (Inc GO Details »» | |||||||||||||||||||||||||||||||||||||||||
Country Flags - Postbit & Postbit_Legacy. vB 4.0.x (Inc GO
Developer Last Online: Mar 2013
Description:
This Add on, gives a selection of Countries that your Member (New or Existing) can choose from in a 'Drop-Down Menu'. The Country he/she selects, will be displayed as a Flag in their Postbit. Credit for the Flags goes to Cobro. (I have renamed each and every flag to work with this Mod). Instructions: Firstly ?Upload? ALL the Flag GIF pics to your forum root /images/buttons/flags folder. IE: yourforumaddress.com/forum/images/buttons/flags Please Note: Due to the flags folder being too large to upload as one - I have been forced to upload it as "flags1", "flags2" and "flags3" - Please ensure that you add a new folder to "images/buttons/" and name it "flags". Please copy the contents of ALL THREE (3) flags folders in the attachment below to the new 'flags' folder that you have just made. (DO NOT place them as 3 seperate folders!" Then in your Admin Control Panel (ACP), please do the following: ACP -> User Profile Fields -> Add New User Profile Field ->Profile Field Type -> Single-Selection Menu (select ?Single-Selection Menu? from the Drop-Down Menu) -> Please enter the following into the following fields (REMEMBER to make a note of the FieldID, because you will need to replace ALL the X?s in [fieldX] with it!!! (Please see 'FieldID.jpg' attachment below). Add New User Profile Field Single-Selection Menu: Title = Country Flag Description = Add your country flag to your profile: Profile Field Category = (Uncategorized) Options = Copy & Paste the Whole contents of the file attached below (OPTIONS) Set Default = None Display Order = You Select this (dependant on how many you already have) Field Required = yes, at registration and profile updating Field Editable by User = Yes Private Field = No Field Searchable on Members List = No Show on Members List = Yes Optional Input: Allow user to input their own value for this option = No Max length of allowed user input = 100 Field Length = 25 Regular Expression = Leave this Blank Display Page: Which page displays this option? = Edit Your Details ** Please note that the vB4.0.4 Version does not show this option. Please select "Edit Profile" option. The selct your country flag option, I can confirm, Also shows on registration too. ** SAVE ** Then, In your Admin Control Panel (ACP)... ACP -> Styles & Templates -> Style Manager -> <<>> -> Postbit Templates -> select the template that you use (ie Postbit or Posbit_legacy) ? This is for the Postbit_Legacy? FIND: Code:
<span class="usertitle"> {vb:raw post.usertitle} </span> If you would like to place it under your number of user posts (to the right of your Postbit) then look for: Code:
<dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd> (upto vB4.0.5) ADD BELOW: Code:
<!-- Wy Country Flags Start --> <vb:if condition="$post['fieldX']"> <dt>Country:</dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldX}.GIF" alt="Users Country Flag" border="" /></vb:if> <!-- Wy Flags End --> Code:
<!-- Wy Country Flags Start --> <vb:if condition="$post['fieldX']"> <dt>Country</dt> <img src="http://www.YOURFORUM ADDRESS.com/forum/images/buttons/flags/{vb:raw post.fieldX}.GIF" alt="This is {vb:raw post.username}'s Country Flag" border="" /></vb:if></p> <!-- Wy Flags End --> (for vB4.0.8): Code:
<!-- Wy Country Flags Start --> <vb:if condition="$post['fieldX']"><style="text-align:left"> Country:</dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldX}.GIF" align="middle" alt="Users Country Flag" border="" /></vb:if> <!-- Wy Flags End --> (for vB4.1.0 , 4.1.0 PL2 & 4.1.1) Code:
<!-- Wy Country Flags Start --> <vb:if condition="$post['fieldX']"><style="text-align:left"> Country:</dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldX}.GIF" align="middle" alt="{vb:raw post.fieldX}" border="" /></vb:if> <!-- Wy Flags End --> Please make sure the style and template edits are still there. Just one of the people can be seen on post 350 ** Replace the ?X? with your FieldID number ** ** Replace the ?Red Text? with Your Forum Address ** ** SAVE Template ** And that's it - Enjoy! Please do not forget to click "Install" Edit & Update TRACKER - Keep Upto date here: ** 30/05/2012 - Update "Flags2 to include correct name on Switzerland flag".. ** 27/09/2010 - Update on 4.0.6 "added code for the 4.0.6 Version, and instructions on how to place the flug under a user's postcount in posbit".. ** 12/07/2010 - Update on 4.0.4 "Which page displays this option".. ** 26/06/2010 - Updated Flag Names and Country Names in the "Options" text file. PLEASE Re-upload and overwrite all three flag folders and the options Text file... ** 15/01/2010 - Made all the Countries in the "OPTIONS.txt" in Alphabetical Order.. ** 27/12/2009 - Changed the contents of OPTIONS.ZIP folder from a .docx file to a .txt file, as requested. ** 26/12/2009 - Option 2 Added - Flag folder Updated (UK.gif changed to UK.GIF) ** 05/12/2009 - OPTIONS File Added. Download Now
Screenshots
Supporters / CoAuthors Show Your Support
|
Comments |
#152
|
|||
|
|||
hrmmm not sure why it does it with your GIF's maybe the way you saved your GIF images because i have gone on animated GIF sites and they do load fine.... so not sure why FF will be displaying them like that...
|
#153
|
||||
|
||||
Quote:
Me neither. Hmm. They were working great until recently. So I don't know what FF have done. And, they were made by someone else, so I haven't the foggiest idea how they were saved. |
#154
|
|||
|
|||
Why does it only show the name of the country instead of the flag images?
|
#155
|
||||
|
||||
Quote:
...If you PM me your forum address, I will take a look for you. |
#156
|
|||
|
|||
I put
Code:
<!-- Wy Country Flags Start --> <vb:if condition="$post['field6']"> <dt>Country:</dt> <img src="http://www.habbocamping.net/forum/images/buttons/flags/{vb:raw post.field6}.GIF" alt="This is {vb:raw post.username}'s Country Flag" border="" /></vb:if></p> <!-- Wy Flags End --> and Nothing shows up, if you like to see http://habbocamping.net/forum/showth...9-UK-Mods&p=69 Just says: "Country:" thats it.. Can you help me please.. No Worries i found out the problem but i dont know all the countries, if anyone has had the same problem as me go to the flags folder and you see where it says flag_au.GIF change that to Australia.GIF and the flag_uk.GIF change that to UK.GIF and the same to the rest that you think are important unless you know all the codes. I know some of you guys also having the same problem i have uploaded a zip with ones i have edited so you can just upload this zip to flag folder and un-zip it.. Wales,United States, UK, Switzerland(i think), Scotland, Syria, Tenerife, Spain, Saudi Arabia, Sigapore, Rwanda, Russioan-Federation, Romania, Quatar, News Zealand, Germany, Great Britain, France, Europe, Finland, England, Denmark, Canada, Australia. Hope these may save you time. |
#157
|
|||
|
|||
Sorry about the Double Posts mods, but i thought it was better to post in here than make a thread..
Hello guys and gals, i know you have been having the same problem as i had, and i thought as i use most Mods available i like i thought i could re-pay you back by this Reply.. I took my time and changed all the names of the flags images so that you can just upload these Zips instead and follow the developers Installation and your Flags will and should work fully without modifaction to the Flag Names... Save you some time.. Please note, i take no credit for this, just would like a small thank you for my time... After im off to bed but ill stay online on here like always.. Please Comment if they work for you like they do for me Yours Faithfully, MichaelDance PS: remove Nicaraqua.GIF and upload Nicaragua.GIF or just upload and leave it as it wont be used anyway. |
#158
|
|||
|
|||
How can we make it so a person can display no flag?
|
#159
|
|||
|
|||
Right if you uploaded my Zips instead and extracted them all into the flags file and you installed the way the developer has told us, then open AdminCP > User Profile Feilds and where Norway is put Not Telling under it and save it and when they click on the flags and see Not Telling and click and save it it will show up the Not Telling Flag.
Hope thats helpful |
#160
|
||||
|
||||
Just add it with a Blank option. When your user selects that - Nothing (not even the 'Country' text) should show.
Michael - Thank You. |
#161
|
|||
|
|||
No problem mate, and wicked i didnt know that.. very handy to know
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|