| Centering Ads? | |
Posted: 11/15/2007 6:37 PM |
|
|
|
|
Dove |
Posts |
76 |
Word Cnt. |
5,619 |
BDay |
N/A |
Sign |
N/A |
|
|
|
|
|
Joined: Mar 17, 2007
Local time: 6:35 AM
|
|
|
|
|
|
I have successfully put the Widgetbucks ads on my site, both at the top and the bottom. Howver, I would like to have them centered, but they will not center!
The coding for my overall header looks like:
Code:
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/chunkstyle/{T_HEAD_STYLESHEET}" type="text/css">
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<!-- END switch_enable_pm_popup -->
</head>
<body>
<a name="top"></a>
<table class="tableoverall" cellspacing="0" cellpadding="5" border="0" align="center">
<tr>
<td><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="2" class="forumborder" style="height:117px;"><a href="{U_INDEX}"><img src="templates/chunkstyle/imagesnew/bannerlogo.jpg" border="0" alt="{SITENAME}
{SITE_DESCRIPTION}" /></a></td>
</tr>
<tr>
<td onClick="window.location='{U_INDEX}'" style="cursor:hand;border-right:0px;" class="titleoverallheader">
{SITENAME}
</td>
<td onClick="window.location='{U_INDEX}'" style="cursor:hand;border-left:0px;text-align:right;" class="titleoverallheader">
{SITE_DESCRIPTION}
</td>
<tr>
<td colspan="2" class="titlebottom"><a href="{U_FAQ}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_faq.gif" width="14" height="14" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a> <a href="{U_SEARCH}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_search.gif" width="14" height="14" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a> <a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_memberlist.gif" width="14" height="14" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a> <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_usergroups.gif" width="14" height="14" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>
<!-- BEGIN switch_user_logged_out -->
<a href="{U_REGISTER}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_register.gif" width="14" height="14" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a>
<!-- END switch_user_logged_out -->
<a href="{U_PROFILE}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_profile.gif" width="14" height="14" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a> <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_pmold.gif" width="14" height="14" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a> <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_loginoff.gif" width="14" height="14" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a> </td>
</tr>
</table>
<table style="text-align: left; width: 470px;" border="0"
cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td align="center">
[b]<!-- custom widgetbucks code --><script src="http://images.widgetbucks.com/script/widgetMagic.js" type="text/javascript"></script><div id="container_PCphniJwcz6Wm8pH" class="wbtw468x60">WidgetBucks - Trend Watch - WidgetBucks.com</div><script type="text/javascript">writeWBStyles("images.widgetbucks.com");setTime out(function(){var day = "" + new Date().getMonth() + new Date().getDate() + new Date().getYear();var widget = new mpireWidget("http://images.widgetbucks.com/widgets/wbtw468x60.swf?uid= PCphniJwcz6Wm8pH&apiURL=http://www.widgetbucks.com&day="+day,"PCphniJw cz6Wm8pH");widget.write("container_PCphniJwcz6Wm8pH");},Math.floor((Ma th.random() * 150) - (-(Math.random() * 150))) - (-200))</script><!-- custom widgetbucks code -->[/b]</td>
</tr>
</tbody>
</table>
<br />
|
And the code for the Overall Footer is:
Code:
|
<div align="center"><span class="copyright"><br />{ADMIN_LINK}<br />
Template/Skin (ChunkStyle) by <b>©Russellc</b> (TheChunk.no-ip.com)<br />Best viewed in Mozilla Firefox 0.8 <br />
<!--
We request you retain the full copyright notice below including the link to www.phpbb.com.
This not only gives respect to the large amount of time given freely by the developers
but also helps build interest, traffic and use of phpBB 2.0. If you cannot (for good
reason) retain the full copyright we request you at least leave in place the
Powered by phpBB {PHPBB_VERSION} line, with phpBB linked to www.phpbb.com. If you refuse
to include even this then support on our forums may be affected.
The phpBB Group : 2002
// -->
Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> {PHPBB_VERSION} © 2001, 2002 phpBB Group<br />{TRANSLATION_INFO}</span></div>
[b]<!-- custom widgetbucks code --></div>
<script
src="http://images.widgetbucks.com/script/widgetMagic.js"
type="text/javascript"></script>
<div id="container_t5YpNbObnYV0BSDS" class="wbtw728x90">WidgetBucks
- Trend Watch - WidgetBucks.com</div>
<script type="text/javascript">writeWBStyles("images.widgetbucks.com");setTime out(function(){var day = "" + new Date().getMonth() + new Date().getDate() + new Date().getYear();var widget = new mpireWidget("http://images.widgetbucks.com/widgets/wbtw728x90.swf?uid= t5YpNbObnYV0BSDS&apiURL=http://www.widgetbucks.com&day="+day,"t5YpNbOb nYV0BSDS");widget.write("container_t5YpNbObnYV0BSDS");},Math.floor((Ma th.random() * 150) - (-(Math.random() * 150))) - (-200))</script>
<div style="text-align: center; div-align: center;"><!-- custom widgetbucks code --></div>[/b]
</td>
</tr>
</table>
</body>
</html>
|
The bolded text is that of the code for the ads |
|
|
|
|
Back to Top |
|
|
| Re: Centering Ads? | |
Posted: 11/17/2007 1:02 PM |
|
|
|
|
Citation |
Posts |
1017 |
Word Cnt. |
64,643 |
BDay |
Apr 18 |
Sign |
Aries |
Sex |
|
|
|
|
Joined: Apr 01, 2007
Local time: 3:35 PM
Location: UNITED ARAB EMIRATES
|
|
|
|
|
|
Try this code in your overall_header.tpl
Code:
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/chunkstyle/{T_HEAD_STYLESHEET}" type="text/css">
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<!-- END switch_enable_pm_popup -->
</head>
<body>
<a name="top"></a>
<table class="tableoverall" cellspacing="0" cellpadding="5" border="0" align="center">
<tr>
<td><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="2" class="forumborder" style="height:117px;"><a href="{U_INDEX}"><img src="templates/chunkstyle/imagesnew/bannerlogo.jpg" border="0" alt="{SITENAME}
{SITE_DESCRIPTION}" /></a></td>
</tr>
<tr>
<td onClick="window.location='{U_INDEX}'" style="cursor:hand;border-right:0px;" class="titleoverallheader">
{SITENAME}
</td>
<td onClick="window.location='{U_INDEX}'" style="cursor:hand;border-left:0px;text-align:right;" class="titleoverallheader">
{SITE_DESCRIPTION}
</td>
<tr>
<td colspan="2" class="titlebottom"><a href="{U_FAQ}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_faq.gif" width="14" height="14" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a> <a href="{U_SEARCH}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_search.gif" width="14" height="14" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a> <a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_memberlist.gif" width="14" height="14" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a> <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_usergroups.gif" width="14" height="14" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>
<!-- BEGIN switch_user_logged_out -->
<a href="{U_REGISTER}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_register.gif" width="14" height="14" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a>
<!-- END switch_user_logged_out -->
<a href="{U_PROFILE}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_profile.gif" width="14" height="14" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a> <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_pmold.gif" width="14" height="14" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a> <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_loginoff.gif" width="14" height="14" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a> </td>
</tr>
</table>
<table style="text-align: left; width: 1230px;" border="0"
cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td align="center">
[b]<!-- custom widgetbucks code --><script src="http://images.widgetbucks.com/script/widgetMagic.js" type="text/javascript"></script><div id="container_PCphniJwcz6Wm8pH" class="wbtw468x60">WidgetBucks - Trend Watch - WidgetBucks.com</div><script type="text/javascript">writeWBStyles("images.widgetbucks.com");setTime out(function(){var day = "" + new Date().getMonth() + new Date().getDate() + new Date().getYear();var widget = new mpireWidget("http://images.widgetbucks.com/widgets/wbtw468x60.swf?uid= PCphniJwcz6Wm8pH&apiURL=http://www.widgetbucks.com&day="+day,"PCphniJw cz6Wm8pH");widget.write("container_PCphniJwcz6Wm8pH");},Math.floor((Ma th.random() * 150) - (-(Math.random() * 150))) - (-200))</script><!-- custom widgetbucks code -->[/b]</td>
</tr>
</tbody>
</table>
<br />
|
|
|
|
|
|
Back to Top |
|
|
|
| Information | |
|