The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Using PHP in VBulletin
Right, I am wanting to use some php code using the VB notices system. Here is the PHP code I am wanting to use.
PHP Code:
PHP Code:
All ideas and help is greatly appreciated. Thank you. --------------- Added [DATE]1225555222[/DATE] at [TIME]1225555222[/TIME] --------------- I seen the VB manual and it just doesnt seem to work the method shown there. I have added a new plugin name quotegenerator and used HTML Code:
ob_start(); include('/mascot/random.php'); $quotegen = ob_get_contents(); ob_end_clean(); HTML Code:
Warning: include(/mascot/random.php) [function.include]: failed to open stream: No such file or directory in [path]/global.php(404) : eval()'d code on line 722 Warning: include() [function.include]: Failed opening '/mascot/random.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in [path]/global.php(404) : eval()'d code on line 722 ________ MILF PORN |
#2
|
|||
|
|||
Your path is wrong unless you are running Apache in chrooted environment. You need to fix it.
|
#3
|
||||
|
||||
We might be able to suggest the hook location for your plugin if you tell us a bit more about the code - like where are you wanting to post the results?
|
#4
|
|||
|
|||
I am wanting to post the results within a div, floated to the right of a white background, next to an image on the left.
I havent tried the $quotegen within a div as of yet only on its own to test it. I tried it within a web template created using the logicians web templates mod and with a new notice on its own. Am I supposed to use the full path? Like blah/home/public_html/etc --------------- Added [DATE]1225578254[/DATE] at [TIME]1225578254[/TIME] --------------- Thank you, it is now working after changing the path to the full path /home/Blah/public_html/ Lets hope I can get this the way I want it too Very happy |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|