CMSMS 0.9.2 PHP files not working

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
Glenn

CMSMS 0.9.2 PHP files not working

Post 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!!
Glenn

Re: CMSMS 0.9.2 PHP files not working

Post 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!
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: CMSMS 0.9.2 PHP files not working

Post 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.  :)
Glenn

Re: CMSMS 0.9.2 PHP files not working

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

Return to “CMSMS Core”