Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

I blues theme help

Aloittaja tylerd213, helmikuu 28, 2005, 04:58:23 IP

« edellinen - seuraava »

tylerd213

How do i putt a add right under the info box  (just above the search box) Im not good with html so i dont know where to put it  :(  I would really appreciate the help ;)

Here is the code i need to add

<center><script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></script>

<script language='JavaScript' type='text/javascript'>
<!--
    if (!document.phpAds_used) document.phpAds_used = ',';
    phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
    document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
    document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random);
    document.write ("&amp;what=zone:1&amp;target=_blank");
    document.write ("&amp;exclude=" + document.phpAds_used);
    if (document.referrer)
       document.write ("&amp;referer=" + escape(document.referrer));
    document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a1dbc885'; target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:1&amp;n=a1dbc885'; border='0' alt=''></a></noscript></center>

Thanks,

Tyler

Oldiesmann

index.template.php

Find
echo '
</td></tr></table>
</div>

Add it right after that.
Michael Eshom
Christian Metal Fans

tylerd213

when i do that then try to access the forum it says:

Template Parse Error!
There was a problem loading the /Themes/iblue/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Oldiesmann

Ok... Didn't see all those ticks (the "techy term" for a single quote mark) in the JavaScript... hang on...

Try this code instead:

<center><script language="JavaScript" type="text/javascript" src="http://x10hosting.com/advert/adx.js"></script>

<script language="JavaScript" type="text/javascript">
<!--
    if (!document.phpAds_used) document.phpAds_used = ",";
    phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
    document.write ("<" + \'script language="JavaScript" type="text/javascript" src="\');
    document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random);
    document.write ("&amp;what=zone:1&amp;target=_blank");
    document.write ("&amp;exclude=" + document.phpAds_used);
    if (document.referrer)
       document.write ("&amp;referer=" + escape(document.referrer));
    document.write ("'><" + "/script>");
//-->
</script><noscript><a href="http://x10hosting.com/advert/adclick.php?n=a1dbc885" target="_blank"><img src="http://x10hosting.com/advert/adview.php?what=zone:1&amp;n=a1dbc885" border="0" alt=""></a></noscript></center>
Michael Eshom
Christian Metal Fans

tylerd213

#4
Still not working do here is the code closest to it to see if im doing it right Thanks for ur help


   echo '
                  </td></tr></table>
               </div><center><script language="JavaScript" type="text/javascript" src="http://x10hosting.com/advert/adx.js"></script>

<script language="JavaScript" type="text/javascript">
<!--
    if (!document.phpAds_used) document.phpAds_used = ",";
    phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
    document.write ("<" + \'script language="JavaScript" type="text/javascript" src="\');
    document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random);
    document.write ("&amp;what=zone:1&amp;target=_blank");
    document.write ("&amp;exclude=" + document.phpAds_used);
    if (document.referrer)
       document.write ("&amp;referer=" + escape(document.referrer));
    document.write ("'><" + "/script>");
//-->
</script><noscript><a href="http://x10hosting.com/advert/adclick.php?n=a1dbc885" target="_blank"><img src="http://x10hosting.com/advert/adview.php?what=zone:1&amp;n=a1dbc885" border="0" alt=""></a></noscript></center>


               <form action="', $scripturl, '?action=search2" method="post" style="margin: 0; margin-top: 7px;">
                  <b>', $txt[182], ': </b><input type="text" name="search" value="" style="width: 190px;" />&nbsp;
                  <input type="submit" name="submit" value="', $txt[182], '" style="width: 8ex;" />&nbsp;
                  <a href="', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a>
                  <input type="hidden"

tylerd213

also when i click on Access this file directly it says :

Parse error: parse error, unexpected '<' in /home/ts2e/public_html/smf/Themes/iblue/index.template.php on line 246

Oldiesmann

Can you post line 246 and a few lines above and below it?
Michael Eshom
Christian Metal Fans

tylerd213

#7
  document.write ("<" + \'script language="JavaScript" type="text/javascript" src="\');
    document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random);
    document.write ("&amp;what=zone:1&amp;target=_blank");
    document.write ("&amp;exclude=" + document.phpAds_used);
    if (document.referrer)
       document.write ("&amp;referer=" + escape(document.referrer));
    document.write ("'><" + "/script>");   --LINE 246--
//-->
</script><noscript><a href="http://x10hosting.com/advert/adclick.php?n=a1dbc885" target="_blank"><img src="http://x10hosting.com/advert/adview.php?what=zone:1&amp;n=a1dbc885" border="0" alt=""></a></noscript></center>


               <form action="', $scripturl, '?action=search2" method="post" style="margin: 0; margin-top: 7px;">
                  <b>', $txt[182], ': </b><input type="text" name="search" value="" style="width: 190px;" />&nbsp;
                  <input type="submit" name="submit" value="', $txt[182], '" style="width: 8ex;" />&nbsp;
                  <a href="', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a>
                  <input type="hidden" name="advanced" value="0" />';

   // If we're on a certain board, limit it to this board ;).

Oldiesmann

Get rid of the ' after the ( on line 246
Michael Eshom
Christian Metal Fans

tylerd213

#9
Ok got the ad working :) but the rest of the forum is not showing up :'( here is the site http://ts2e.x10hosting.com/smf

Here is the code  from the very end of the add to where the forum should start is there anything wrong with it?

</script><noscript><a href="http://x10hosting.com/advert/adclick.php?n=a1dbc885" target="_blank"><img src="http://x10hosting.com/advert/adview.php?what=zone:1&amp;n=a1dbc885" border="0" alt=""></a></noscript></center>  END ADD CODE

<form action="', $scripturl, '?action=search2" method="post" style="margin: 0; margin-top: 7px;">
                  <b>', $txt[182], ': </b><input type="text" name="search" value="" style="width: 190px;" />&nbsp;
                  <input type="submit" name="submit" value="', $txt[182], '" style="width: 8ex;" />&nbsp;
                  <a href="', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a>
                  <input type="hidden" name="advanced" value="0" />';

tylerd213


Advertisement: