http://freephp.html.it/script/view_script.asp?id=404
Ci sono da configurare solo 2 pagine:
1 riga di phpCards.header.php che ho trasformato da così:
$CardPath = "/usr/home/snipe.net/html/phpCards1.3/";
A così
$CardPath = "";
E pare OK, perché un link al readme nella pagina principale va.
Poi c'è la parte delle variabili in phpCards.Config.php:
Originale:
- Codice: Seleziona tutto
//**********************************************//
// Database Variables:
//**********************************************//
$hostname = "localhost"; // database host
$dbUser = "yourdbuser"; //database username
$dbPass = "yourpass"; //database password
$dbName = "yourdbname"; // database name
$cardInfoTable = "phpCardData"; //card data table name
$cardCatTable = "phpCatData"; //card category table name
$cardUserTable = "phpCardUsers"; //card user table name
//**********************************************//
// Site Variables:
//**********************************************//
$CardLanguageFile ="eng.lang.php"; // determines what language include file to use
$CardImageURL = "http://www.your-site.com/phpCards/images/"; //with trailing slash
$CardRelURL = "images/";
$CardPicPath = "/usr/home/your-site.com/html/phpCards/images"; // no trailing slash
$AdminAddress = "snipe@your-site.com";
$SiteName = "your-site.com";
$SiteURL = "http://www.your-site.com";
$SiteTag = ""; // site tagline for email messages
$ProgURL = "http://www.your-site.com/phpCards"; // no trailing slash
$CardProgramName = "Virtual Postcards";
$CardFontFace = "Arial, Helvetica, verdana, ms sans serif";
$CardTableColor = "#FFCC99"; // main table background color
$CardTableWidth = "410"; // table with in pixels
$per_page = 2; // how many cards should display on each page
Modificato:
- Codice: Seleziona tutto
//**********************************************//
// Database Variables:
//**********************************************//
$hostname = "localhost"; // database host
$dbUser = "mio_sito"; //database username
$dbPass = "pippo"; //database password
$dbName = "my_mio_sito"; // database name
$cardInfoTable = "phpCardData"; //card data table name
$cardCatTable = "phpCatData"; //card category table name
$cardUserTable = "phpCardUsers"; //card user table name
//**********************************************//
// Site Variables:
//**********************************************//
$CardLanguageFile ="ita.lang.php"; // determines what language include file to use
$CardImageURL = "http://mio_sito.altervista.org/phpCards/images/"; //with trailing slash
$CardRelURL = "images/";
$CardPicPath = "/images"; // no trailing slash
$AdminAddress = "mio_sito@altervista.org";
$SiteName = "www.mio_sito.tk";
$SiteURL = "http://www.mio_sito.tk";
$SiteTag = ""; // site tagline for email messages
$ProgURL = "http://mio_sito.altervista.org/phpCards"; // no trailing slash
$CardProgramName = "Virtual Postcards";
$CardFontFace = "Arial, Helvetica, verdana, ms sans serif";
$CardTableColor = "#FFCC99"; // main table background color
$CardTableWidth = "410"; // table with in pixels
$per_page = 10; // how many cards should display on each page
Eppure ne vengono caricati i file e nemmeno i percorsi ad essi nel database. Dove sbaglio?
Se potete installatevi lo scipt, crea solo3 voci nel DB e così potte capire bene cosa ho di fronte e cosa non mi funziona...