media 65
Home | Login | Register | Password Reset |

Media 65 Technologies | Beta 0.6 |
User Name:   Password: 

Password Reset
Close


Go Back   Media 65 Forums > Joomla > Joomla Templates

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-14-2008, 11:13 AM
Junior Member
 
Join Date: May 2008
Posts: 7
Talking JTK 2.1 (joomla1.0x) to JTK 3.0 (joomla1.5) backgroung image issue?

Hello, I searched and could not find a similar topic?

I made a simple template using JTK 2.1 with a background image repeat-x, converted and got this in the index.php:

<!--
body {
background-image: url(<?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/images/"; ?>bg.png);
background-repeat: repeat-x;
background-color: #666666;
}
-->

Then I moved forward to educate my self with JTK 3.0, got everthing in my template to become a joomla 1.5 stand alone, except the background image, I placed it in same spot, tried to convert, it changed nothing, heres what I got:

<!--
body {
background-color: #666666;
background-image: url(images/bg.png);
background-repeat: repeat-x;
}
-->

Yet in the j1.5 th script for header looks like this for the image:

<img src="templates/<?php echo $this->template ?>/images/header_logo.png" width="1000" height="195" />

I tried modifying code of <?php echo $this->template ?>
and even put it in the .css to no availe.

Any input would be apprieciated, and I like to say, excellent product, only took me a day to make a functioning template, THANKS BRIAN !!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-14-2008, 12:52 PM
Administrator
 
Join Date: Sep 2006
Posts: 316
Default

Hello TITUS,

Thanks Your CSS does not need to have the PHP code it just does not work
in CSS extensions.

OLD version
Code:
body {
         background-color: #666666;
         background-image: url(images/bg.png);
         background-repeat: repeat-x;
   }
New version: all you need in the CSS is "../" added to the front of your images.
Code:
body {
         background-color: #666666;
         background-image: url(../images/bg.png);
         background-repeat: repeat-x;
   }
Joomla Template Kit 3.0 stable with Docs Late May.
Cheers,
Brian
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-14-2008, 12:57 PM
Administrator
 
Join Date: Sep 2006
Posts: 316
Default

One other thing I forgot to mention PNG images and IE 6 etc.
has issues displaying.

do a Google search on PNG Images and IE

See this digg post:
Digg - Transparent PNG Images in IE
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-14-2008, 01:44 PM
Junior Member
 
Join Date: May 2008
Posts: 7
Default

Thanks for the rapid reply,

I tried this also: background-image: url(../images/bg.png);
What is strange is using the above will not show in DW, IE6, or FIREFOX
Yet this I can see it only in DW, not either browser, background-image: url(images/bg.png);

Guess I could just convert to a .jpg ?

Thanks!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-14-2008, 03:00 PM
Administrator
 
Join Date: Sep 2006
Posts: 316
Default

Just so you know there will be a non Joomla template conversion how to Tutorial to Joomla 1.5.X

And a Joomla 1.0.X to Joomla 1.5.X template conversion how to tutorial
in the Joomla Template Kit 3.0

Cheers,
Brian
I theres even a special wizard for it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-24-2008, 11:18 AM
Junior Member
 
Join Date: May 2008
Posts: 7
Default JTK 2.1 (joomla1.0x) to JTK 3.0 (joomla1.5) background image issue? - solved

Sorry haven't posted this sooner...

I'm not sure why the other two scenerios were so finicky, yet the solution was to simply wrap the mainbody in a divider, the code example is:

index.php -

<body>
<div id="bg_image">
<div id="mainbody">
your site info(html/pictures etc), then ends with...
</div>
</div>
</body>

in template.css file just used the same as previous,

body {
background-image: url(../images/bg.jpg);
background-repeat: repeat-x;
margin-left: 0px;
margin-top: 0px;
}

Thanks!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -4. The time now is 06:39 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0