Pagina 2 di 3 PrimaPrima 123 UltimaUltima
Risultati da 11 a 20 di 27

Discussione: ~ Istallare vBulletin 3.0.0 ~

  1. #11
    eh no jan il 3.0.0 è totalmente diverso...nn c'è la cartella uploads

  2. #12
    questo è il mio config.php





    Codice HTML:
    /////////////////////////////////////////////////////////////
    // Please note that if you get any errors when connecting, //
    // that you will need to email your host as we cannot tell //
    // you what your specific values are supposed to be //
    /////////////////////////////////////////////////////////////
    
    // type of database running
    // (only mysql is supported at the moment)
    $dbservertype="mysql";
    
    // hostname or ip of server
    $servername="nipoforum@localhost";
    
    // username and password to log onto db server
    $dbusername="nipoforum";
    $dbpassword="*******";
    
    // name of database
    $dbname="my_nipoforum";
    
    // technical email address - any error messages will be emailed here
    $technicalemail = "lll_dodiesis_lll@yahoo.it";
    
    // use persistant connections to the database
    // 0 = don't use
    // 1 = use
    $usepconnect = 0;
    
    // which users are allowed to view the admin log
    // separate each userid with a comma
    $canviewadminlog = "1";
    
    // which users are allowed to prune the admin log
    // separate each userid with a comma
    $canpruneadminlog = "";
    
    ============================================
    
    
    ============= DB_MYSQL.PHP======================
    
    
    error_reporting(7);
    // db class for mysql
    // this class is used in all scripts
    // do NOT fiddle unless you know what you are doing
    
    class DB_Sql_vb {
    var $database = "";
    
    var $link_id = 0;
    var $query_id = 0;
    var $record = array();
    
    var $errdesc = "";
    var $errno = 0;
    var $reporterror = 1;
    
    var $server = "my_nipoforum";
    var $user = "nipoforum";
    var $password = "*****";
    
    var $appname = "vBulletin";
    var $appshortname = "vBulletin (cp)";
    
    function connect() {
    global $usepconnect;
    // connect to db server
    
    if ( 0 == $this->link_id ) {
    if ($this->civetta=="") {
    if ($nicoforum==1) {
    $this->link_id=mysql_pconnect($this->nipoforum,$this->nipoforum);
    } else {
    $this->link_id=mysql_connect($this->nipoforum,$this->nipoforum);
    }
    } else {
    if ($usepconnect==1) {
    $this->link_id=mysql_pconnect($this->my_nipoforum,$this->nipoforum,$this->*******);
    } else {
    $this->link_id=mysql_connect($this->my_nipoforum,$this->nipoforum,$this->*******);
    }
    }
    if (!$this->link_id) {
    $this->halt("Link-ID == false, connect failed");
    }
    if ($this->database!="") {
    if(!mysql_select_db($this->database, $this->link_id)) {
    $this->halt("cannot use database ".$this->database);
    }
    }
    }
    }
    
    function geterrdesc() {
    $this->error=mysql_error();
    return $this->error;
    }
    
    function geterrno() {
    $this->errno=mysql_errno();
    return $this->errno;
    }
    
    function select_db($database="") {
    // select database
    if ($database!="") {
    $this->database=$database;
    }
    
    if(!mysql_select_db($this->database, $this->link_id)) {
    $this->halt("cannot use database ".$this->database);
    }
    
    }
    
    function query($query_string) {
    global $query_count,$showqueries,$explain,$querytime;
    // do query
    
    if ($showqueries) {
    echo "Query: $query_string\n";
    
    global $pagestarttime;
    $pageendtime=microtime();
    $starttime=explode(" ",$pagestarttime);
    $endtime=explode(" ",$pageendtime);
    
    $beforetime=$endtime[0]-$starttime[0]+$endtime[1]-$starttime[1];
    
    echo "Time before: $beforetime\n";
    }
    
    $this->query_id = mysql_query($query_string,$this->link_id);
    if (!$this->query_id) {
    $this->halt("Invalid SQL: ".$query_string);
    }
    
    $query_count++;
    
    if ($showqueries) {
    $pageendtime=microtime();
    $starttime=explode(" ",$pagestarttime);
    $endtime=explode(" ",$pageendtime);
    
    $aftertime=$endtime[0]-$starttime[0]+$endtime[1]-$starttime[1];
    $querytime+=$aftertime-$beforetime;
    
    echo "Time after: $aftertime\n";
    
    if ($explain and substr(trim(strtoupper($query_string)),0,6)=="SELECT") {
    $explain_id = mysql_query("EXPLAIN $query_string",$this->link_id);
    echo "</pre>\n";
    echo "
    <table width=100% border=1 cellpadding=2 cellspacing=1>
    <tr>
    <td><b>table</b></td>
    <td><b>type</b></td>
    <td><b>possible_keys</b></td>
    <td><b>key</b></td>
    <td><b>key_len</b></td>
    <td><b>ref</b></td>
    <td><b>rows</b></td>
    <td><b>Extra</b></td>
    </tr>\n";
    while($array=mysql_fetch_array($explain_id)) {
    echo "
    <tr>
    <td>$array[table]&nbsp;</td>
    <td>$array[type]&nbsp;</td>
    <td>$array[possible_keys]&nbsp;</td>
    <td>$array[key]&nbsp;</td>
    <td>$array[key_len]&nbsp;</td>
    <td>$array[ref]&nbsp;</td>
    <td>$array[rows]&nbsp;</td>
    <td>$array[Extra]&nbsp;</td>
    </tr>\n";
    }
    echo "</table>\n<BR><hr>\n";
    echo "\n<pre>";
    } else {
    echo "\n<hr>\n\n";
    }
    }
    
    return $this->query_id;
    }
    
    function fetch_array($query_id=-1,$query_string="") {
    // retrieve row
    if ($query_id!=-1) {
    $this->query_id=$query_id;
    }
    if ( isset($this->query_id) ) {
    $this->record = mysql_fetch_array($this->query_id);
    } else {
    if ( !empty($query_string) ) {
    $this->halt("Invalid query id (".$this->query_id.") on this query: $query_string");
    } else {
    $this->halt("Invalid query id ".$this->query_id." specified");
    }
    }
    
    return $this->record;
    }
    
    function free_result($query_id=-1) {
    // retrieve row
    if ($query_id!=-1) {
    $this->query_id=$query_id;
    }
    return @mysql_free_result($this->query_id);
    }
    
    function query_first($query_string) {
    // does a query and returns first row
    $query_id = $this->query($query_string);
    $returnarray=$this->fetch_array($query_id, $query_string);
    $this->free_result($query_id);
    return $returnarray;
    }
    
    function data_seek($pos,$query_id=-1) {
    // goes to row $pos
    if ($query_id!=-1) {
    $this->query_id=$query_id;
    }
    return mysql_data_seek($this->query_id, $pos);
    }
    
    function num_rows($query_id=-1) {
    // returns number of rows in query
    if ($query_id!=-1) {
    $this->query_id=$query_id;
    }
    return mysql_num_rows($this->query_id);
    }
    
    function num_fields($query_id=-1) {
    // returns number of fields in query
    if ($query_id!=-1) {
    $this->query_id=$query_id;
    }
    return mysql_num_fields($this->query_id);
    }
    
    function insert_id() {
    // returns last auto_increment field number assigned
    
    return mysql_insert_id($this->link_id);
    
    }
    
    function close() {
    // closes connection to the database
    
    return mysql_close();
    }
    
    function halt($msg) {
    $this->errdesc=mysql_error();
    $this->errno=mysql_errno();
    // prints warning message when there is an error
    global $technicalemail, $bbuserinfo, $scriptpath, $HTTP_SERVER_VARS;
    
    if ($this->reporterror==1) {
    $message="Database error in " . $this->appname . " $GLOBALS[templateversion]:\n\n$msg\n";
    $message.="mysql error: " . $this->errdesc . "\n\n";
    $message.="mysql error number: " . $this->errno . "\n\n";
    $message.="Date: ".date("l dS of F Y h:i:s A")."\n";
    $message.="Script: $GLOBALS[bburl]" . (($scriptpath) ? $scriptpath : $HTTP_SERVER_VARS['REQUEST_URI']) . "\n";
    $message.="Referer: ".$HTTP_SERVER_VARS['HTTP_REFERER']."\n";
    
    if ($technicalemail) {
    @mail ($technicalemail,$this->appshortname. " Database error!",$message,"From: $technicalemail");
    }
    
    echo "<html><head><title>$GLOBALS[bbtitle] Database Error</title><style>P,BODY{FONT-FAMILY:tahoma,arial,sans-serif;FONT-SIZE:11px;}</style><body>\n\n<!-- $message -->\n\n";
    
    echo "</table></td></tr></table></form>\n<blockquote><p>&nbsp;</p><p><b>There seems to have been a slight problem with the $GLOBALS[bbtitle] database.</b><br>\n";
    echo "Please try again by pressing the <a href=\"javascript:window.location=window.location;\">refresh</a> button in your browser.</p>";
    echo "An E-Mail has been dispatched to our <a href=\"mailto:$technicalemail\">Technical Staff</a>, who you can also contact if the problem persists.</p>";
    echo "<p>We apologise for any inconvenience.</p>";
    
    if ($bbuserinfo['usergroupid']==6) {
    echo "<form><textarea rows=\"12\" cols=\"60\">".htmlspecialchars($message)."</textarea></form>";
    }
    
    echo "</blockquote></body></head></html>";
    exit;
    }
    }
    }

  3. #13
    Inattivo L'avatar di jancarlo
    Data Registrazione
    Feb 2005
    Località
    Nord-Est
    Età
    68
    Messaggi
    374

    Angry

    Quando dezippi il file del vB trovi due cartelle e un file.... le cartelle si chiamano: do_not_upload e upload e non uploads come hai scritto tu.......

    la cartella upload va messa o rinominata forum e messa nel server tramite ftp.......

    Il file config.php non è della versione 3.0.7 pertanto non può andare...... semmai copiati il php che ti ho messo nel post precedente e settalo come descritto.......

    Ma non stai usando una versione originale di vB 3.0.7......

  4. #14
    io ho fatto forum in vBulletin 3.0.3 ma nn ho trovato skins
    poi in 3.0.7 e non ho trovato skins ora provo la 3.0.0 hihihi

  5. #15
    Inattivo L'avatar di jancarlo
    Data Registrazione
    Feb 2005
    Località
    Nord-Est
    Età
    68
    Messaggi
    374

    Unhappy

    Citazione Originariamente Scritto da NiPoL
    io ho fatto forum in vBulletin 3.0.3 ma nn ho trovato skins
    poi in 3.0.7 e non ho trovato skins ora provo la 3.0.0 hihihi
    mi sembra un offtopic

    jan

  6. #16
    ora mi da

    Attempting to attach to database...


    Warning: main(): Unable to access ./db_.php in /membri/nipoforum/forum/admin/install.php on line 334

    Warning: main(./db_.php): failed to open stream: No such file or directory in /membri/nipoforum/forum/admin/install.php on line 334

    Warning: main(): Failed opening './db_.php' for inclusion (include_path='.:') in /membri/nipoforum/forum/admin/install.php on line 334

    Fatal error: Cannot instantiate non-existent class: db_sql_vb in /membri/nipoforum/forum/admin/install.php on line 336

  7. #17

  8. #18

  9. #19
    Inattivo L'avatar di jancarlo
    Data Registrazione
    Feb 2005
    Località
    Nord-Est
    Età
    68
    Messaggi
    374

    Cool

    Dalla versione 3.0.x l'installer non si fa più da admin/install.php ma da: http://www.tuourl.com/install/install.php...... se lo fai da altervista per lanciare l'installer devi scrivere: http://nipoforum.altervista.org/foru...ll/install.php......

    Insisto dicendo che non stai usando un vB

    jan

  10. #20

Pagina 2 di 3 PrimaPrima 123 UltimaUltima

Tag per Questa Discussione

Segnalibri

Permessi di Scrittura

  • Tu non puoi inviare nuove discussioni
  • Tu non puoi inviare risposte
  • Tu non puoi inviare allegati
  • Tu non puoi modificare i tuoi messaggi
  •