The Arcive of vBulletin Modifications Site. |
|
$post[backcolor] Details »»
|
|||||||||||||||||||||||||
Hi,
i want to modify my postbit! In postbit i have this variable or the background -> $post[backcolor] the first stands for { firstaltcolor } the second for { secondaltcolor } How can i make a table in the postbit that uses the opposite of $post[backcolor] as background. so if postbit is { firstaltcolor }, the background of the small table is { secondaltcolor } Thanks you!? Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
you have to edit functions.php
find: PHP Code:
PHP Code:
|
|
#3
|
||||
|
||||
|
Danke! Ich frag in Zukunft einfach gleich Dich!
|
|
#4
|
||||
|
||||
|
hehe, wär meist einfacher ^^
aber so sehn andre meine guten taten *g* |
|
#5
|
|||
|
|||
|
hehe i was ganna ask this one myself
. danke.
|
|
#6
|
||||
|
||||
|
bitte
== you're welcome
|
|
#7
|
|||
|
|||
|
Thats awesome. I have one question though. do you see this in the PHP code in fucntions
$post[backcolor] How can i make that not hardcoded and make it look for a template. Because have a lot fo styles and i would like to give some style the bevel effect for that and others non. So it will call for a template for every style. Please help thanks. |
|
#8
|
||||
|
||||
|
$post[backcolor] = gettemplate("templatenamehere");
but post[backcolor] isn't hardcoded, it depens on the replacementvars {firstaltcolor} and {secondaltcolor} so its different in your styles to |
|
#9
|
|||
|
|||
|
Ic. Well the template thingy doesnt work for me. IS there any way to add this to the php file also next to firstl alt {bevel1}
I need to add that some where too. $post[back] = bgcolor="$post[back] {bevel1} = style="BORDER-RIGHT: #000022 1px solid; BORDER-TOP: #336699 1px solid; BORDER-LEFT: #336699 1px solid; BORDER-BOTTOM: #000022 1px solid;" Please help me out. Thanks |
|
#10
|
||||
|
||||
|
i'm not sure, but i think you can perhaps use that:
$post[backcolor]="{firstaltcolor} {blevel1}"; |
![]() |
|
|