The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Country Flags - Postbit & Postbit_Legacy. vB 3.8.X Details »» | |||||||||||||||||||||||||||||||||||||||||
Country Flags - Postbit & Postbit_Legacy. vB 3.8.X
Developer Last Online: Mar 2013
After receiving many PMs for me to do my version of this mod, I have obliged.
Original Credit for the Mod goes to Cobro. If you use this Mod, Please click "Installed" and rate the Mod fairly. This Mod is available for vb4.0.X here: https://vborg.vbsupport.ru/showthrea...02#post2008102 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. 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 ** SAVE ** Then, In your Admin Control Panel (ACP)... For Postbit: ACP -> Styles & Templates -> Style Manager -> <<>> -> Postbit Templates -> postbit FIND: Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if> <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if> $template_hook[postbit_userinfo_left] ADD BELOW: Code:
<!-- Wy Country Flags Start --> <if condition="$post['fieldX']"> Country: <img src="http://www.Yourforum.com/images/buttons/flags/$post[fieldX].GIF" alt="$post[username]'s Flag is: $post[fieldX]" border="" /> </if> <!--// Wy Country Flags End --> For Posbit_Legacy: ACP -> Styles & Templates -> Style Manager -> <<>> -> Postbit Templates -> posbit_legacy... FIND: Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</if> <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if> $template_hook[postbit_userinfo_left] ADD BELOW: Code:
<!-- Wy Country Flags Start --> <if condition="$post['fieldX']"> Country: <img src="http://www.Yourforum.com/images/buttons/flags/$post[fieldX].GIF" alt="$post[username]'s Flag is: $post[fieldX]" border="" /> </if> <!--// Wy Country Flags End --> BOTH of the codes above will give you the Username and the Name of the actual Users Country Flag on mouseover. TIP: (If you find that you get the box with a "red x" like this , instead of seeing your image whilst using Option 1, Above - This means that the route to your images is wrong. ** 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" Download Now
Screenshots
Show Your Support
|
Comments |
#42
|
|||
|
|||
Thanks very much. Easy to set up and looks good
lol hoping the staff agree |
#43
|
||||
|
||||
I'd like to use it for N. America.. (US States & Canada)
Anyway to use this for State Flags.? (or is there another mod.?) |
#44
|
||||
|
||||
Quote:
On the flags list (IE UK.GIF, US.GIF) just replace them with the flag names that you want to use, and match those names to the actual flags that you want to use. Let me know how you get on. |
#45
|
|||
|
|||
I installed it with no problem at all. Nice, clear instructions. I made my own flag set because I want my forum users to be able to request custom flags (historical or subnational flags). I also changed things so that the flag shows on the right side of postbit below the rep power.
|
#46
|
|||
|
|||
Quote:
Heres a link to a thread that the member who has the text has posted. http://www.plecoplanet.com/forum/showthread.php?t=5144 |
#47
|
|||
|
|||
On the 3.8.1 there is no Option field to copy paste the option.txt.
Please advice what to do |
#48
|
||||
|
||||
Upgrage?
|
#49
|
|||
|
|||
What if i dont want ot upgreat , there is no chance to make it work with 3.8.1 ?
Also when i tried the path ="http://www.Yourforum.com/images/buttons/flags/ its gets this Forbidden You don't have permission to access /up/forum/images/buttons/flags/ on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request |
#50
|
||||
|
||||
Can you post or PM me the URL to your forum? I don't have a 3.8.1 to test in on, sorry.
|
#51
|
|||
|
|||
Found the mistake. Because on 3.8.1 there is not fielf for options, if you write wrong the name of the country or with small letters and not just like the list then you get an x .
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|