Page 1 of 1

[SOLVED] PHP code inside

Posted: Tue Aug 07, 2007 9:38 am
by Ric
Hi,

Perhaps someone can help me ...
I want to embed php code on a page.

When I edit this page with the WYSIWYG-editor, I can not insert PHP code (obviously).
If I use the {embed url="http://whatever.com"} tag .. it works .. but with a fixed height .. and I'm unable to change it.

Is there a way to insert PHP code within a page?
This PHP code only has to appear on 1 page ... so not on all pages.

Thanx in advance.

Gr. Rik

Re: PHP code inside

Posted: Tue Aug 07, 2007 9:47 am
by RonnyK
Ric,

embed, embeds the called URL inside an iframe, that has a default height/width. You can give a bigger height by using the CSS. I think the help of {embed} already states how to increase the height. If you're embedding external pages (outside) the domain, the height can't be dynamically retrieved, so you have to give height yourself.

Ronny

Re: PHP code inside

Posted: Tue Aug 07, 2007 9:49 am
by cyberman
Have you tried to use a user defined tag (admin panel, extensions > user defined tag)?

You can put there your source and call it via {name_of_userdefined_tag} inside WYSIWYG editor ...

Re: PHP code inside

Posted: Tue Aug 07, 2007 9:52 am
by Ric
Thanx for the quick .. very quick replies.  :)
I'm going to check these options. If I understand how to do it .. I'll change the subject to [SOLVED]

Greetz, Rik