![]() |
PHP scripts in a notice
A simple question: is there any way to include PHP scripts using the standard method of code inside <?php ?> tags inside a notice? I tried it ( <?php phpinfo(); ?>), but it doesn't seem to work. Javascript appears to work, though.
|
You could use the php script in a plugin assign it a variable and use that variable in the notice.
|
Quote:
|
You could create a plugin using hook parse_templates, and code like this:
Code:
ob_start(); Of course you want to change 'template_name' to the name of the template you want to insert the code in. Then in that template you can use Code:
{vb:raw phpinfo} |
All times are GMT. The time now is 06:22 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|