Hi Lynne, thanks for replying.
I entered that code just as the beam, and so remained my php
PHP Code:
<?php
require('./global.php');
?>
<!DOCTYPE ...>
<html...>
<head>
<body>
....codes
php welcome user vb
</body>
</head>
</html>
The file is in the root of / forum / global.php same of
As I said, the page only works if I have already started session if session does not start jumping "unable to add ...."
edit: but if I add
PHP Code:
$vboptions['homeurl'] = $vbulletin->options['homeurl'];
$vboptions['bburl'] = $vbulletin->options['bburl'];
$vboptions['bbtitle'] = $vbulletin->options['bbtitle'];
$vboptions['forumhome'] = $vbulletin->options['forumhome'];
$vboptions['contactuslink'] = $vbulletin->options['contactuslink'];
$bbuserinfo['userid'] = $vbulletin->userinfo['userid'];
$bbuserinfo['usergroupid'] = $vbulletin->userinfo['usergroupid'];
$bbuserinfo['username'] = $vbulletin->userinfo['username'];
$bbuserinfo['email'] = $vbulletin->userinfo['email'];
$session['sessionurl'] = $vbulletin->session->vars['sessionurl'];
$session['sessionhash'] = $vbulletin->session->vars['sessionhash'];
vbulletin code does not work
PHP Code:
<?php
if ($bbuserinfo['userid']!=0){
echo "Welcome to ".$bbuserinfo['username']."!<br><a href='login.php?{vb:raw session.sessionurl}do=logout&logouthash={vb:raw bbuserinfo.logouthash}'>logout</a>";
}else{
print ('....