North American License Plate
Description:
Credit for the idea goes to Welshy2008 (The edits and idea are closely matched to his Country Flags mod.) This is my first attempt - any mistakes are mine....and mine alone....so if something is not right....remember we all started somewhere right? This add on gives you a license plate selection from USA/Canada ONLY. Tested on VB 4.1.3 but should work well for other versions. New and existing members can choose from a drop down menu in the user settings - edit profile where the license plate will appear in their postbit. Instuctions: Firstly Upload the "plates" folder to your forum root like this: your style/images/buttons/ Example: http://www.yoursite.com/forum/images/buttons If you use a custom skin then do this: www.yoursite.com/forums/images/styles/"yourstyle"/buttons In your admin control panel please do this: User Profile Fields -> Add new User Profile -> Profile Field Type -> Single Selection Menu (From the drop down menu) - then enter the following fields. (Take note of the FIELD ID) ADD New User Profile Field Single Selection Menu: Title = Your License Plate Description = Add your license plate 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 (dependent 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 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:
<dl class="userinfo_extra"> If you cannot find the above code then use this one: Code:
<span class="usertitle"> {vb:raw post.usertitle} </span> Code:
<!-- License plate Start --> <div align="center"> <vb:if condition="$post['fieldXX']"><img src="{vb:stylevar imgdir_button}/plates/{vb:raw post.fieldXX}.jpg" alt="Users License plate" border="" /></vb:if> </div> <!-- License plate End --> Download
plates.zip (122.9 KB, 70 downloads) Screenshots |
Similar Mods
Mini Mods North American Sports Team Icons | vBulletin 3.8 Add-ons |