The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Adding a new class?
Hi guys,
Im a little stuck and would really appreciate your help on this. Ive been modding my VB board and im trying to create a new CSS class for the username in the postbit. Say for example that i wanted it to be font size 14 and font arial, what should i be putting in that extra css definition box? Ive tried a few different combinations, but either it ends up screwing up my postbit, or it doesnt change the text at all. |
#2
|
||||
|
||||
The class for the usernames in postbit is .bigusername, although you can change it to any class you want. If you wish to stick with it then go to Main CSS in Admin CP, at the second to the last text area (Additional CSS Definitions).
There are other ways but for what you want to do editing .bigusername is the less-hassle way. |
#3
|
||||
|
||||
Ok, so ive edited the bigusername class in the css section in the admincp to how i want it. However since i was removing some of the code in the postbit, i dont know how to apply this CSS definition to the musername phrase.
So, what code do i use to apply the CSS bigusername definition to this phrase? $post[musername] |
#4
|
||||
|
||||
It's already applied on musername.
|
#5
|
||||
|
||||
Yes i know, but i was removing some code to restructure my postbit, and i happened to remove that as well, since i thought i would be creating a new class and not using an old one. How do i put the bigusername class back on?
|
#6
|
||||
|
||||
Depending on how you changed the codes, it should look similar to:
Code:
<div class="bigusername">$post[musername]</div> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|