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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,021
  • Total Topics: 21,332
  • Online today: 582
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 305
  • Total: 305

code displaying on forum

Started by blue-c, July 20, 2007, 07:39:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

blue-c

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.



guaranteed that i am missing something elementary and yes I have searched - any help would be much appreciated thanks

Skhilled

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.

blue-c

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

blue-c

#3
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?

bloc

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>';

blue-c

ok mate, thanks, will give it a try :up:

This website is proudly hosted on Crocweb Cloud Website Hosting.