--- (Trip 2 Barbados for the Answer) ---

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.
Post Reply
drfredrick
New Member
New Member
Posts: 3
Joined: Thu Jun 05, 2008 9:16 am

--- (Trip 2 Barbados for the Answer) ---

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

Re: --- (Trip 2 Barbados for the Answer) ---

Post 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  ;)
User avatar
snafu
Forum Members
Forum Members
Posts: 29
Joined: Mon Oct 29, 2007 5:56 pm
Location: Kawartha Lakes, Ontario, Canada

Re: --- (Trip 2 Barbados for the Answer) ---

Post 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
"Catch a man a fish and he'll have fish for a day, teach a man to fish and he'll have fish for a lifetime"-Chinese Proverb
cyberman

Re: --- (Trip 2 Barbados for the Answer) ---

Post 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 8) ;D?
chiggeybean
Forum Members
Forum Members
Posts: 18
Joined: Tue Jan 29, 2008 11:29 pm

Re: --- (Trip 2 Barbados for the Answer) ---

Post 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.
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am
Location: USA

Re: --- (Trip 2 Barbados for the Answer) ---

Post 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!
Take a penny, leave a penny.
Post Reply

Return to “CMSMS Core”