Quote:
Originally Posted by friendlymela
what i do for 4.2.1?
|
1.) Download all the flags and put them into a single folder. Upload that folder to your forum.
2.) 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 in the first post (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
3.) 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>
or if you would like to place it under your number of user posts (to the right of your Postbit) then look for:
Code:
<div class="bppostbit"><dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd></div>
{vb:raw template_hook.postbit_userinfo_right_after_posts}
</dl>
Or put the code where you want it to appear in the postbit.
This is what I use on 4.2.1 as my code - change the red field X to the field you created.
Code:
<!-- Wy Country Flags Start -->
<div align="center">
<vb:if condition="$post['fieldX']">
<img src="http://www.myforum.com/Flags/{vb:raw post.fieldX}.GIF" alt="Users Flag!" border="" /></vb:if></div>
<!-- Wy Flags End -->
Just remember the path to your flag folder and change the
http://www.myforum.com/flags to whatever path you set.
And @ Eazymack....go back to post 344 - there is a Vatican Flag posted there.