Duckface
04-23-2015, 01:16 PM
Hiya,
I've allowed the use of includingphp into the templates by adding this as a plugin hook in the global_start:
ob_start();
include('/forums/donate/donate.php');
$includedphp = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('Donate',array('php_inclu de' => $php_include));
And I've added this to the custom page 'Donate' (template):
{includephp}
Within the template, I have this when you click the 'Upgrade Now' button:
<form name="upgrade" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
However, when the button is clicked, the php isn't recognized and it opens literally a link with the output:
https://vborg.vbsupport.ru/external/2015/04/6.png
Link:
http://spawnscape614.co.uk/forums/donate/donate.php
How can I get the php to be recognized?
I've allowed the use of includingphp into the templates by adding this as a plugin hook in the global_start:
ob_start();
include('/forums/donate/donate.php');
$includedphp = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('Donate',array('php_inclu de' => $php_include));
And I've added this to the custom page 'Donate' (template):
{includephp}
Within the template, I have this when you click the 'Upgrade Now' button:
<form name="upgrade" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
However, when the button is clicked, the php isn't recognized and it opens literally a link with the output:
https://vborg.vbsupport.ru/external/2015/04/6.png
Link:
http://spawnscape614.co.uk/forums/donate/donate.php
How can I get the php to be recognized?