If you have it installed, but are not using it, simply delete the directory you installed it in and delete the MySQL database.
If you are using it, you can get the new version from http://proxy2.de/scripts.php. However, the permissions on the author's download when extracted will not allow the web server to read the files, so I have repackaged it and attached it to this post.
To upgrade:
(Notes: This will overwite any template changes you have done. Also, I can't guarantee these instructions will work for all users. Proceed with caution.)
- Go to your cPanel backup screen and select to download your guestbook database (this is a backup, just to be safe).
- In your current guestbook directory, open the file admin/config.inc.php. Write down or copy the database settings (you will need them later). The lines you need look like:
$GB_DB["dbName"] = "account_agbook1"; $GB_DB["host"] = "localhost"; $GB_DB["user"] = "account_agbook1"; $GB_DB["pass"] = "4fSurhKJzW";
- Upload the attached file (tch-gbookphp.tar.gz) to your guestbook directory.
- Using cPanel File Manager, extract the contents of tch-gbookphp.tar.gz.
- In cPanel File Manager, edit the file admin/config.inc.php and change the Database Settings to what you copied from your old config (the 4 lines you copied down above) and save.
- Go to phpmyadmin in cPanel. Select Databases. Select the appropriate database (should match the dbName above). Click on the SQL tab. Copy and paste the following SQL query into the query window and select Go. You should get a response back that says "Your SQL-query has been executed successfully".
CREATE TABLE book_pics ( msg_id int(11) NOT NULL default '0', book_id int(11) NOT NULL default '0', p_filename varchar(100) NOT NULL default '', p_size int(11) unsigned NOT NULL default '0', width int(11) unsigned NOT NULL default '0', height int(11) unsigned NOT NULL default '0', KEY msg_id (msg_id), KEY book_id (book_id) ) TYPE=MyISAM; ALTER TABLE `book_config` ADD `thumbnail` SMALLINT(1) NOT NULL, ADD `thumb_min_fsize` INT(10) NOT NULL; ALTER TABLE `book_auth` CHANGE `LAST_VISIT` `last_visit` int(11) NOT NULL DEFAULT '0'; ALTER TABLE `book_data` DROP `image`; ALTER TABLE `book_private` DROP `image`; ALTER TABLE `book_smilies` CHANGE `width` `width` smallint(6) unsigned NOT NULL default '0'; ALTER TABLE `book_smilies` CHANGE `height` `height` smallint(6) unsigned NOT NULL default '0'; ALTER TABLE `book_ip` ADD KEY guest_ip (guest_ip);
Attached File(s)
-
tch_gbookphp.tar.gz (182.74K)
Number of downloads: 249
This post has been edited by TCH-MikeJ: 06 May 2004 - 02:22 AM

Help

















