Page 1 of 1
php code inside the pages
Posted: Sat Dec 31, 2005 2:17 pm
by bkiss
Hi,
First , Happy New year for everyone!
I am a ne user, so maybe it's not so complicated, and somebody will help me.
The problem is : i want to integrate in the pages some php code.
With the main editor i cannot

...
I want to try with " " for example.
If you have suggestions, or solution please let me know,
Thank you,
Kiss Barni
Marosavasarhely,
Transylvania,
Romania
Re: php code inside the pages
Posted: Sat Dec 31, 2005 2:49 pm
by westis
Hi bkiss & welcome to CMS Made Simple!
You can use a user-defined tag. Put the php code there, but leave out the opening . Then put the tag in your template or page like {nameofuserdefinedtag}. User-defined tags are found in Extensions -> User-defined tags.
Re: php code inside the pages
Posted: Sun Jan 01, 2006 8:04 am
by bkiss
Huh,
Thank you, it's really simple, and it's working great.
I don't see romanian language...tell me if i'm wrong..
If there is not language in romanian, then you can count on me
I will bother you, if i have questions...
Happy New Year!
Barni
Romanian translation
Posted: Sun Jan 01, 2006 11:33 am
by westis
Great!
You're right, there's not yet a Romanian translation. Would be great if want to work with that! The first thing you should do is register yourself in the
CMSMS Forgeand then register a Romanian language project.
Very soon a translation tool will be ready for use, to make translations of both the core and modules very easy.
And please bother us with more questions.

Re: php code inside the pages
Posted: Sun Mar 05, 2006 9:14 am
by Alfredo
I need to insert a code:
I can't create a User_defined_tag
Says Invalid Code Entered.
What's the best way to do it?
Re: php code inside the pages
Posted: Sun Mar 05, 2006 10:48 am
by bkiss
Hi Alfredo,
My personal oppinion is to insert this code directly in HTML code of the page, not in user defined tag. You can see the html code if you edit the page and push the HTML button of the wysiwyg editor, and you can insert your code here.
Your code isn't php code... so that's why i say this.
Maybe I'm worng but you need to try, if not you will need to search the forum about "javascript in the pages"
Good luck
Barni