PDA

View Full Version : Styles not working with pages


gtech
12-14-2004, 03:17 PM
All pages work correctly with the default theme but if i add a new theme and then view the same page the style sheets, images etc will still be set to the default styles.

Here is the code for the pages, what needs editing:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.tborder { background-color: #D1D1E1;
color: #000000;
border: 1px solid #0B198C;
}
.tcat { background: #869BBF url(images/gradients/gradient_tcat.gif) repeat-x top left;
color: #FFFFFF;
font: bold 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
-->
</style>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="6" cellspacing="1" class="tborder">
<tbody>
<tr>
<td class="tcat">&nbsp;</td>
</tr>
</tbody>
<tbody id="collapseobj_forumbit_8" style="">
<tr align="center">
<td width="100%" align="left" class="alt1Active" id="f9"><br>
<p>&nbsp;</p></td>
</tr>
</tbody>
<tbody>
</tbody>
<tbody id="collapseobj_forumbit_1" style="">
</tbody>
<tbody>
</tbody>
<tbody id="collapseobj_forumbit_5" style="">
</tbody>
<tbody>
</tbody>
</table>
</body>
</html>

ConqSoft
12-14-2004, 03:19 PM
Did you change the image paths for the new theme to the full paths? (ncluding the gradients)

Our Sponsors
 

gtech
12-14-2004, 03:47 PM
Did you change the image paths for the new theme to the full paths? (ncluding the gradients)

How would i do that? i thought it would be a problem with the code

ConqSoft
12-14-2004, 03:48 PM
Edit the options for the new style and update all the image paths to the full paths, just like you had to do to your "main" style when you installed vBa CMPS.

Our Sponsors
 

gtech
12-14-2004, 03:51 PM
Cant see how that would work, check it out, my site is at http://www.sonataarctica.co.uk see if you can see the problem as i would have thought its the code not changing the sourse of images etc when a user changes theme

ConqSoft
12-14-2004, 03:54 PM
When you change the settings of the theme, that tells it where to look for images for that particular theme. The code simply looks at the settings/paths you have defined for that specific theme.

gtech
12-14-2004, 03:55 PM
When you change the settings of the theme, that tells it where to look for images for that particular theme. The code simply looks at the settings/paths you have defined for that specific theme.

Dont suppose you could talk me through it step by step as im having trouble doing this. Thanks

ConqSoft
12-14-2004, 04:10 PM
When I change to your alternate theme, the path to the Reply button (for example) is correctly pointing to a different path, named the same as the theme/style. So, the paths appear correct. So, the image for the reply button seems to be the same for that theme/style.

Which images did you mean?

gtech
12-15-2004, 02:21 PM
I have tried doing this and there is still a problem. As you can see in the screenie i have changed the theme but the images and style are still the same as the default style.

ConqSoft
12-15-2004, 02:51 PM
I have tried doing this and there is still a problem. As you can see in the screenie i have changed the theme but the images and style are still the same as the default style.

Are the images correct on the rest of your forum, and only incorrect on the CMPS page? If they are incorrect everywhere, then that's a different issue.

Looking at the location of the images, they are point to the correct location, where the images for your new style are located. So, look in that directory on your web server and make sure the images are actually different.

Other than that, you may want to contact the author of the theme/style for help.

gtech
12-16-2004, 02:17 AM
See when i choose a new theme the front page looks correct, correct graphics etc but on custom pages they just look like the default theme and do not change according the users theme selected. This makes me think my code isn't correct.

gtech
12-17-2004, 12:14 PM
Anyone??

Brian
12-17-2004, 01:13 PM
I'm not seeing anywhere to change styles on your homepage... And the images I'm seeing on your default style appear the same as the ones in your forum.

gtech
12-20-2004, 04:49 AM
Ok im going to try and explain this better.

The first screenshot shows everything ok, the gradients on the menu bars match the themes perfect.

The second screenshot shows a custom page which has a different gradient. This gradient should be the same as screenshot 1.

This is the main problem, the images are not working correctly.

Brian
12-20-2004, 10:26 AM
Admin CP => Style Manager => All Style Options

On that page you will see quite a few css classes. In the ones that have 'url(' in them, make sure the image within the url() tag has the full URL to that image for each of your classes.

gtech
12-20-2004, 01:09 PM
Admin CP => Style Manager => All Style Options

On that page you will see quite a few css classes. In the ones that have 'url(' in them, make sure the image within the url() tag has the full URL to that image for each of your classes.

Can you explain some more please??