PDA

View Full Version : Coding php files using vBulletin?



c00l
June 2nd, 2002, 13:03
Anyone know how to check if I'm logging on my vBulletin forum in a non-vB page?

Things like



<?php
include('/forums/global.php');
if ($bbuserinfo['id'] != 0= { ...
}
?>


or



<?php
error_reporting(7);

$templatesused = "forumjumpbit,searchintro,redirect_search,forumdisplay_gotone w,error_searchnoresults,error_searchinvalidterm,searchresult bit,searchresultbit_threadonly,searchresults,searchresults_t hreadonly";
require("/www/mysite.com/htdocs/forums/global.php");

if (!$enablesearches) {
eval("standarderror(\"".gettemplate("error_searchdisabled")."\");");
exit;
}

$permissions=getpermissions();
if (!$permissions[canview] or !$permissions[cansearch]) {
show_nopermission();
} else {
echo "Works!";
}
?>


Doesn't seem to work. Any help?

spec
June 2nd, 2002, 15:20
Ask in vb forums.

c00l
June 2nd, 2002, 23:34
They tell me about my old license... but I still use their software, our website is made using it.... I had no choice, need to do this and vB doesn't want to helpme.