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

Support for the IM Portal Project

Moderator: Integra Moderator

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

PostAuthor: MWE_001 » Thu May 10, 2007 4:26 pm

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]
Last edited by MWE_001 on Thu May 17, 2007 3:19 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

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

PostAuthor: found it » Thu May 10, 2007 11:58 pm

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

:mrgreen:
Last edited by found it on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http]themes.[/url]
http://www.founditforum.com :: [url=http]Joining people together[/url]

[url=http][img=left]http://www.bbful.com/bbful_banner2.png[/img][/url]
User avatar
found it
Dev Team
Dev Team
 
Posts: 792
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:29 am
Cash on hand: 0.00

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

PostAuthor: Frost » Fri May 11, 2007 12:58 am

Yea, a link to the actual page would help here <img>
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

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

PostAuthor: MWE_001 » Sun May 13, 2007 8:53 pm

Well, its quite a few pages actually, I just gave that pic as a broad example. :wink:
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

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

PostAuthor: Frost » Sun May 13, 2007 9:47 pm

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
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

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

PostAuthor: MWE_001 » Mon May 14, 2007 12:40 am

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. :roll:
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

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

PostAuthor: Frost » Mon May 14, 2007 1:25 am

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
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

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

PostAuthor: MWE_001 » Mon May 14, 2007 1:26 pm

MWE_001, just hang your head and quiety say DOH! :D 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 :roll: Thx for looking into this and your patience with me. My eggs are aall scrambled the past few days. <img>

Ray
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

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

PostAuthor: Frost » Mon May 14, 2007 8:36 pm

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>
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

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

PostAuthor: MWE_001 » Tue May 15, 2007 5:38 pm

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.
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

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

PostAuthor: Frost » Tue May 15, 2007 8:20 pm

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>
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

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

PostAuthor: MWE_001 » Wed May 16, 2007 3:28 pm

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
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

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

PostAuthor: nGAGE » Wed May 16, 2007 10:14 pm

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 ;)
Last edited by nGAGE on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://www.net-clan-gaming.eu/ftp/ngage/images/nEt_v3_sig.png[/img][/url]
User avatar
nGAGE
Sr Integra Member
Sr Integra Member
 
Posts: 248
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 6:28 am
Cash on hand: 0.00

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

PostAuthor: Frost » Wed May 16, 2007 10:28 pm

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?
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

PostAuthor: nGAGE » Wed May 16, 2007 11:07 pm

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>
Last edited by nGAGE on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://www.net-clan-gaming.eu/ftp/ngage/images/nEt_v3_sig.png[/img][/url]
User avatar
nGAGE
Sr Integra Member
Sr Integra Member
 
Posts: 248
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 6:28 am
Cash on hand: 0.00

Next

Return to IM Portal Support Forum

Who is online

Registered users: Majestic-12 [Bot]