1 html javascript css php vbulletin
我想要实现的是将vBulletin集成到PHP页面中,或者说是什么.我不想重新创建一个看起来像网站的皮肤,我或多或少想要论坛100%与网站整合,现在显然皮肤需要改变等所以它看起来的部分,但我怎么会整合它,iframe将无法处理它吗?罗斯
将PHP页面集成到vBulletin可能比将vBulletin集成到PHP页面更容易.
然后你可以在论坛根目录中的PHP文件中执行类似的操作(或根据需要更改路径):
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'myscript');
// #################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array('MYPAGE');
// pre-cache templates used by specific actions
$actiontemplates = array();
// ########################## REQUIRE BACK-END ############################
require_once('./global.php');
// ... your PHP code goes here
// ... you can use vBulletin's database classes and security mechanisms in your page
// ... you can also use vBulletin's headers/footers and other templates too
// example (assuming you've already created a template called MYPAGE):
eval('print_output("' . fetch_template('MYPAGE') . '");');
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
601 次 |
| 最近记录: |