Welcome Guest, Not a member yet? Register   Sign In
vbulleitn integration error
#1

[eluser]Evollution[/eluser]
to include vbulletin i just added to index.php :

Code:
<?php
$curdir = getcwd ();
chdir('forum');
require_once('./global.php');
chdir ($curdir);

echo $vbulletin->userinfo['username']; // Here I can display now my username with i logged in in the forum
?>

now if i try to use echo
Code:
$vbulletin->userinfo['username'];
in a view file i get an error :
Code:
Severity: Notice

Message: Undefined variable: vbulletin

Filename: views/template.php

Line Number: 15

i don't undersand why when i use $vbulletin->userinfo['username'] on index.php it works but if i use $vbulletin->userinfo['username'] on view files i get this error :\

I'm using CI 2.0


Messages In This Thread
vbulleitn integration error - by El Forum - 01-06-2011, 04:42 AM
vbulleitn integration error - by El Forum - 01-06-2011, 01:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB