Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2023-12-05 02:38:48

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,138
Website

Outputting current date (stub)

[ split off from this post ]

I was surprised that the PHP prefs, and particularly in articles, was turned ON by default. Luckily lower-level users/authors can’t include anything PHP in articles.

Flipping the pref(disabled by default) is perfectly fine, even expected :-).

My use of PHP in pages/forms is very limited nowadays – one stood out when checking on a live site: a snippet for the email body of contact forms (com_connect plugin, fetching the value of a select widgets for output in the email, as documented by the plugin). Or another one, the current year, for a website-wide copyright. Something you cannot fetch with TXP tags.

<p>©2004-<txp:php> echo gmdate('Y'); </txp:php> - me </p>

[ continued in this topic ]


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

Board footer

Powered by FluxBB