Risultati da 71 a 80 di 81
-
01-04-2007, 14:47 #71
- Data Registrazione
- Sep 2006
- Località
- Vigo di Fassa - TN (m 1.380 s.l.m.)
- Età
- 55
- Messaggi
- 47
Ecco da qui si entra nella chat e nel config.php, ma come potete vedere dà un errore di path??? http://www.fassaforum.com/chat/chat/index.php
-
01-04-2007, 16:17 #72
- Data Registrazione
- Dec 2005
- Età
- 39
- Messaggi
- 1,065
Per il login...
Pannello admin >> Opzioni vbulletin >> Opzioni cookie
Cerca la voce Cookie dominio e cambia l'opzione da (blank) a .tuodominio
Salva, disconnetti e riconnetti e vedrai che funziona!
Per quanto riguarda l'errore, a cosa ti riferisci?? Non riesci ad entrare come admin alla chat??
-
02-04-2007, 00:21 #73
- Data Registrazione
- Sep 2006
- Località
- Vigo di Fassa - TN (m 1.380 s.l.m.)
- Età
- 55
- Messaggi
- 47
Purtroppo non funziona.
Si non funziona neanche l'accesso al config.php come amministratore.
Devo aver pasticciato con le directory! ???
-
03-04-2007, 14:56 #74
- Data Registrazione
- Sep 2006
- Località
- Vigo di Fassa - TN (m 1.380 s.l.m.)
- Età
- 55
- Messaggi
- 47
Il forum sta qui: www.fassaforum.com/forum è lì più o meno funziona quasi tutto.
La chat sta qui: www.fassaforum.com/chat/chat/
La chat funziona e si collega al DB degli utenti del forum.
Non funziona l'accesso automatico, quindi se già conessi al forum occorre reinserire i dati di login.
Non funziona il pannello di controllo, ovvero non vi accede proprio: www.fassaforum.com/chat/chat/admin/index.php
Devo avere un problema con le directory. Infatti anche il vBadvanced non mi riconosce il login (ho dovuto infatti togliere la NavBar dalla index: www.fassaforum.com ) ed anche se installo l'album Coopermine non riesco a collegare i DB con il processo di collegamento.
-
05-04-2007, 15:02 #75
Hai caricato delle cose custom nel forum, tipo lingue strane ?
-
05-04-2007, 15:26 #76
- Data Registrazione
- Sep 2006
- Località
- Vigo di Fassa - TN (m 1.380 s.l.m.)
- Età
- 55
- Messaggi
- 47
-
09-04-2007, 16:41 #77
- Data Registrazione
- Sep 2006
- Località
- Vigo di Fassa - TN (m 1.380 s.l.m.)
- Età
- 55
- Messaggi
- 47
Questo è il listato del file vbulletin36cms.php, forse può aiutarti, visto che il controllo dell'errore si trova lì:
<?php
/*
$Author: pem $
$Revision: 1.7.2.2 $
$Date: 2006/12/08 03:20:03 $
Version 3.08
By Paul M - this CMS file is for integration with vBulletin 3.6
Recent changes ;
3.03 - Minor fix to Get User for membergroupids, some SQL changes.
3.04 - Security (anti-hacking) code added (as supplied by Darren).
3.05 - Multiple updates, user settings moved to top.
3.06 - Fixed bug in vbpath when in admin area.
3.07 - Default role changed.
3.08 - Minor bug fix to Avatar detection, login code changes, tidy up.
*/
// Usergroup Definitions
$users = '2' ; // Usergroups allowed standard access to chat.
$moderators = '5,7' ; // Usergroups allowed access as chat moderators.
$administrators = '6' ; // Usergroups allowed access as chat administrators.
$banned = '1,8' ; // Usergroups banned from accessing the chat at any time.
// Live support mode only
$customers = '0' ; // Usergroups allowed access as customers.
// Path to vbulletin root folder - with trailing '/'
$vbpath = '../..//forum/'; // Leave blank unless you wish to override the default.
class vBulletinCMS
{
// Initialise CMS
function vBulletinCMS()
{
$prefix = $GLOBALS['vbulletin']['prefix'];
$this->loginStmt = new Statement("SELECT *, userid AS id FROM {$prefix}user WHERE username=?");
$this->getUserStmt = new Statement("SELECT *, userid AS id, username AS login FROM {$prefix}user WHERE userid=?");
$this->getUsersStmt = new Statement("SELECT *, userid AS id, username AS login FROM {$prefix}user");
$this->getUserForSession = new Statement("SELECT * FROM {$prefix}session WHERE sessionhash=? ORDER BY lastactivity DESC");
$this->updateLastactivityForUser = new Statement("UPDATE {$prefix}user SET lastactivity=? WHERE userid=?");
$this->updateSessionForUser = new Statement("UPDATE {$prefix}session SET lastactivity=?, location='$_SERVER[REQUEST_URI]' WHERE userid=?");
$this->getAvatar = new Statement("SELECT * FROM {$prefix}customavatar WHERE userid = ? AND visible = 1");
$this->getPicture = new Statement("SELECT * FROM {$prefix}customprofilepic WHERE userid = ? AND visible = 1");
$this->session = $_COOKIE[$GLOBALS['vbulletin']['cookie'] . 'sessionhash'];
if($_SESSION['fc_users_cache']['sessionhashid'] != $this->session)
{
$rs = $this->getUserForSession->process($this->session);
if($rec = $rs->next())
{
$this->userid = intval($rec['userid']);
$_SESSION['fc_users_cache']['sessionuserid'] = $this->userid;
$_SESSION['fc_users_cache']['sessionhashid'] = $this->session;
}
}
else
{
$this->userid = $_SESSION['fc_users_cache']['sessionuserid'];
}
if($_POST['t'] AND $GLOBALS['vbulletin']['spkupdate'] AND intval($this->userid) > 0)
{
$ru = $this->updateSessionForUser->process(time(),$this->userid);
$ru = $this->updateLastactivityForUser->process(time(),$this->userid);
}
}
// Auto Login
function isLoggedIn()
{
$userid = $this->userid;
if($userid > 0)
{
unset ($_SESSION['fc_users_cache'][$userid]);
unset ($_SESSION['fc_roles_cache'][$userid]);
if($GLOBALS['vbulletin']['logupdate'])
{
$ru = $this->updateSessionForUser->process(time(),$userid);
$ru = $this->updateLastactivityForUser->process(time(),$userid);
}
}
return $userid;
}
// Manual Login
function login($login, $password)
{
$rv = NULL;
if ($login == '_int_') return $this->userid;
$login = utf8_to_entities($login);
$rs = $this->loginStmt->process(utf8_decode($login));
$rec = $rs->next();
if($rs)
{
$password = utf8_to_entities($password);
if(($rec['password'] == md5(md5(utf8_decode($password)) . $rec['salt']))) $userid = $rec['id'];
}
if($userid > 0)
{
unset ($_SESSION['fc_users_cache'][$userid]);
unset ($_SESSION['fc_roles_cache'][$userid]);
if($GLOBALS['vbulletin']['logupdate'])
{
$ru = $this->updateSessionForUser->process(time(),$userid);
$ru = $this->updateLastactivityForUser->process(time(),$userid);
}
}
return $userid;
}
// Logout
function logout()
{
$_SESSION['fc_users_cache']['sessionhashid'] = '#';
if($this->userid > 0 AND $GLOBALS['vbulletin']['logupdate'])
{
$ru = $this->updateSessionForUser->process(time(),$this->userid);
$ru = $this->updateLastactivityForUser->process(time(),$this->userid);
}
return NULL;
}
// Assign chat role
function getRoles($usergroupid)
{
// Check UserGroups Allowed Access
$groups = explode(',',$usergroupid);
$userrole = ROLE_ANY ; // Default //
foreach ($GLOBALS['vbulletin']['users'] as $group) if (in_array($group,$groups)) $userrole = ROLE_USER;
if ($GLOBALS['fc_config']['liveSupportMode'])
{
foreach ($GLOBALS['vbulletin']['customer'] as $group) if (in_array($group,$groups)) $userrole = ROLE_CUSTOMER;
}
foreach ($GLOBALS['vbulletin']['mods'] as $group) if (in_array($group,$groups)) $userrole = ROLE_MODERATOR;
foreach ($GLOBALS['vbulletin']['admin'] as $group) if (in_array($group,$groups)) $userrole = ROLE_ADMIN;
foreach ($GLOBALS['vbulletin']['banned'] as $group) if (in_array($group,$groups)) $userrole = ROLE_NOBODY;
return $userrole;
}
// Get user details
function getUser($userid)
{
if(($rs = $this->getUserStmt->process($userid)) && ($rec = $rs->next()))
{
if(intval($rec['membergroupids'])) $rec['usergroupid'] .= ",".$rec['membergroupids'] ;
$rec['roles'] = $this->getRoles($rec['usergroupid']);
$tagencoded = entities_to_utf8($rec['login']);
if(strlen($rec['login']) > strlen($tagencoded)) $rec['login'] = $tagencoded;
else $rec['login'] = utf8_encode($rec['login']);
$_SESSION['fc_users_cache'][$userid] = $rec;
$_SESSION['fc_roles_cache'][$userid] = $rec['roles'];
return $rec;
}
return null;
}
// Return all existing users
function getUsers()
{
return $this->getUsersStmt->process();
}
// Returns URL of user profile page for such user id or null if user not found
function getUserProfile($userid)
{
return ($this->userid == $userid) ? "../profile.php?do=editprofile" : "../member.php?u=$userid";
}
// Check if user is in a specific role
function userInRole($userid, $role)
{
if(!intval($userid))
{
return false;
}
$user = $this->getUser($userid) ;
if($role == $user['roles']) return true;
return false;
}
// Get male or female
function getGender($user)
{
return NULL;
}
// Get current profile picture or avatar
// This function is only supported if you use the database storage method in vbulletin
function getPhoto($userid)
{
if($_SESSION['fc_users_cache'][$userid]['pid'] == $userid)
{
return $_SESSION['fc_users_cache'][$userid]['fpath'];
}
if($GLOBALS['vbulletin']['useavatar'])
{
$rs = $this->getAvatar->process($userid);
}
else
{
$rs = $this->getPicture->process($userid);
}
$rec = $rs->next();
if($rec['filedata'] == '') return '';
$fparts = explode('.', $rec['filename']);
$fextn = $fparts[count($fparts)-1];
$fname = '$'.substr('000000'.$userid,-6).'$'.$rec['dateline'];
$fpath = './images/cust_img/'.$fname.'.'.$fextn;
if(!file_exists($fpath))
{
$fp = fopen($fpath, 'wb');
fwrite($fp, $rec['filedata']);
fflush($fp);
fclose($fp);
}
$_SESSION['fc_users_cache'][$userid]['pid'] = $userid;
$_SESSION['fc_users_cache'][$userid]['fpath'] = $fpath;
return $fpath;
}
}
// Security check
if (!defined('INC_DIR'))
{
exit('Error 01 - Please consult you system administrator.');
}
// Find vbroot
$vbroot = realpath(dirname(__FILE__)).'/../../../';
if ($vbpath)
{
$vbroot = $vbpath;
}
// Get vb config
if (!include_once($vbroot.'includes/config.php'))
{
exit('Error 02 - vbulletin config file not loaded, check you have the correct path.');
}
// Clear login page moderator message
foreach($GLOBALS['fc_config']['languages'] as $k => $v)
{
$GLOBALS['fc_config']['languages'][$k]['dialog']['login']['moderator'] = '';
}
// Get settings from vbulletin config settings
$GLOBALS['fc_config']['db'] = array(
'base' => $config['Database']['dbname'],
'user' => $config['MasterServer']['username'],
'pass' => $config['MasterServer']['password'],
'pref' => $GLOBALS['fc_config']['db']['pref'],
'host' => $config['MasterServer']['servername'],
);
// Add tcp port if specified
if($config['MasterServer']['port'])
{
$GLOBALS['fc_config']['db']['host'] .= ':'.$config['MasterServer']['port'];
}
/*
# vBulletin specific settings #
Do not alter these unless you understand them.
spkupdate = Update vBulletin session when user speaks
logupdate = Update vBulletin session when user logs in/out.
useavatar = Use Custom avatar (true) or use Custom profile picture (false).
*/
$GLOBALS['vbulletin'] = array(
'spkupdate' => true, 'logupdate' => true, 'useavatar' => true,
'mods' => explode(',',$moderators), 'admin' => explode(',',$administrators),
'cookie' => $config['Misc']['cookieprefix'], 'prefix' => $config['Database']['tableprefix'],
'users' => explode(',',$users), 'customer' => explode(',',$customers), 'banned' => explode(',',$banned)
);
// Initiate class
$GLOBALS['fc_config']['cms'] = new vBulletinCMS();
?>
-
11-04-2007, 22:47 #78
- Data Registrazione
- Sep 2006
- Località
- Vigo di Fassa - TN (m 1.380 s.l.m.)
- Età
- 55
- Messaggi
- 47
Ho reinstallato su una diretory più semplice, ma il problema persiste:
www.fassaforum.com/chat
-
12-04-2007, 14:43 #79
- Data Registrazione
- Sep 2006
- Località
- Vigo di Fassa - TN (m 1.380 s.l.m.)
- Età
- 55
- Messaggi
- 47
Ho finalmente risolto grazie all'aiuto della comunity di FlashChat.
La soluzione è più semplice del previsto e leggendo bene tra le istruzioni avrei dovuto capire!
In pratica in caso di interfacciamento con il forum, la chat deve stare in una sottodirectory del forum, ovvero nel mio caso in www.fassforum.com/forum/chat
Adesso funziona tutto a regola e sono riuscito anche ad installare il link nel header del forum (visibile ed accessibile, anche automaticamente, solo agli iscritti al forum) ed il codice che fa vedere in basso chi c'è on-line sul forum.
-
28-06-2010, 13:37 #80
- Data Registrazione
- Jun 2010
- Messaggi
- 29
Ragazzi ma un link da dove scaricare la flashchat o la 3940 lo potete postare???
Grazie
Segnalibri