The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vbulletin external page
Hi,
We have a portal and we want vbulletin 5 entegration to our portal (username, online users, last topics and sessions{username etc.}...) What should you do? We should use Api or anything? Which use include code for my header page? I used this code in my header.php; Code:
$root = $_SERVER['DOCUMENT_ROOT']; $curdir = getcwd (); chdir("$root/forum/"); require("$root/forum/core/global.php"); chdir ($curdir); Code:
$vbulletin->userinfo['username']; "Access denied." can you help me? Thanks.. |
#2
|
|||
|
|||
You need to include global.php and declare $vbulletin as global to be able to access vbulletin and related information:
Code:
require_once('./global.php'); global $vbulletin; |
#3
|
|||
|
|||
Quote:
thank you for your answer. I think global.php for vb4.. My question for vb5 Because show "Access denied." error when put Code:
require_once('c://wamp/forum/core/global.php'); ---- I added this codes to my header file. Code:
chdir($forumpath); require_once('./config.php'); require_once($config['core_path'] . '/includes/config.php'); global $vbulletin; Code:
$vbulletin->userinfo['username']; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|