Page 1 of 1
php w treści
Posted: Mon Nov 03, 2014 11:54 pm
by zoxovsky
Witam serdecznie.
W jaki sposób mógłbym dodać kod php aby był widoczny w treści mojego newsa ? Chodzi o kod php w którym pokazuję czy serwer jest online/offline.
Re: php w treści
Posted: Wed Nov 05, 2014 12:29 am
by JohnnyB
How could I add php code to be visible in the content of my story? As for the php code which show whether the server is online / offline.
Use a User Defined Tag to write and execute PHP inside of the CMS (templates or pages). IF the server is offline... Then your CMS will not work.
http://docs.cmsmadesimple.org/tags/user-defined-tags
Re: php w treści
Posted: Thu Nov 06, 2014 2:38 pm
by zoxovsky
JohnnyB wrote:How could I add php code to be visible in the content of my story? As for the php code which show whether the server is online / offline.
Use a User Defined Tag to write and execute PHP inside of the CMS (templates or pages). IF the server is offline... Then your CMS will not work.
http://docs.cmsmadesimple.org/tags/user-defined-tags
Help please :/
Re: php w treści
Posted: Thu Nov 06, 2014 8:18 pm
by JohnnyB
The page I linked to explains what to do.
The first sentence says, do not include the opening and closing php tags.....