![]() |
$post[backcolor]
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!? |
you have to edit functions.php
find: PHP Code:
PHP Code:
|
Danke! Ich frag in Zukunft einfach gleich Dich! :)
|
hehe, wär meist einfacher ^^
aber so sehn andre meine guten taten *g* |
hehe i was ganna ask this one myself :D. danke.
|
bitte :) == you're welcome :)
|
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. |
$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 |
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 |
i'm not sure, but i think you can perhaps use that:
$post[backcolor]="{firstaltcolor} {blevel1}"; |
Nope that doesnt work neither. Thats because the template says this bgcolor="{firstaltcolor} {bevel1}" And that is not what we want. Also the template thing doesnt work. gettemplate("templatenamehere");
That doesnt work. I no you put the template name in there so that is not the prob hehe. But it uses this gettemplate("templatenamehere"); as the hex code. It doesnt go to the template like it is suppose to. I dont no what to do. |
Well i figured out how to do it.
i did this PHP Code:
|
All times are GMT. The time now is 08:49 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|