The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Javascript/PHP Hybrid Include
Was having a right nightmare today trying to include a php file that done alot of processing to display some simple text.
Alas I've just found an Article on vb.org HERE however I think my way in some ways is easier. If a little nasty Basically the idea is to create a PHP page/script that parses to a javascript document.write function. which will print what ever the hell you like on the page. The structure is as follows. hobbies.php PHP Code:
sam loves to run now that its in js you can include it on any page any place by just adding HTML Code:
<script src="hobbies.php"></script> I assume the way it works is that as long as ur server's mime type is setup to parse .php files with the php processor then even if the page your calling it from doesnt allow php directly it thinks its js so lets it go? Enjoy! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|