Hey guys!
Im now developing a friends vb forum, and before i did alot of smf development. and well,
On smf it whas pretty simple with requiring a login session to a blank page around public_html.
Here is a example of how it works with smf:
PHP Code:
<?php
require("SSI.php");
$ssi_ban = true;
$ssi_theme = 1;
$ssi_layers = array('body','main');
ob_start();
if ($context['user']['is_guest']) { echo '<b><center>Acess denied</center></b>'; // this will show up if your not logged in... }else { echo 'Welcome ', $context['user']['name'], ''; // this will show up if its actually logged in... }?>
but how do i make one for vbulletin?
if you can help me i would really appreciate it)
Dondxon.
--
Posted this on vbulletin.com and mathew told me to go here, he already give me this info:
--
PHP Code:
<?php
chdir('./forums'); // We need to chdir to the vBulletin directory.
require_once('./global.php'); // Including vBulletin into the mix.
if (!$vbulletin->userinfo['userid']) {
// Not logged in.
print_no_permission();
}
--
Quote:
$vbulletin->userinfo['username']
As a note, discussions about custom coding are best directed to vBulletin.org.
|
--
What i want now is that i can hide div's and show up diffrent div's for ppl that are logged out and logged in.
Thanks,
Dondxon.