TCH-Don Posted July 12, 2003 Posted July 12, 2003 (edited) If any one has questions about the advanced guest book please ask here, so we may all benefit from the answers. Thanks. Edited July 12, 2003 by turtle Quote
TCH-Don Posted July 12, 2003 Author Posted July 12, 2003 from Karl (he can't seem to post, because of isp trouble) I'm using the adv.guestbook that is powered by PHP and MySQL.The guestbook does show the date and time record of a comment,but no date and time records for replies. I want to add records for the replies. I found there is a com.php file that is the code of a replies. code: $com[name]: $com[comments] I also found there is a defined $DATE that shows the date,I added $DATE to com.php,it did show a date and time record for a reply,but the records of the replies are the same as the comment,that means the replies do not have their own date and time records. Can you teach me to add the records?Thank you! -------------------- Karl Quote
TCH-Don Posted July 12, 2003 Author Posted July 12, 2003 Karl, In looking at the database, I don't think there is a field in the table for time of comment. Only for time of post. Quote
Russ Posted July 13, 2003 Posted July 13, 2003 Hi - I am a newbie, so be kind if this is a stupid question. I want to set up a guestbook, and have. My question is this, can I customize the "look" of the guestbook so that it is consistent with the rest of my site? Russ Quote
TCH-Don Posted July 13, 2003 Author Posted July 13, 2003 You do not say which guestbook you have installed, but if it is the Advanced Guestbook, yes can make it fit in with your look. login as the admin and play with the styles (page colors) If you understand html, you can change the html templates, Give write permissions to the webserver on the template files! Generally the styes will do the trick. Quote
Twisted Posted July 13, 2003 Posted July 13, 2003 you can with the advanced guestbook. I used to run it and have rewritten the header of it to serve my needs and have changed the colors of it as well. Quote
Russ Posted July 13, 2003 Posted July 13, 2003 Thanks for the quick replies. I installed the advanced guestbook. I see how you can change background colors, etc., but I use a background image on my site. can the advanced guestbook be modified to use a background image? Also, i would like to give it a title other than "Advanced Guestbook." I would like to personalize the title. Is this possible. How do you "Give write permissions to the webserver on the template files?" Thanks again. Russ Quote
TCH-Don Posted July 13, 2003 Author Posted July 13, 2003 For the title if you right click the logo you will see the path to the image. Just create a new image and save it in the same place, like guestbook/img/logo.gif As to permissions, use an ftp program or your cpanel file manager Quote
Twisted Posted July 13, 2003 Posted July 13, 2003 Also with the title if your really good at picking apart the code then you can write your own custom header by editing the template files. I have done that before when I used to run that. Just a thought. Quote
karlfranz Posted July 14, 2003 Posted July 14, 2003 Hi Russ,it is indeed possible to add a background image,add a new logo and also customize the "look" of the guestbook. (1)To add a background image,look into the header.php ,then find <body bgcolor ="................................" add background="http://www.yoursite.com/yourimage". (2)To have your own logo,just rename yours to logo.gif(if ver 2.3.1 then gbook.gif) and overwrite the one that is in your ftp.Don't forget to change the size of the logo.gif in the body.php,otherwise your own logo will be resized. (3)To customize the "look" of the guestbook is even easier,you can go to admin section and have a look,there you can change the text color,text font size,etc. You can go to my guestbook and have a look.It is at www.alexsky.com/guestbook Have fun Quote
karlfranz Posted July 14, 2003 Posted July 14, 2003 Thank for adding "FAST REPLY" so I can reply here Quote
TCH-Don Posted July 14, 2003 Author Posted July 14, 2003 I tried the background="http://www.yoursite.com/yourimage" in header.php it will only show around the edges, but It made it hard to read the text and links there. My Test guest book You can also edit the footer.php and body.php to customize BUT be sure you make a back up of these file first. I copy the whole folder for the guestbook to my computer and zip it up first. Then edit the files on my computer and ftp them to the site. that way I can go back to the original (in the zip file) if I mess it up. Quote
karlfranz Posted July 15, 2003 Posted July 15, 2003 turtle,please teach me to add the date record for replies! Quote
TCH-Don Posted July 15, 2003 Author Posted July 15, 2003 I don't think there is a field in the database table for time of comment. Quote
karlfranz Posted July 15, 2003 Posted July 15, 2003 I see.Do you think it is possible to add a new VAR to add the record.I'm learning PHP,but the folder lib(mySQL) is very complex. Quote
TCH-Don Posted July 15, 2003 Author Posted July 15, 2003 I would see if the Advanced Guest book web site has an faq or forum. they would have more info on the database. Quote
karlfranz Posted July 16, 2003 Posted July 16, 2003 turtle,I have been talking on the adv.guestbook support forum for a few days,they have no idea.And Jared(the author) has gone. Quote
karlfranz Posted July 23, 2003 Posted July 23, 2003 turtle,there is a field called timestamp,the date of a comment is written into it.But when I use it as $com[timestamp],I get the date in Unix time format(e.g. 1058615140),do you know how to change it into normal date format that can be understood by people. Quote
Pam Posted July 29, 2003 Posted July 29, 2003 Well, I read all the postings and then made an attempt to modify an advanced guestbook. I tried to change the permissions on the folder containing the guestbook, now I suspect I should have done so just on the subfolder containing the templates. Anyway, now the permissions are goofed up on the main folder, and I cannot change it back. I have tried several time to change the permissions back to normal (in file manager), but they don't "take". So, I tried to put the folder in the trash, and I didn't have permission, so it didn't go. But, the trash can has the contents of that folder in there, but it can't empty it out. And I still cannot change the permissions, not only that, I don't have permission even to edit the normal way so my username and password don't work. First, can someone tell me how to get out of this mess? Second, what would be the correct way to set the permissions? Third, how would I uninstall a guestbook, it it were not goofed up, is just deleting the folder the right thing? My URL is www.warrenweb.info The folder in question is quiltedbook Thanks. Quote
surefire Posted July 29, 2003 Posted July 29, 2003 Pam, I would suggest using an FTP client (I use FTP Surfer) to change the permissions for the file. I don't know why the cpanel wouldn't work, but I'd try the ftp approach. If you want to delete a guestbook... completely... then delete the folder and then delete the tables in your database. You can use PHP myadmin or the Cpanel to do this. Cpanel would probably be faster if you were willing to delete the entire database. Just make sure that the only thing in the database are tables from the forum. As to the correct way to set permissions, I'd be willing to be that there is some information on that in the readme.txt or docs folder of the script that you are using. It depends on the folder and which script you are using. Both invision and phpBB will have comprehensive instructions on this. Quote
surefire Posted July 29, 2003 Posted July 29, 2003 karlfranz, $date = date("H:I:S - D.M.Y", $timestamp); The first part of the date function determines the formatting. To modify it to your needs, go here: http://us2.php.net/manual/en/function.date.php Quote
karlfranz Posted July 30, 2003 Posted July 30, 2003 Thanks,but in the folder templates I can't add any PHP code. Quote
Auder Posted October 26, 2003 Posted October 26, 2003 I put the advanced guestbook up and it seems great. For anyone wanting to change the line at the top "Thanks for visiting my site. You can leave your mark here" text or something close to that you can edit this at the lang/english.php file. You can add links or other text there also as long as any extra quotes (") get a (\) (omit the parentheses) in front of them. One question I have. When using the comment feature I get the following error message: Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/guest/lang/english.php:105) in /home/mysite/public_html/guest/lib/comment.class.php on line 152 It looks like my editing has created an error. The comment function still works fine it just gives this error after being used. Looks like it is expecting something a bit different from the edited english.php file. Any ideas on how to fix it? Many thanks. Quote
sub-deacon Posted May 7, 2004 Posted May 7, 2004 Ok I'm usually pretty good at adapting JAVA scripts but I need to find them first. In the advanced guest book there is a Javascripted drop down menu that I need to add in the URL of my site so guests can return to my home page, where can I look to find that script so I can add in another selection Quote
TCH-Bruce Posted May 7, 2004 Posted May 7, 2004 (edited) You will need to modify the templates for the advanced guestbook. Here is another thread that may help. Edit: found better thread so link above was changed. Edited May 7, 2004 by TCH-Bruce Quote
sub-deacon Posted May 8, 2004 Posted May 8, 2004 Thank you very much for the advice and the link to the other thread it was most helpful Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.