TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 17, 2024, 01:00:44 PM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 59
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 40
  • Total: 41
  • @rjen

Problem with blocks

Started by cas91572, September 22, 2007, 07:15:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cas91572

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?

JPDeni

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.

cas91572

#2
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.

IchBin

The word include is spelled wrong cas91572.

JPDeni

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.

cas91572

I fixed it..one was Javascript and the other was Ichbin's code I copied from another thread and HE had include spelled wrong!