php w treści

Pomoc po polsku dla CMS Made Simple
Locked
zoxovsky
New Member
New Member
Posts: 2
Joined: Mon Nov 03, 2014 11:52 pm

php w treści

Post 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. ???
JohnnyB
Dev Team Member
Dev Team Member
Posts: 729
Joined: Tue Nov 21, 2006 5:05 pm
Location: OH, USA

Re: php w treści

Post 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
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
zoxovsky
New Member
New Member
Posts: 2
Joined: Mon Nov 03, 2014 11:52 pm

Re: php w treści

Post 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

Image

Help please :/
JohnnyB
Dev Team Member
Dev Team Member
Posts: 729
Joined: Tue Nov 21, 2006 5:05 pm
Location: OH, USA

Re: php w treści

Post by JohnnyB »

The page I linked to explains what to do.
The first sentence says, do not include the opening and closing php tags.....
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Locked

Return to “Polish - Polski”