vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Add-On Releases - North American License Plate (https://vborg.vbsupport.ru/showthread.php?t=268065)

Krusty1231 08-05-2011 10:00 PM

North American License Plate
 
1 Attachment(s)
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!

voglermc 08-06-2011 02:06 PM

thanks

duketxboy 08-06-2011 11:25 PM

This doesn't look lk urs from above

duketxboy 08-06-2011 11:38 PM

https://vborg.vbsupport.ru/external/2011/08/72.jpg

duketxboy 08-06-2011 11:42 PM

trying to figure out how to get the way your layout is I like it

Krusty1231 08-06-2011 11:44 PM

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.

duketxboy 08-06-2011 11:50 PM

yeah I got it but now it looks lk this I really want the layout lk you have up above
https://vborg.vbsupport.ru/external/2011/08/71.jpg

NTMID8 08-07-2011 06:23 AM

Are the license plates able to personalized or do they just have a generic plate number on them?

Scalemotorcars 08-08-2011 01:42 PM

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...

JasonP38 08-08-2011 11:56 PM

Installed.

thanks. :)

bosanci28 08-09-2011 01:37 AM

is there a mode like this that has world wide plate numbers? all countries?
thanks

duketxboy 08-09-2011 02:48 AM

Quote:

Originally Posted by Scalemotorcars (Post 2230881)
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...

Sage Knight 08-09-2011 01:21 PM

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 >.>

Scalemotorcars 08-10-2011 11:38 AM

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

demo7up 12-04-2011 11:02 PM

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


All times are GMT. The time now is 05:00 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.01100 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete