The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I am trying to add a php function to my template... I made a script in PHP and put it in a file called "script.php" on my server.
Now Here is the problem, how can I call this function on the page, so I can use it? How does vbulletin currently call other functions? BTW this function will be used within the navbar. I cant use a HTML script because it will only work after the page fully loads up. What are your suggestions. Thanks! |
#2
|
||||
|
||||
![]() |
#3
|
|||
|
|||
![]()
How does vbulletin make all their php functions work? How do hackers get all their php functions to work?
I tried what was posted above, but it is like copying and pasting everything in script.php into a html template. I dont get how vbulletin files are php, and yet their working on html templates? |
#4
|
||||
|
||||
![]()
All the pages in vb are php pages. Just because the templates require you to use valid html in them does not mean they are not part of a php page. (You can have html in the middle of a php page also.)
|
#5
|
|||
|
|||
![]()
I have a php script located in script.php
And I put this in my navbar template... <?php include "script.php"; ?> <?php echo myfunction(blah blah,15) ?> It is not working. It is obviously wrong, but I dont know how to fix it. |
#6
|
||||
|
||||
![]()
You can't put that in your template - you may only put valid html in your template.
Did you read the link that Seven Skins posted - the part about including a php file? |
#7
|
|||
|
|||
![]() Quote:
This is what I have in my template as of now: Code:
<?php include "$includedphp"; ?> |
#8
|
||||
|
||||
![]()
It simply says "Place $includedphp in one of your templates". So, just put:
HTML Code:
$includedphp |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|