Page 1 of 1

CMSMS 0.9.2 PHP files not working

Posted: Thu Mar 17, 2005 7:18 pm
by Glenn
I've just begun a new site with 0.9.2 and I'm trying to include php code the way it was done previously: {php}{/php} but it is not working!

here is the simple template:

Code: Select all

{php} echo "Hello world<p>";{/php}

{content} 
Here is the output:

---------------------
echo "Hello world

"; This is a test.
--------------------

It's simply spitting out whatever is between the brackets as text.

So then I try this:

Code: Select all

<?php echo "Hello world<p>"; ?>

{content} 
 

And I get this:
-------------------------
"; ?> This is a test.
-------------------------

Please, please, please help before I kill myself!!

Re: CMSMS 0.9.2 PHP files not working

Posted: Thu Mar 17, 2005 8:03 pm
by Glenn
OH HAPPY DAY! Thank you SO MUCH! Yes, it worked (as you can tell).

These help forums haven't disappointed me yet. Thank you!

Re: CMSMS 0.9.2 PHP files not working

Posted: Thu Mar 17, 2005 8:05 pm
by Ted
I recommend using User Defined Tags (http://wiki.cmsmadesimple.org/tiki-inde ... _ref_id=15) as it helps to keep the code separate from the content, but Pat's way works as well.  :)

Re: CMSMS 0.9.2 PHP files not working

Posted: Thu Mar 17, 2005 8:19 pm
by Glenn
Thanks Wishy. Actually I was just trying to use php to connect to include files. I could--and have--make custom plugins, but not quite as portable as doing my customizing with include files. I've created contextual navigation, contextual images and pageheads, all kinds of things, without hacking CMSMS at all.

Now I can't get tinyMCE to work! All the css tags are in the styles pulldown, but when i try to apply them it just bounces back to "-Styles-" without applying the change. Any ideas?