INFOKedadas - FOROS PHP Programacion: Erentxunweb baneada ¡¡ayuda!!: Forums

:.:INFOKEDADAS:.: :: Ver tema - Ajedrez en mi php Nuke
 FAQFAQ   BuscarBuscar   Grupos de UsuariosGrupos de Usuarios   PerfilPerfil   Entre para ver sus mensajes privadosEntre para ver sus mensajes privados   LoginLogin 
     

Ajedrez en mi php Nuke

 
Publicar nuevo tema   Responder al tema    Foros de discusión -> PHP Programacion
Ver tema anterior :: Ver tema siguiente  
Autor Mensaje
Uleila
Comenzando
Comenzando


Registrado: Mar 08, 2005
Mensajes: 30

MensajePublicado: Sab Mar 26, 2005 8:44 pm    Asunto: Ajedrez en mi php Nuke Responder citando

Hola comunidad,llego el pesadooooooooo!!! icon_wink.gif

Bueno,resulta que estoy creando una liga de ajedrez,(y soy muy bueno icon_cool.gif ),me baje un bloque que se llama Humpa_Chess2
y tiene estas carpetas:


Mi pregunta es:

Como se instala?,
Tengo que meter toda la carpeta en la carpeta bloks de mi server?


He creado una carpeta en el directorio raiz y he metido todo ahi.


El configHumpaChess.php es el siguiente,pero no se
que he de cambiar.


Código:
<?php

//       the default player will show up for the Black player on the New Game page
//      this will also be the default selection in the dropdown menu when a registered user
//      starts a new game
$default_player = "Awaiting Player";
$default_email = "";


      // This will notify you when your opponent or admin, or registered user (if enabled)
      // makes a comment on your game
      //   (when someone other than you makes a comment)
$commentnotify = "yes";



      // Set this to "allow" if you want registered users to comment on open game
      //  anonymous users wont be able to comment. Registered users will be able to delete comments
      // on the Open Game only. This is only a setting that affects the Open Game.
$opengamecomments = "no";


      // This will allow registered users to post game comments on any game, but they will still
      //      not be able to delete any comments, only the game players or Admin can delete comments.
$usercomments = "allow";


      // this is the return email address for all the email notification.
      // It doesnt have to be a real email, but it has to be in normal email address format
$FromEmailAddress = "webmaster@tusitio.com";


//       Set this to your site's php nuke directory!!!
$YourNukeRoot = "http://www.tusitio.com/";



   //      Setting $HumpaIndex = 1 has Humpa Chess show within your site (with left blocks) by calling
   //      the header.php and footer.php files.
   //       If you have $HumpaIndex = 1 then your theme colors will be used - except where noted
$HumpaIndex = "1";

      // whatever you call your site
$YourSiteName = "tusitio";


      // site admin email link, for game problems reporting - this is for the "site admin" email link
$YourSiteAdminEmail = "webmaster@tusitio.com";


//      This doesnt matter in this "no frames" version
$NoFramesNukeRoot = "http://theshanty.com/news";


//       Set this to your default language - make sure you have a Humpa Chess language file for it!!
$ChessLanguage = "spanish";


//      This is just for a couple of places where the language file can't cover
$wordforwhite = "White";
$wordforblack = "Black";


      // Choose the board you want displayed. There is a folder of gif's that are flat looking pieces
      //       and a folder of jpg's that are 3-D looking. Leave blank for the gif's, and use
      //      $chessboardtheme = "JPG";      for the 3D jpg's
$chessboardtheme = "JPG";


$chesstextcolor = "#a9b4d0";  // This is the color of the text unless $HumpaIndex=1 (the <hr> bars will also be
            //     this color, no matter what $HumpaIndex is.
            
            
$chessbgcolor = "#5c5c5c";   //  This is the background color ... This will also be the background color of the comments
            //  area, no matter what $HumpaIndex is.
            
$commenttableoutline = "000000";  // This the outline color for the table around the game comments ...This will also
            //   be the table outline color of the comments area, no matter what $HumpaIndex is.



            // One of the chess boards has a blue color in it, which is #408080
            // The brown chess piece color on the 3D board is #632910, or close to that
            // If you use the board with the JPG pics, dont use the blue, just use black, #000000
$chessboardblue = "#632910";   //This is the color for the Start a New Game link,
// the chessboard blue is #408080            
            // This is also the color for Open Game links in the All Games -
            // (If the Open Game is your game, it will not show up as this blue color, since
            // it has a special link for you - you are a Player not a Visitor for that game.)
            //  the same color as the blue in the chess board




   //       If you have $HumpaIndex = 1 then your theme colors will be used - except where noted
$linkcolor = "#000000";      // The $linkcolor will also be the color for the number that is in parentheses
            //  in the All Games list of links (no matter what $HumpaIndex is set to)
$alinkcolor = "#000000";   
$vlinkcolor = "#000000";   // These are the link colors.


$numgamesdisplay = 50;  // This will limit number of games displayed under All Games
$numgamesdisplayadmin = 90;      // This will limit number of games displayed for viewing and deleting in Admin


$allowedmoves = 100;  // This will limit how many previous moves will be saved in the database



   //Set this to allow either all visitors, registered users or only the game players to see the game comments
   // Only the game players will be able to make a comment though!!!
   // Set to 0 for only the game players to be able to view their comments
   // Set to 1 for the game players and registered users
   // Set to 2 for all visitors to be able to view game comments
$viewgamecomments = 2;   
   //Set this to allow only      
      // Set the chess rules link to a site with chess rules.
$chessruleslink = "http://www.uschess.org/beginners/letsplay.html";


//       If you want REGISTERED users to be able to select an opponent from a dropdown
//         of all registered users, then set this to yes .. otherwise, leave it "no". 
$showusers = "yes";


//       If you want ANONYMOUS users to be able to select an opponent from a dropdown
//         of all registered users, then set $allow_anon = "yes" .. if $showusers = "no" then
//         this will not matter.
$allow_anon = "no";
?>


Al darle al index de la carpeta donde lo tengo todo da el siguiente error:

Código:
Warning: main(modules/Humpa_Chess2/configHumpaChess.php): failed to open stream: No such file or directory in /home/filabres/public_html/uleila.com/ajedrez/index.php on line 12

Warning: main(modules/Humpa_Chess2/configHumpaChess.php): failed to open stream: No such file or directory in /home/filabres/public_html/uleila.com/ajedrez/index.php on line 12

Warning: main(): Failed opening 'modules/Humpa_Chess2/configHumpaChess.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/filabres/public_html/uleila.com/ajedrez/index.php on line 12

Warning: main(modules/Humpa_Chess2/ChessComments.php): failed to open stream: No such file or directory in /home/filabres/public_html/uleila.com/ajedrez/index.php on line 13

Warning: main(modules/Humpa_Chess2/ChessComments.php): failed to open stream: No such file or directory in /home/filabres/public_html/uleila.com/ajedrez/index.php on line 13

Warning: main(): Failed opening 'modules/Humpa_Chess2/ChessComments.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/filabres/public_html/uleila.com/ajedrez/index.php on line 13

Warning: main(mainfile.php): failed to open stream: No such file or directory in /home/filabres/public_html/uleila.com/ajedrez/index.php on line 14

Warning: main(): Failed opening 'mainfile.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/filabres/public_html/uleila.com/ajedrez/index.php on line 14

Warning: main(modules/Humpa_Chess2/language/lang-.php): failed to open stream: No such file or directory in /home/filabres/public_html/uleila.com/ajedrez/index.php on line 20

Warning: main(): Failed opening 'modules/Humpa_Chess2/language/lang-.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/filabres/public_html/uleila.com/ajedrez/index.php on line 20

Fatal error: Call to undefined function: sql_query() in /home/filabres/public_html/uleila.com/ajedrez/index.php on line 23



Esta bien donde lo puse todo o tengo que meterlo en la carpeta modulos?

Seal vistes el bloque que postee?

Saludos a todos.
Volver arriba
Ver perfil de usuario Enviar mensaje privado Visitar sitio web del autor
Uleila
Comenzando
Comenzando


Registrado: Mar 08, 2005
Mensajes: 30

MensajePublicado: Sab Mar 26, 2005 9:06 pm    Asunto: ya Responder citando

lo meti todo en una carpeta y lo puse en la carpeta modulos.

Pero al crear una partida me dice lo siguiente:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/filabres/public_html/uleila.com/includes/sql_layer.php on line 286

Tengo que crear una base de datos?


y si el archivo sql_layer.php ya tiene una base de datos!, tengo que cambiarla?

Gracias
Volver arriba
Ver perfil de usuario Enviar mensaje privado Visitar sitio web del autor
Seal_Bcn
Administrador
Administrador


Registrado: Nov 25, 2003
Mensajes: 3197
Ubicación: Barcelona

MensajePublicado: Dom Jul 17, 2005 6:06 pm    Asunto: Responder citando

Tienes que importar todas las tablas del fichero SQL del modulo del ajedrez, sino no funcionara.

Las partidas y muchas funciones mas del juego se realizan mediante consultas SQL, por lo que es imprescindible que tanto en este modulo como en cualquier otro revises con detenimiento los ficheros TXT de instalaci?n del mismo.

A?ade las tablas del fichero SQL y pruebalo de nuevo

Saludos icon_smile.gif
Volver arriba
Ver perfil de usuario Enviar mensaje privado Visitar sitio web del autor MSN Messenger
Mostrar mensajes de anteriores:   
Publicar nuevo tema   Responder al tema    Foros de discusión -> PHP Programacion Todas las horas son GMT + 1 Hora
Página 1 de 1

 
Cambiar a:  
Puede publicar nuevos temas en este foro
No puede responder a temas en este foro
No puede editar sus mensajes en este foro
No puede borrar sus mensajes en este foro
No puede votar en encuestas en este foro