Mike Armas
01-25-2008, 05:42 PM
I am almost done with the css editor for MA_SuperBasic. But i can't get one part to work so i need some more brain power.
If you want to add a background image to my template all you have to do is edir the css and add a background image. Well it's not that easy with a css-editor here is the code i am useing for the image in the new css file i am doing for MA_SuperBasic
<script type="text/javascript">
var body_background-image ="<? echo $mikestuff->get("body_background-image"); ?>"
if ( body_background-image == "NONE" ) {
body_background-image2 = "sohoadmin/program/modules/site_templates/pages/MA_SuperBasic/sidebar-1.jpg";
} else {
body_background-image2 = "images/"+body_background-image;
}
</script>
BODY {
background-image: url(http://<? echo $_SESSION['docroot_url']; ?>/<? echo $mikestuff->get("body_background-image2"); ?>); ?>);
}
i am missing somthing any one with better eyes would like to tell me what i am missing.
i tryed useing the _userimg command but it's doesn't work in a php file. If it's easyer to make soho edit the _userimg command in a php file i don't mind going that.
But i don't know how to do that.
I might just do the new update with out a backgroud image editor for now.
If you want to add a background image to my template all you have to do is edir the css and add a background image. Well it's not that easy with a css-editor here is the code i am useing for the image in the new css file i am doing for MA_SuperBasic
<script type="text/javascript">
var body_background-image ="<? echo $mikestuff->get("body_background-image"); ?>"
if ( body_background-image == "NONE" ) {
body_background-image2 = "sohoadmin/program/modules/site_templates/pages/MA_SuperBasic/sidebar-1.jpg";
} else {
body_background-image2 = "images/"+body_background-image;
}
</script>
BODY {
background-image: url(http://<? echo $_SESSION['docroot_url']; ?>/<? echo $mikestuff->get("body_background-image2"); ?>); ?>);
}
i am missing somthing any one with better eyes would like to tell me what i am missing.
i tryed useing the _userimg command but it's doesn't work in a php file. If it's easyer to make soho edit the _userimg command in a php file i don't mind going that.
But i don't know how to do that.
I might just do the new update with out a backgroud image editor for now.