[SOLVED] PHP code inside

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Ric

[SOLVED] PHP code inside

Post 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
Last edited by Ric on Tue Aug 07, 2007 12:24 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: PHP code inside

Post 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
cyberman

Re: PHP code inside

Post 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 ...
Ric

Re: PHP code inside

Post 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
Locked

Return to “CMSMS Core”