Back to vBulletin 4.x Template Modifications

North American License Plate
Mod Version: 1.00, by Krusty1231

vB Version: 4.1.3 Rating: (1 vote - 3.00 average) Installs: 10
Released: 06 Aug 2011 Last Update: Never Downloads: 72
Not Supported Template Edits Re-usable Code  

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">
(Custom template I had)

If you cannot find the above code then use this one:
Code:
<span class="usertitle">
        {vb:raw post.usertitle}
</span>
Add this underneath - replacing XX with the Field ID you wrote down from above.
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 -->
And that's it - Enjoy!

Download

File Type: %1$s plates.zip (122.9 KB, 70 downloads)
File Type: %1$s OPTIONS.txt (802 Bytes, 60 downloads)

Screenshots

Click image for larger version
Name:	2.jpg
Views:	343
Size:	18.0 KB
ID:	131727   Click image for larger version
Name:	4.jpg
Views:	270
Size:	20.0 KB
ID:	131728   Click image for larger version
Name:	Profile Field.jpg
Views:	106
Size:	63.7 KB
ID:	131744   Click image for larger version
Name:	Profile.jpg
Views:	106
Size:	55.0 KB
ID:	131745  

Click image for larger version
Name:	User Profile Field.jpg
Views:	88
Size:	61.3 KB
ID:	131746  

Similar Mods

Mini Mods North American Sports Team Icons vBulletin 3.8 Add-ons

vblts.ru supports vBulletin®, 2022-2024