Page 1 of 1

Problem with Banner

PostPosted: Fri Jul 13, 2007 4:02 am
Author: Stevey1976
Hi All,

I'm having some problems with the banner on my site http://www.twitchythumbs.co.uk I want it to go across the screen fully from left to right, but it's stopping short of going all the way over to the right, can anyone help?

Thanks

Re: Problem with Banner

PostPosted: Fri Jul 13, 2007 2:54 pm
Author: .QUACK.Major.Pain
The right side is reserved for the Overall Banner.
I think it has to be removed to extend all the way over.
There are other posts here about it. I'll see if I can find some.

Re: Problem with Banner

PostPosted: Fri Jul 13, 2007 3:00 pm
Author: .QUACK.Major.Pain
http://www.integramod.com/forum/viewtop ... ght=banner

Zenrei has figured it out, maybe PM him for help.

I think you open root/templates/your template/overall_header.tpl

And remove this:

<BEGIN>
<td><div>{BANNER_0_IMG}</div></td>
<END>

Somewhere before this, you would need to align='center'
Not sure where exactly, but I think it would go before the <table

If I get time later I can play around, but may be faster to ask Zenrei since he's done it already.

PostPosted: Sat Jul 14, 2007 12:32 am
Author: Stevey1976
I'll give this a try and let you know how it goes, as ever thanks very much for the replies.

Steve

Re: Problem with Banner

PostPosted: Sat Jul 14, 2007 6:49 am
Author: .QUACK.Major.Pain
<BEGIN>
<td><div>{BANNER_0_IMG}</div></td>
<END>
<td> </td>

Actually the last line would have to go too.
Helter mentioned to me that it adds extra spaces of the right side and wouldn't allow your banner to go all the way across.

PostPosted: Sun Jul 15, 2007 10:35 am
Author: Stevey1976
Dear .=QUACK=.Major.Pain

Thanks for the advice it worked perfectly, check out the site now at http://www.twitchythumbs.co.uk and there is a perfect banner from left to right, looks awesome - please pass my thanks along to Helter as well.

All the best,



Steve

Re: Problem with Banner

PostPosted: Sun Jul 15, 2007 10:44 am
Author: Helter
the banner your using will not stretch with the forum so your choice is to center it

in your overall_header.tpl, find this table

Code: Select all
<table><tr> <td><a><img></a></td><BEGIN><td><div>{BANNER_0_IMG}</div></td><END><td><img></td></tr></table>


replace with

Code: Select all
<table><tr> <td><a><img></a></td><BEGIN><td><div>{BANNER_0_IMG}</div></td><td><img></td><END></tr></table>


notice, ive moved the spacer <td> inside the banner_0 switch, so when your not using the banner it will not be displayed. This will give you what you want without removing code in case you decide later that you want to use the banner. I have also centered the logo <td> so as the forum stretches the logo will remain in the center

PostPosted: Sun Jul 15, 2007 12:33 pm
Author: Stevey1976
Hi Helter,

You must be a mind reader! After I'd made the changes and then went in to the forum I noticed that the banner was positioned as it was originally on the homepage, e.g not going all the way from left to right. I've made the required changes as above, however my table class had a value of "header" rather than "topbkg", I've kept it as "header" will this be okay?

Also going back to the homepage the banner is perfect from left to right it fills the entire page as I believe it should, however going in to the forum there is a tiny amount of space on each side, would I be correct in saying this is where the center command comes in to effect? Just out of interest is it possible to have the banner going the full width from left to right in the forum as per the homepage?

Many thanks,



Steve

Re: Problem with Banner

PostPosted: Sun Jul 15, 2007 1:27 pm
Author: Helter
only if you give your site a static width...ie 900px instead of 100%

find

Code: Select all
<table><tr><td><table>



replace with

Code: Select all
<table><tr><td><table>  


open dark/viewtopic_body.tpl

find

Code: Select all
no_thread_stretch({BLOCK_WIDTH}+240);


replace with

Code: Select all
no_thread_stretch({BLOCK_WIDTH}+10%);


in the acp/general admin/configuration section, set your banner size to 900x 169

Re: Problem with Banner

PostPosted: Sun Jul 15, 2007 2:55 pm
Author: Stevey1976
"HelterSkelter";p="27318" wrote:the banner your using will not stretch with the forum so your choice is to center it

in your overall_header.tpl, find this table

Code: Select all
<table><tr> <td><a><img></a></td><BEGIN><td><div>{BANNER_0_IMG}</div></td><END><td><img></td></tr></table>


replace with

Code: Select all
<table><tr> <td><a><img></a></td><BEGIN><td><div>{BANNER_0_IMG}</div></td><td><img></td><END></tr></table>


notice, ive moved the spacer <td> inside the banner_0 switch, so when your not using the banner it will not be displayed. This will give you what you want without removing code in case you decide later that you want to use the banner. I have also centered the logo <td> so as the forum stretches the logo will remain in the center


Hi HelterSkelter,

I tried what you suggested in your last post, but the overall result seemed to shrink in the homepage and when I went to the forum the banner although centered had large borders on either side, not sure if I did something wrong, but I think I'm going to stick to the suggestion you gave me above, this has only got very small border on either side of the banner when I'm viewing a message in any Forum and gives me a full banner from left to right on the homepage.

Many thanks for your time and kind assistance.




Steve

Re: Problem with Banner

PostPosted: Sun Jul 15, 2007 3:55 pm
Author: .QUACK.Major.Pain
Ahhh - see I knew Helter knew better than I did. LOL

My suggestions are just my best guess.

Re: Problem with Banner

PostPosted: Mon Jul 16, 2007 1:07 pm
Author: Stevey1976
Very strange,

I'm using IE7 as my browser here and the banner looks fine, but on IE6 and on Mozilla Firefox it's completely different in appearance, IE6 shows it with borders on both sides and Mozilla Firefox has some bizarre orange box putting in an appearance on the left hand corner, I only noticed the difference through visiting the site at work in my break where we're still behind the times with IE6, but a bit more up to date with Mozilla Firefox latest version.

I'll try and add the screens from IE6 and Mozilla tomorrow while at work, but in the meantime any ideas?

Thanks,



Steve

Re: Problem with Banner

PostPosted: Mon Jul 16, 2007 1:09 pm
Author: Stevey1976
Very strange,

I'm using IE7 as my browser here and the banner looks fine, but on IE6 and on Mozilla Firefox it's completely different in appearance, IE6 shows it with borders on both sides and Mozilla Firefox has some bizarre orange box putting in an appearance on the left hand corner, I only noticed the difference through visiting the site at work in my break where we're still behind the times with IE6, but a bit more up to date with Mozilla Firefox latest version.

I'll try and add the screens from IE6 and Mozilla tomorrow while at work, but in the meantime any ideas?

Thanks,



Steve

Re: Problem with Banner

PostPosted: Wed Jul 18, 2007 9:03 am
Author: Stevey1976
As discussed in my last post please find attached screenshots which show how banner is viewed in IE6 and Mozilla Firefox Version 2.0.0.5

Any suggestions are appreciated.

Thanks,



Steve