Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

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
  #2  
Old 08-06-2011, 02:06 PM
voglermc's Avatar
voglermc voglermc is offline
 
Join Date: Oct 2006
Location: Piedmont Triad, NC, USA
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #3  
Old 08-06-2011, 11:25 PM
duketxboy duketxboy is offline
 
Join Date: Apr 2011
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This doesn't look lk urs from above
Reply With Quote
  #4  
Old 08-06-2011, 11:38 PM
duketxboy duketxboy is offline
 
Join Date: Apr 2011
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reply With Quote
  #5  
Old 08-06-2011, 11:42 PM
duketxboy duketxboy is offline
 
Join Date: Apr 2011
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

trying to figure out how to get the way your layout is I like it
Reply With Quote
  #6  
Old 08-06-2011, 11:44 PM
Krusty1231's Avatar
Krusty1231 Krusty1231 is offline
 
Join Date: Jul 2010
Location: Canada
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK - I would go to your settings - edit profile - Select the license plate you want to use.

Or....

Check where you uploaded the plates folder to. If you right click on the "Users license plate" text you are pointing to - and select properties in IE/FF - you can see the path where the plates folder needs to be.
Reply With Quote
  #7  
Old 08-06-2011, 11:50 PM
duketxboy duketxboy is offline
 
Join Date: Apr 2011
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah I got it but now it looks lk this I really want the layout lk you have up above
Reply With Quote
  #8  
Old 08-07-2011, 06:23 AM
NTMID8 NTMID8 is offline
 
Join Date: Feb 2004
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are the license plates able to personalized or do they just have a generic plate number on them?
Reply With Quote
  #9  
Old 08-08-2011, 01:42 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
Благодарность от:
NTMID8
  #10  
Old 08-08-2011, 11:56 PM
JasonP38's Avatar
JasonP38 JasonP38 is offline
 
Join Date: Oct 2010
Location: Newfoundland
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed.

thanks.
Reply With Quote
Reply


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 06:32 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05559 seconds
  • Memory Usage 2,327KB
  • Queries Executed 26 (?)
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)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
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (7)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • 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
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete