Page 1 of 1
--- (Trip 2 Barbados for the Answer) ---
Posted: Mon Jun 09, 2008 2:48 pm
by drfredrick
Hi,
I have downloaded, installed and started to deploy my CMS Made Simple!!
I must say very good, clean and easy to use!!
However I have struggling to find where I can insert
Simple PHP code..
If I try to do this in the TNY Editor it replaces these with
<?
?>
I NEED HELP...
Trip to Barbados for the person whom can inform me what to do!!
I am lost (This must be simple...)
Where do you insert native PHP code in the CMS Made Simple Editor!!!
Re: --- (Trip 2 Barbados for the Answer) ---
Posted: Mon Jun 09, 2008 3:14 pm
by JeremyBASS
so what about the other trip... are you going to just keep giving trips away here.... why not just pay someone to do it and be done with it? It'd be cheaperĀ

Re: --- (Trip 2 Barbados for the Answer) ---
Posted: Mon Jun 09, 2008 3:26 pm
by snafu
Code can be injected in to a page by making sure "Turn WYSIWYG on/off" is unchecked.
You may also wish to consider creating User Defined Tags, per this
User Handbook/Admin Panel/Extensions/User Defined Tags
Re: --- (Trip 2 Barbados for the Answer) ---
Posted: Tue Jun 10, 2008 6:26 am
by cyberman
Please dont cry too loud.
And it's a lot easier (and safer) to use userdefined tags (Admin panel, Extensions > Userdefined Tags)
http://wiki.cmsmadesimple.org/index.php ... fined_Tags
There are some informations how to use it.
When can I get my trip

?
Re: --- (Trip 2 Barbados for the Answer) ---
Posted: Thu Jun 19, 2008 3:11 pm
by chiggeybean
If I understand your question correctly, then all you need to do it replace with {php}...{/php}
I find some problems with some quotes throwing errors, but I get around them by putting all of my php in includes an referring to those includes in the code above.
Good luck.
Re: --- (Trip 2 Barbados for the Answer) ---
Posted: Thu Jun 19, 2008 3:14 pm
by Ziggywigged
You also have to set this to true in your config.php file:
Code: Select all
$config['use_smarty_php_tags'] = true;
Barbados, here I come! WooHooo!