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 ("&what=zone:1&target=_blank");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&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&n=a1dbc885' border='0' alt=''></a></noscript></center>
Thanks,
Tyler
index.template.php
Find
echo '
</td></tr></table>
</div>
Add it right after that.
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.
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 ("&what=zone:1&target=_blank");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&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&n=a1dbc885" border="0" alt=""></a></noscript></center>
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 ("&what=zone:1&target=_blank");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&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&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;" />
<input type="submit" name="submit" value="', $txt[182], '" style="width: 8ex;" />
<a href="', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a>
<input type="hidden"
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
Can you post line 246 and a few lines above and below it?
document.write ("<" + \'script language="JavaScript" type="text/javascript" src="\');
document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:1&target=_blank");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&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&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;" />
<input type="submit" name="submit" value="', $txt[182], '" style="width: 8ex;" />
<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 ;).
Get rid of the ' after the ( on line 246
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&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;" />
<input type="submit" name="submit" value="', $txt[182], '" style="width: 8ex;" />
<a href="', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a>
<input type="hidden" name="advanced" value="0" />';
can anyone help,Thanks :D