TinyPortal

Development => Resources => Topic started by: cas91572 on September 22, 2007, 07:15:54 PM

Title: Problem with blocks
Post by: cas91572 on September 22, 2007, 07:15:54 PM
Whenever I try to add a php block to my site I get this error:

QuoteParse error: parse error, unexpected '<' in /home/content/c/a/s/cas91572/html/Sources/Load.php(1735) : eval()'d code(36) : eval()'d code on line 1

Anyone know what's causing this and how I can fix it?
Title: Re: Problem with blocks
Post by: JPDeni on September 22, 2007, 08:09:58 PM
It's likely that you've started your code with

<?php

and ended it with

?>

If so, remove those and it should work.

If you don't have those, please post your code.
Title: Re: Problem with blocks
Post by: cas91572 on September 23, 2007, 05:10:32 AM
I'm trying to put this code in a PHP Block for ventrilo

Quoteinlcude ('ventrilo/ventrilotest.php');

It's IchBin's code but in a different thread he said he couldn't figure out what the problem was.

Also I tried to use this code in a PHP block for a media player I got it in the block code snippets forum

Quote<script src="http://www.sourcetunes.com/music/player/site_player.js"></script>


And got the exact same error.
Title: Re: Problem with blocks
Post by: IchBin on September 23, 2007, 05:45:30 AM
The word include is spelled wrong cas91572.
Title: Re: Problem with blocks
Post by: JPDeni on September 23, 2007, 06:08:40 AM
In addition to what IchBinâ,,¢ wrote, your


<script src="http://www.sourcetunes.com/music/player/site_player.js"></script>


needs to be in a javascript block, not a php block.
Title: Re: Problem with blocks
Post by: cas91572 on September 25, 2007, 07:38:55 AM
I fixed it..one was Javascript and the other was Ichbin's code I copied from another thread and HE had include spelled wrong!