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 
Overall Header Problem
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
Overall Header Problem
PostPosted: 11/14/2007 5:39 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: 12:32 AM
blank.gif
I'm trying to add a WidgetBucks ad to my site in the header somewhere. The code for the Ad is:

Code:
<!-- START 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><!-- END CUSTOM WIDGETBUCKS CODE -->


And whenever I put it in my overall header file it spits this error at me:

Quote:
Parse error: syntax error, unexpected '}' in /www/quotaless.com/c/o/a/coasterreview/htdocs/Community/includes/templ ate.php(127) : eval()'d code on line 53


What should I do? I've tried inserting it in a few different places, but it dosn't work in any of the places.

The coding in my overall header is:

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>

      <br />


Thanks in advance for the help!
Back to Top
View user's profile Find all posts by lakeccrunner Send private message  
Re: Overall Header Problem
PostPosted: 11/15/2007 3:07 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: 9:32 AM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Can you please provide the complete overall_header.tpl file code by attaching it here so that I can download and re-upload the working one along with your widgetbuck code in it.
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Overall Header Problem
PostPosted: 11/15/2007 3:53 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: 12:32 AM
blank.gif
Actually, I figured it out. The problem was, that the tpl files don't like the "Start" and "End" parts of the code, so I had to eliminate them. Problem fixed.
Back to Top
View user's profile Find all posts by lakeccrunner Send private message  
Re: Overall Header Problem
PostPosted: 11/16/2007 3:41 AM 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: 9:32 AM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Okay. That's good to hear the problem is fixed.  Applause
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.158s (PHP: 82% - SQL: 18%) - SQL queries: 43 - GZIP enabled - Debug on