TinyPortal

Development => Support => Topic started by: lAJl on February 16, 2008, 09:29:17 PM

Title: cant insert php..
Post by: lAJl on February 16, 2008, 09:29:17 PM
ok when i insert php into the phpbox it shows up as this on the block on the front page..

Parse error: syntax error, unexpected '<' in /home/vkcommun/public_html/SMF/Sources/Load.php(1735) : eval()'d code(35) : eval()'d code on line 1
Title: Re: cant insert php..
Post by: JPDeni on February 16, 2008, 09:50:24 PM
Don't start your php with

<?php

or end it with

?>
Title: Re: cant insert php..
Post by: lAJl on February 16, 2008, 11:58:04 PM
its not this is what i put in there

<script language="javascript" type="text/javascript">
   var vspy_width=200;
   var vspy_height=500;
   var vspy_style="custom_html";
   var vspy_server="voice.gameservers.com:4276";
   var vspy_background="333333";
   var vspy_fontcolor="000000";
   var vspy_linkcolor="0000FF";
</script>
<script language="javascript" type="text/javascript" src="http://ventrilo-monitor.com/js/show_ventrilo.js"></script>
Title: Re: cant insert php..
Post by: JPDeni on February 17, 2008, 12:11:50 AM
Ah. The code you have is not php. It's javascript. It goes in a scriptbox.
Title: Re: cant insert php..
Post by: lAJl on February 17, 2008, 01:07:11 AM
wow lol IM a newb... thx JPDeni O0
Title: Re: cant insert php..
Post by: JPDeni on February 17, 2008, 02:37:32 AM
no problem. :)