The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help with php!
Hiya,
I've allowed the use of includingphp into the templates by adding this as a plugin hook in the global_start: Code:
ob_start(); include('/forums/donate/donate.php'); $includedphp = ob_get_contents(); ob_end_clean(); vB_Template::preRegister('Donate',array('php_include' => $php_include)); Code:
{includephp} Code:
<form name="upgrade" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> Link: http://spawnscape614.co.uk/forums/donate/donate.php How can I get the php to be recognized? |
#2
|
|||
|
|||
The first one should be this:
Code:
{vb:raw includephp} Code:
<form name="upgrade" method="post" action="{vb:raw _SERVER.PHP_SELF}"> |
Благодарность от: | ||
Duckface |
#3
|
|||
|
|||
Oh, typo haha. I added a d. So sorry for wasting your time. Thanks!
|
#4
|
||||
|
||||
If your vBulletin is on /forum/ directory, then I think that the include must be:
PHP Code:
|
#5
|
|||
|
|||
Quote:
For clarification I already had this in my donate.php: PHP Code:
|
#6
|
||||
|
||||
Just curious. Why you don't use any free plugin for Donations? If you want give a try with it. I've removed it from here as I don't have time for support but it works fine.
|
#7
|
|||
|
|||
Because I want to get some basic php and javascript knowledge .
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|