开发者

Forum vB plugin not working

So I made a plugin/hook

<?php
ob_start();
include $_SERVER['DOCUMENT_ROOT'] . "/delta/pack_files/other/login.php";
$loginphpp = ob_get_contents();
ob_end_clean();
?>

I enabled hooks/plugins in the settings, and i set this pl开发者_开发技巧ugin to be at global_start

the folder directory is correct and I called this with $loginphpp, but nothing shows.

Any ideas why?


I don't have much experience with vBulletin plugins, but, ob_end_clean() will clear the output buffer and cause nothing to be sent out to the browser. What about removing all your output buffering control:

<?php
include($_SERVER['DOCUMENT_ROOT'] . '/delta/pack_files/other/login.php');
?>


Just realised how stupid I've been

With vBulletin plugins, you don't include

so it'd just be:

ob_start();
include $_SERVER['DOCUMENT_ROOT'] . "/delta/pack_files/other/login.php";
$loginphpp = ob_get_contents();
ob_end_clean();

They really should write that somewhere :P

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜