Hi!
I want to insert a php code ( in one of page, but when I try in FCK editor type this code (in source mode), editor change my code in something like < -- ?php include.....
So, how can I insert a php code into my pages?
Thanks!
Insert php code into FCK Editor
Re: Insert php code into FCK Editor
right way would be creating user defined tag with your php code (remember udt adds automatically) and call it with {yourudtname} another way is to allow smarty php tags in config.php and use {php} {/php}
hope this helps
hope this helps
-
Fabi
Re: Insert php code into FCK Editor
Hello..
first of all, CMSMS is a really good CMS system, but to publish my site I need to include an external news script into CMSMS.
I activated the smarty tags in the config.php but it don't works!
The code I want to include is:
So I inserted the following into my "Home"-site with the FCK Editor
Well, with this code inserted, the page needs very long to load and after it loaded completely, I don't see the included file.
Thanks in advance
Fabi
first of all, CMSMS is a really good CMS system, but to publish my site I need to include an external news script into CMSMS.
I activated the smarty tags in the config.php but it don't works!
The code I want to include is:
Code: Select all
<?PHP
$number = "2";
include("http://start.fgnet.de/fnet/cutenews/show_news.php");
?>Code: Select all
{php}$number="2";include("http://start.fgnet.de/fnet/cutenews/show_news.php");{/php}Thanks in advance
Fabi
-
bojans
Re: Insert php code into FCK Editor
Try this:
Go to admin control panel -> extensions -> user defined tags -> add user defined tags. Then name your new tag (for example news1), and insert this code (withouth :
$number = "2";
include("http://start.fgnet.de/fnet/cutenews/show_news.php");
Then on your site, where you want to have this news, type in FCK editor {news1}, and your done!
Hope it helps!
Bojan
Go to admin control panel -> extensions -> user defined tags -> add user defined tags. Then name your new tag (for example news1), and insert this code (withouth :
$number = "2";
include("http://start.fgnet.de/fnet/cutenews/show_news.php");
Then on your site, where you want to have this news, type in FCK editor {news1}, and your done!
Hope it helps!
Bojan
-
Fabi
Re: Insert php code into FCK Editor
Thanks for your tipp,
I tried this out, too, but unfortunaly, it don't works, too
Any other tipps and opinions?
I tried this out, too, but unfortunaly, it don't works, too
Any other tipps and opinions?
Re: Insert php code into FCK Editor
Did you do it in Source mode so it doesn't get formated?...
-
Fabi
Re: Insert php code into FCK Editor
Thats crazy. I tried the same way with the correct path, too, but it didn't worked, too..I try it on my site and it works
Yes, I did it in the source mode.Did you do it in Source mode so it doesn't get formated?...
Btw. the site is http://start.fgnet.de/cms if you want to take a look.


