![]() |
Dynamic License Plate & Text in Postbit.
1 Attachment(s)
~~~~~MARK INSTALLED~~~~~~
Here is it is for all Car Enthusiast Site's all i ask is that you link back to my site in way, shape or form. Site: http://www.nycjdm.com Or please throw a donation my way :) I will not help support this unless you have marked this installed, can either send me a link with the link back to my site or have placed a donation. This Mod should work for any vB 4.+ So first we need to setup the CSS for the custom div that positions the License Plate & Text so 1. Navigate to Admin CP => Styles & Templates => Style Manager => Edit Templates => CSS Templates => additional.css At the bottom of this file add (you can change the css to match your site width etc.. Code:
div.jdm_plate{ You will need to create 2 fields, one to Select License Plates the Other to Add the Text to it. So create the first custom field we will call this x (make sure u get the field id) Code:
Profile Field Type: Single Selection Menu 3. Navigate to Admin CP => Styles & Templates => Style Manager => Edit Templates => Postbit Templates => postbit_legacy find and place code between the code in the box or place it where you would like it to show in the post bit. Code:
</vb:if> Code:
<vb:if condition="$post['userid']"> |
reserved
|
1 Attachment(s)
hi,and thanks for this,
any clue why i get this:? if i take avatar out ,there are 6 plates numbers, also my plates are in .jpg thanks >>>>>>>>>>>>>>>>>>>>>>>>> update: i manage to fix it: find this in postbit_legacy Code:
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if> and add above the code from first post or main post! (change path to whatever you want where you put your pictures and also the field X and Y !) Code:
</vb:if> and in my case or my forum skin that i have , i used this code : Code:
div.jdm_plate{ thanks (sorry for the codes added just in case other people have the same problem like i had in my case.) |
Im glag you were able to get it to work. No sweat if it helps others #whynot lol
|
no luck with it here
|
Quote:
|
is there a way in my case on the code above ,to <center> the text?
like if you put "M5" to be in the middle !... i mean to auto align , if one letter was entered to be in the middle , because if i add only like this: Code:
</vb:if> if 1,2,3,4,5,6,7 letters to auto center itself... if possible... thanks |
Quote:
|
i marked install yesterday !...friend.
post 7 thats my code....that i have right now... and the .css from above post. thanks |
okay what i think u need to do is
in the css replace Code:
padding-left: 35px; Code:
margin: 0 auto; |
All times are GMT. The time now is 04:38 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|