Page 1 of 1
[Solved] Template and php page do not agree. How can I fix?

Posted:
Thu May 10, 2007 5:26 pm
Author: DjPorkchop
The following image is just killing me. I have played with the tpl file and all and no luck. Im attempting to make the grey background appear as the normal Integra2 theme the nice blue, not grey. How would I go about this? I have a couple more mods I need to tweak as well. And Im ok here and there but sometimes tpl just kills me.... <img> and its the easiest part....lol
[flash=,:wmr5frpb]http://myshack.org/images/fix.JPG[/flash:wmr5frpb]
Re: Template and php page do not agree. How can I fix?

Posted:
Fri May 11, 2007 12:58 am
Author: found it
Without seeing the tpl file
either adding the class for the background in the <table> line or the <td> line I think the class is
bodyline though not 100% on that...
let me know

Re: Template and php page do not agree. How can I fix?

Posted:
Fri May 11, 2007 1:58 am
Author: Frost
Yea, a link to the actual page would help here <img>
Re: Template and php page do not agree. How can I fix?

Posted:
Sun May 13, 2007 9:53 pm
Author: DjPorkchop
Well, its quite a few pages actually, I just gave that pic as a broad example.

Re: Template and php page do not agree. How can I fix?

Posted:
Sun May 13, 2007 10:47 pm
Author: Frost
It's either a section in your css that specifies TD to have a background color of grey or it's just default.
Show me your css file, or you can look for yourself and find the color #7A7A7A and change it to what you want
Re: Template and php page do not agree. How can I fix?

Posted:
Mon May 14, 2007 1:40 am
Author: DjPorkchop
all I reallywant it to do is match the rest of the theme of Integra 2 the nice blue with the pinlines in it. Very good example of, look around this page as you read it.

Re: Template and php page do not agree. How can I fix?

Posted:
Mon May 14, 2007 2:25 am
Author: Frost
Yes I know, but what I'm saying the grey area is most likely the color. If it is an image, which I doubt, there is an error in your css.
What I'm proposing is you show your css file here and I will look at it and tell you what to do to get the grey to turn a different color or if you want, make it use the same background as this post does.
Up to you lol
Re: Template and php page do not agree. How can I fix?

Posted:
Mon May 14, 2007 2:26 pm
Author: DjPorkchop
MWE_001, just hang your head and quiety say DOH!

And my interest is to make it like this post is instead of a color. I need it to look like the rest of the site.
Integra2.css
[code]/* Based on the original Style Sheet for the fisubsilver v2 Theme for phpBB version 2+Edited by Daz - [url=http]http://www.forumimages.com[/url] - last updated 26-06-03 */ /* General page style. The scroll bar colours only visible in IE5.5+ */body { background-image: url(images/background.gif); scrollbar-3dlight-color: #D1D7DC; scrollbar-arrow-color: #006699; scrollbar-darkshadow-color: #98AAB1; scrollbar-face-color: #DEE3E7; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #DEE3E7; scrollbar-track-color: #EFEFEF;} /* General font families for common tags */font,th,td,p { color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;}a:link,a:active,a:visited { color: #2D60C8; text-decoration: none;}a:hover { color: #3399FF; text-decoration: none}hr { border-style: solid; border-width: 1px 0px 0px 0px; border-color: #666666; height: 0px } .forumline { background-color: #7A7A7A} .absbottom { vertical-align: text-bottom;}.dom_overview_abshidden { position: absolute; visibility: hidden; width: 300px; } /* Main table cell colours and backgrounds */td.row1 { background-color: #FFFFFF; background-image: url(images/background2.gif);}td.row2 { background-color: #FFFFFF; background-image: url(images/background3.gif); border: none; }td.row3 { background-color: #FFFFFF; background-image: url(images/background2.gif);} /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum*/td.rowpic { background: #ffffff url(images/cellpic2.jpg) repeat-x } /* Header cells - the blue and silver gradient backgrounds */th { color: #000000; font-weight: bold; font-size: 11px; background: #FFFFFF url(images/cellpic3.gif); height: 25px } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background: #d1d7dc url(images/cellpic1.gif); height: 28px } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it

Thx for looking into this and your patience with me. My eggs are aall scrambled the past few days. <img>
Ray
Re: Template and php page do not agree. How can I fix?

Posted:
Mon May 14, 2007 9:36 pm
Author: Frost
lol, no worries
Try changing this:
[code].forumline { background-color]
To this:
[code].forumline { background-color]
Change 7A7A7A to a lighter color that is similar to the bg you choose (this is because before the image loads, it shows the color first, so this is cosmetically preferred)
Change background.gif to whichever one you want and you're done
Note: there is a possibility this will affect other areas that use the .forumline class. If this is the case we might need to edit your files themselves to add new classes where you need them
Let me know <img>
Re: Template and php page do not agree. How can I fix?

Posted:
Tue May 15, 2007 6:38 pm
Author: DjPorkchop
I all but pursued that avenue in the css before and opted out of it as I wish not to affect my iste at all. Just a few specific pages such as the example shown. Most of my mods are fine as is. It is just a select few that are bothering me.
Re: Template and php page do not agree. How can I fix?

Posted:
Tue May 15, 2007 9:20 pm
Author: Frost
Then just make your own class for that page, open the tpl file of the page in question, find the area in question, (in your case being class="forumline") and change it to class="forumline2"
Then in your css, add this
[code].forumline2 { background-color]
That way it only effects that one page, then if you find another one, you can set it like the other by just opening the tpl file and changing the class to forumline2 again...
That easy <img>
Re: Template and php page do not agree. How can I fix?

Posted:
Wed May 16, 2007 4:28 pm
Author: DjPorkchop
Nice... I'll have a go at it and see what happens. Now, I have a MAJOR error with my 1.4.1 install that I have to post another topic about and get fixed before i work on this problem. I'll try it tonight and comeback and mark solved if it works for me. Thx a bunch Frost
Ray
Re: Template and php page do not agree. How can I fix?

Posted:
Wed May 16, 2007 11:14 pm
Author: nGAGE
that would be one way, but I think it should work fine as well if you simply replace the
class="forumline" bits with
class="bodyline"I've actually used a FireFox addon that can show the classes used on a website and for sure it is the "forumline" class that's causing it!
Here's how I got to it:
Click [url=http]HERE[/url] for screenie

Re: Template and php page do not agree. How can I fix?

Posted:
Wed May 16, 2007 11:28 pm
Author: Frost
Having trouble finding bodyline? lol
The problem with that is you'd still have to create the css for the class anyway, and I do the method suggested as a way to have control over everything independently.
You can do it any way you wish, that's up to the coder <img>
And yes, I've been using the addon for a while now, couldn't live without it.
Also try: BBComposer, Colorzila, Dom Inspector, Palette Grabber, Firebug, and screengrab
Solved?

Posted:
Thu May 17, 2007 12:07 am
Author: nGAGE
True... adding the seperate lines does provide more control, but like knowing myself, I'd keep adding and adding and end up with a 500kb .css file <img>
Re: Template and php page do not agree. How can I fix?

Posted:
Thu May 17, 2007 1:50 am
Author: Frost
lol yes, that is possible <img>
Solved then?

Posted:
Thu May 17, 2007 2:04 am
Author: nGAGE
http://www.myshack.org/fsports.phpHe doesn't seems to have applied it yet!
Re: Template and php page do not agree. How can I fix?

Posted:
Thu May 17, 2007 4:18 pm
Author: DjPorkchop
Thx for the help gents. Much obliged.