Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
North American License Plate Details »»
North American License Plate
Version: 1.00, by Krusty1231 Krusty1231 is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Add-On Releases - Version: 4.1.3 Rating:
Released: 08-05-2011 Last Update: Never Installs: 10
Template Edits
Re-useable Code  
No support by the author.

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: 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 Now

File Type: zip plates.zip (122.9 KB, 68 views)
File Type: txt OPTIONS.txt (802 Bytes, 58 views)

Screenshots

File Type: jpg 2.jpg (18.0 KB, 0 views)
File Type: jpg 4.jpg (20.0 KB, 0 views)
File Type: jpg Profile Field.jpg (63.7 KB, 0 views)
File Type: jpg Profile.jpg (55.0 KB, 0 views)
File Type: jpg User Profile Field.jpg (61.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-09-2011, 01:37 AM
bosanci28's Avatar
bosanci28 bosanci28 is offline
 
Join Date: Feb 2008
Location: USA - West Coast
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a mode like this that has world wide plate numbers? all countries?
thanks
Reply With Quote
  #13  
Old 08-09-2011, 02:48 AM
duketxboy duketxboy is offline
 
Join Date: Apr 2011
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Scalemotorcars View Post
Can someone please mod this hack for personalized plates like on http://www.acme.com/licensemaker/

Its a great mod but more usable with customization...
Very sweet mod on that site wish someone could do this...
Reply With Quote
  #14  
Old 08-09-2011, 01:21 PM
Sage Knight Sage Knight is offline
 
Join Date: Apr 2011
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What code edits we have to do to make this specific for certain usergroups? Or that isn't possible since the profile fields, themselves don't have such an option >.>
Reply With Quote
  #15  
Old 08-10-2011, 11:38 AM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can contribute the blank American and Canadian plates if someone can figure out a way to personalize them.

Allot of automotive and motorcycle sites could use this mod with more features.

Just an ideal. I've seen those customizable smileys with signs. Why couldn't the smiley be replaced with the plate? I haven't a clue how to do it myself but Im sure it can be done.

Request for customizable version here.
https://vborg.vbsupport.ru/showthrea...92#post2231792
Reply With Quote
  #16  
Old 12-04-2011, 11:02 PM
demo7up demo7up is offline
 
Join Date: Apr 2007
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have made a personalized version of this where you can add your own text to the license plate on a per user basis.

Not sure if im allowed to post the url here so if i cant please contact me to remove it or maybe a mod can

https://vborg.vbsupport.ru/showthread.php?t=275041
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:32 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10122 seconds
  • Memory Usage 2,285KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (7)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete