squalo
05-23-2005, 11:42 AM
installation script
::: Open File - ROOT FORUM DIRECTORY/index.php
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
FIND:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
$forumusers = $DB_site->query("
SELECT
user.username, (user.options & $_USEROPTIONS[invisible]) AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity,
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
CHANGE TO:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
$forumusers = $DB_site->query("
SELECT
user.username, (user.options & $_USEROPTIONS[invisible]) AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity, session.location,
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
FIND:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
}
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
REPLACE WITH:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
// Get the users in vBChat
$vbchat_users = array();
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
if(preg_match("/vBChat.php/",$loggedin['location']) && $loggedin['userid']){
$vbchat_users[$loggedin['userid']] = $loggedin;
}
}
// Configure Peeps In vBChat
$invBChat = "";
if(is_array($vbchat_users)){
foreach($vbchat_users as $invbc){
if($invBChat == ""){
$extra = "";
} else {
$extra = ", ";
}
// Get Username Style
$invbc['musername'] = fetch_musername($invbc);
$invBChat .= "{$extra}<a href='member.php?{$session['sessionurl']}&u={$invbc['userid']}'>{$invbc['musername']}</a>";
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
::: Save & Reupload ROOT FORUM DIRECTORY/index.php
my /root/index.php is
<?php
//
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);
// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================
chdir('/home/httpd/vhosts/danceteam.it/httpdocs');
// ============================================
// No Further Editing Necessary!
// ============================================
$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();
require_once('./global.php');
print_portal_output($home);
?>
:ermm:
vbulletin 3.0.7 + vbadvanced.com 1.01
::: Open File - ROOT FORUM DIRECTORY/index.php
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
FIND:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
$forumusers = $DB_site->query("
SELECT
user.username, (user.options & $_USEROPTIONS[invisible]) AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity,
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
CHANGE TO:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
$forumusers = $DB_site->query("
SELECT
user.username, (user.options & $_USEROPTIONS[invisible]) AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity, session.location,
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
FIND:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
}
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
REPLACE WITH:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
// Get the users in vBChat
$vbchat_users = array();
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
if(preg_match("/vBChat.php/",$loggedin['location']) && $loggedin['userid']){
$vbchat_users[$loggedin['userid']] = $loggedin;
}
}
// Configure Peeps In vBChat
$invBChat = "";
if(is_array($vbchat_users)){
foreach($vbchat_users as $invbc){
if($invBChat == ""){
$extra = "";
} else {
$extra = ", ";
}
// Get Username Style
$invbc['musername'] = fetch_musername($invbc);
$invBChat .= "{$extra}<a href='member.php?{$session['sessionurl']}&u={$invbc['userid']}'>{$invbc['musername']}</a>";
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
::: Save & Reupload ROOT FORUM DIRECTORY/index.php
my /root/index.php is
<?php
//
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);
// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================
chdir('/home/httpd/vhosts/danceteam.it/httpdocs');
// ============================================
// No Further Editing Necessary!
// ============================================
$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();
require_once('./global.php');
print_portal_output($home);
?>
:ermm:
vbulletin 3.0.7 + vbadvanced.com 1.01