TinyPortal
Development => Support => Topic started by: blue-c on July 20, 2007, 07:39:14 PM
hi guys - what am I doing wrong,
whenever I put any of the code snippets into a block and save it, all that happens when viewed is that the code shows up over the top of the forum
e.g.
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi75.photobucket.com%2Falbums%2Fi285%2Fstephstar21%2Ftperror.jpg&hash=5e08c61a4f5752fda15a0ef8dfd19563e7faad1a)
guaranteed that i am missing something elementary and yes I have searched - any help would be much appreciated thanks
I think you are either putting the wrong type of code into the wrong type of block OR you are adding php opening and closing tags with in the code like this: <?php YOUR CODE ?> Do not add them.
cheers for the reply mate - no im not putting php tags in and i get the same results whether using scriptbox or html and bbc, maybe you could tell me what it should be - it is the "contact" script from on here
thanks
ok I have tried it as a phpbox and get this error
QuoteParse error: syntax error, unexpected '<' in /home/xxxxxx/public_html/smf/Sources/Load.php(1762) : eval()'d code(35) : eval()'d code on line 1
any ideas?
If you put it into a phpbox, you need to follow php syntax - meaning all html have to be "echo'ed" out:
not..
<b>hello</b>
but..
echo '<b>hello</b>';
ok mate, thanks, will give it a try :up: