News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Inserting and Displaying php codes in a portal

Started by PiGuy, March 09, 2010, 08:10:28 PM

Previous topic - Next topic

PiGuy

I'm currently trying to add a php code into a portal so that it shows up, however when i hit save and go to the location of the block there is nothing in it but a title.

Any chance you could help me?

(I've attached the file which i'm trying to display)

ptmuldoon

I'm new here to SMF as well, but have you tried using the full php tags throughout the file?  I see alot of the short tag being used.

I'm also unsure if the php block accepts the php tags at all, or if you should only being including the code only and no opening and closing tags.

PiGuy

When i do that it gives me this error:

Database error in block code. Please check the code.

Advertisement: