Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
Contact the Webmasters of RCFContact   Invite a friend to Join usRecommend   Chat in IRCChat   EZ Template Change OptionEZStyle   Listen to Internet Radio while you browse...iRadio   See your private message.Login for PMs   Important LinksLinks
Member Website LinksWeb Links   Play/View our GamesGames   Register.Register
calendar_open_closeCalendar 
Centering Ads?
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Centering Ads?
PostPosted: 11/15/2007 6:37 PM Reply with quote
Dove
lakeccrunner
Dove
Posts 76
Word Cnt. 5,619
BDay N/A
Sign N/A
Joined: Mar 17, 2007
Local time: 5:54 PM
blank.gif
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>&nbsp; &nbsp;<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>&nbsp; &nbsp;<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>&nbsp; &nbsp;<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>&nbsp;
<!-- BEGIN switch_user_logged_out -->
&nbsp;<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>&nbsp;
<!-- END switch_user_logged_out -->
&nbsp;<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>&nbsp; &nbsp;<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>&nbsp; &nbsp;<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>&nbsp;</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>&copy;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} &copy; 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
View user's profile Find all posts by lakeccrunner Send private message  
Re: Centering Ads?
PostPosted: 11/17/2007 1:02 PM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 2:54 AM
Location: UNITED ARAB EMIRATES
unitedACa.gif
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>&nbsp; &nbsp;<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>&nbsp; &nbsp;<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>&nbsp; &nbsp;<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>&nbsp;
<!-- BEGIN switch_user_logged_out -->
&nbsp;<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>&nbsp;
<!-- END switch_user_logged_out -->
&nbsp;<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>&nbsp; &nbsp;<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>&nbsp; &nbsp;<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>&nbsp;</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
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group
  ImageShack  
  Putfile  
  TinyURL  
  CommonDreams  
  Log in  

Page generation time: 0.1704s (PHP: 89% - SQL: 11%) - SQL queries: 37 - GZIP enabled - Debug on