1
federico07
Add a new block: problem with php
  • 2007/6/1 23:16

  • federico07

  • Just popping in

  • Posts: 5

  • Since: 2007/6/1 2


I am trying to add/create a new block.
I have a problem with 'Content Type'. I have selected 'PHP script' option, but 'Content' is not being displayed in the new block.
I have tried different ways to wrap the code. Below the examples:

1)
<?
print "hello world!";
?>

2)
<?php
print "hello world!";
?>

3)
[php]print "hello world!";[/php]

4)
print "hello world!";

But nothing happen. Please could anybody suggest me the right way to place php code in the 'Content' of the block?

Thanks

2
stefan88
Re: Add a new block: problem with php
  • 2007/6/2 4:46

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


You should use the php code whitout any open/close tags - print "hello ...";

In 4 do you use [code] tags or someting ...?

..

3
federico07
Re: Add a new block: problem with php
  • 2007/6/2 15:07

  • federico07

  • Just popping in

  • Posts: 5

  • Since: 2007/6/1 2


Thanks stefan88. Now it works ok.

Yes, in 4) I did wrap the code into the 'code tag' of this quick menu

Login

Who's Online

131 user(s) are online (71 user(s) are browsing Support Forums)


Members: 0


Guests: 131


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits