Page 1 of 1

Center Your Logo (Banner)

PostPosted: Tue Jan 08, 2008 8:23 am
Author: defiantwisdom
I searched all over Integramod.com trying to find the best and easiest solution to centering my banner or logo, without having to disable the banners completely.

Finally, I started toying around with mine and came up with this solution that works great for me and may make it easier for you to do the same.

This is fairly simple to do and should only take a couple of minutes.
[hr:1kg9ti7w]

Open /templates/XXX/overall_header.tpl

FIND & DELETE

Code: Select all
<td>     </td>


FIND

Code: Select all
<td><a><img></a></td>


REPLACE WITH

Code: Select all
<td><a><img></a></td>

[hr]
The reason for the FIND and DELETE I think is fairly significant. I had noticed that when I went through the process of center my logo (Banner) it would remain left justified on my site. What you are deleting is a column used by the 'Overall Banner'.

I found this to be the reason my logo was not centering. Also, by adjusting your overall_header.tpl in this manner, it allows you to still utilize the banner functions. If in the future you do decide to place a banner in the 'Overall Banner' position, it will simply left justify your logo. For me, that works out perfectly.

You are still able to update your logo via the ACP/General Admin/Configuration and utilize the banners via the ACP/Styles Admin/Banner.

To date, I have found no ill-effects since I made these changes. I am sure that the Guru's of Integramod.com will correct me if I am wrong ... But, either way, this suits my needs and will hopefully make it easier for you to make changes to your site.

Cheers!

Re: Center Your Logo (Banner)

PostPosted: Tue Jan 08, 2008 11:30 am
Author: Helter
nice tip. Thats what I love about this community. Members get help, then they come back and give help. It is an ongoing tradition that sets us apart from many similar sites!

Re: Center Your Logo (Banner)

PostPosted: Wed Jan 16, 2008 5:52 pm
Author: Vadar
Just wanted you to know that this works great in 1.4.0 as well. Thanks for taking the time to come up with this and documenting it so well.

Re: Center Your Logo (Banner)

PostPosted: Thu Jan 17, 2008 10:22 am
Author: defiantwisdom
No problem ... With as much help and assistance as I have gotten on here, it never hurts to return the favor.

As a side note, I was making changes to my site and had to come back here and find my post just to remember how to do it again. Now that, is funny! <img>

Glad it worked for you ...

Cheers!

Re: Center Your Logo (Banner)

PostPosted: Thu Jan 17, 2008 12:04 pm
Author: HardHead
I wish this had been here a week ago..LOL Would have saved me a lot of time and hair pulling... Thanks for the tip <img>

Re: Center Your Logo (Banner)

PostPosted: Thu Apr 24, 2008 6:12 pm
Author: Levethix
I cant get this to work for me

I am trying to center my logo on my site : http://www.wasteddayz.com


Here is my overall_header.tpl file
Am I missing something here?

Code: Select all
<DOCTYPE><mod><if><script></script><endif><endif> <link><script></script>  <script></script><script></script><script></script>  <link><script></script><style><finews></style><BEGIN><script><if></script><END><Start><script> <var></script><End><BEGIN><script><window></script><END><script> <function> </script><script></script><Prillian><BEGIN><script><function></script><END><BEGIN><script>if ( {buddy_alert.BUDDY_ALERT} ){window.open('{buddy_alert.U_BUDDY_ALERT}', '_buddyalert', 'HEIGHT=225,resizable=yes,WIDTH=400');}</script><END><Prillian><script></script><script>_uacct = "UA-3080531-1";urchinTracker();</script></head><body><BEGIN>     <table>     <tr>     <td><span><b>{L_BOARD_DISABLE}</b></span></td>     </tr>    </table><END><Start><Banners><table><tr><td><table><BEGIN><tr><td><div>{BANNER_1_IMG}</div></td></tr><END><BEGIN><tr><td><div>{BANNER_2_IMG}</div></td></tr><END></table></td><td><table><BEGIN><tr><td><div>{BANNER_3_IMG}</div></td></tr><END><BEGIN><tr><td><div>{BANNER_4_IMG}</div></td></tr><END></table></td><td><table><BEGIN><tr><td><div>{BANNER_5_IMG}</div></td></tr><END><BEGIN><tr><td><div>{BANNER_6_IMG}</div></td></tr><END></table></td></tr></table><End><End>{QBARS}<a></a><table><tr><td><table><tr> <td><a><img></a></td><BEGIN><td><div>{BANNER_0_IMG}</div></td><END></tr></table><table><tr><td><a><div><img></div></td><td>{QMENUS}</td><td><a><div><img></div></td></tr></table>  <table><tr><td><img></td></td></tr></table>  <BEGIN><table>   <tr>     <td><span> {L_LW_EXPIRE_REMINDER}</span></td>   </tr></table><END>  <strong><font>{SITE_DESCRIPTION}</font></strong> {CALENDAR_BOX}<BEGIN><table><tr><td>{BANNER_16_IMG}</td></tr></table><END><table><BEGIN><tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr><END><BEGIN><tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr><END><BEGIN><tr><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr><END><tr> {PORTAL_HEADER}<td><img></td><td>  



Any and all help is greatly apprciatied
I have tried everything <img>

Re: Center Your Logo (Banner)

PostPosted: Tue Dec 16, 2008 8:35 pm
Author: bigdadrr
Wow, Thanks, I did the same thing, just started trying to change the code and couldn't figure out why it wasn't working. Thanks alot for posting, I wouldn't have figured that out!