Page 1 of 1

insert PHP, nugget type thing?

Posted: Fri Feb 04, 2005 5:03 pm
by empika
Hi
Im looking for a way to insert a small peice of php code into my site..
firstly down the sidebar: i hear talk of a PHP-nugget type thing, but its not in the cvs dir. is this what i would need?
and secondly, can i insert PHP code into 'main' posts? (not comments as that could prove insecure) If not.. how would i do this?

thanks
eddy parris

Re: insert PHP, nugget type thing?

Posted: Fri Feb 04, 2005 5:47 pm
by garvinhicking
Please read the forum for php nuggets: The use of it is not advised. It's easier to create a simple plugin for each PHP-code you need. You'll find the php plugin on the board still, but beware of security issues, they are described in older topics as well.

You cannot paste active PHP code into entries, as that's a security problem as well. You could however create a plugin for that as well, but I wouldn't advise that.

It's possible, though - but should only be used/created by advanced users (via creating a plugin).

Regards,
Garvin