View/Sign Guestbook Links Refer to Pre-renamed "gbook.p

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Soniclight
Posts: 3
Joined: Fri Mar 16, 2007 3:00 pm

View/Sign Guestbook Links Refer to Pre-renamed "gbook.p

Post by Soniclight »

Version of script: GBOOK 1.5
Hosting company: Standard type, Windows NT platform
Site type: Non-commercial/private website.

--- Please Note: Screenshots included in this posting will be up until or maybe after I do a redesign of my site some time later this year (directories re-shuffle, etc.). But this posting should be clear enough even without them.

Hello,

Thanks for script with great protections. A bit more complicated than my previous HTML one (which I took down due to, yeah, you guessed it: spam). So willing to make this work.

Steps Taken

I'm relatively new to php. I went through all the steps in the ReadMe, incl. renaming the default "gbook.php" and "entries.php" so they matched in "settings.php." Then I uploaded everything with FrontPage 2003 (had log-ong problems using FTP). But the Guestbook Spam image showed up, so it seems ASCII/binary image problem didn't occur.

Le Problem of "Virgin" File No-Go Links

Below are two screenshots of the renamed gbook.php as viewed online, in its own directory /NEW_GSTBK. For sake of simplicity here, let's call it "newbook.php." Both screen shots are of this virgin page.

Since regular printscreen cannot show cursors, I add the red arrows in each image (one for View and the other for Sign guest book) to mean:

--- Top arrow = hover of cursor over link.
--- Bottom arrow points at status bar showing the address of the hover above it.

Image

Clicking on either or both lead to a "Page cannot be found" error. Because... these links point to the pre-renamed/default gbook.php --- but they should point to itself = "newbook.php", right? (There is no "gbook.php" in the guest book's /NEW_GSTBK folder anymore since it was renamed.)

And sure enough, View Page Source confirms the status bar:

| <a href="gbook.php">View guestbook</a>
| <a href="gbook.php?a=sign">Sign guestbook</a></p>


I haven't a clue where to go fix this. It's HTML code but the page is a .php file. Index, header and footer.htmls are all empty. And the style.css file is not relevant to this it seems from looking in it.

Hopefully this isn't a dumb question, though there is probably a "duh" solution. Thanks.

______________

P.S./Small Aside: The reason I have blurred all readable references to my website is not because I have something to hide such as running some sleazy porn site :) It's simply because I've been on the Net long enough to know not to put up more information than necessary on public BBS boards. I also moderate one myself.
finger-lickin
Posts: 4
Joined: Tue Nov 28, 2006 7:03 am

Now

Post by finger-lickin »

Way to go.

From what you explain I think you merely need to open up gbook.php (or whatever you have renamed it to !!) with a text editor or Fontpage etc etc.

Do a find this and replace with that, all occurences.

replace all gbook.php (links, not copyright) with "your name.php".

Tiddles
finger-lickin
Posts: 4
Joined: Tue Nov 28, 2006 7:03 am

Post by finger-lickin »

oh, sorry, post a link, lets see the site in all its glory, i like seeing what people have done with their guestbook !!
Soniclight
Posts: 3
Joined: Fri Mar 16, 2007 3:00 pm

Post by Soniclight »

Thanks. That helped, but ran into a little problem which has been solved. Meaning I had tried that replace approach (found 30 replacements made), but links still did the same thing. So I went and changed one replacement back to default --- and then it worked.

For those who may have run into similar situation due to renaming their file, here is how this worked for me:

--- A) Do a find & replace of all "gbook.php" (NOT just "gbook" by itself).

--- B) Then go to the 4th line right above the copyrights ("# File name:") at the top of the file page and make sure it says "gbook.php"-- (not your renamed file name). See below: I've made that line in bold so as to stand out.

_________________________________

# PHP guestbook (GBook)
# Version: 1.5
# File last modified: 3rd Feb 2007 13:48
# File name: gbook.php
# http://www.PHPJunkYard.com

##############################################################################
#COPYRIGHT NOTICE
#Copyright 2004-2007 PHPJunkyard All Rights Reserved.
#Etc. Etc.
##############################################################################

_________________________________

Last, as far as showing off my guest book---hey, I've been up all night and day and in no mood for tweaking anything anymore :) At some point I'll dive into the .css file and do some elegantly colorful magic (design skills come in hand in such things). Not today.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Just to throw my 2 cents in - simply replacing all "gbook.php" to "yourname.php" (without any quotes) should work fine. Even if you replace the gbook.php file name in the Copyright header in the process I won't complicate :wink:
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Soniclight
Posts: 3
Joined: Fri Mar 16, 2007 3:00 pm

Post by Soniclight »

Thanks for reply. For clarification:

--- I only used quotation marks ("") in this posting as a standard writing practice to separate file names within sentences. Actual search and replace file name used had none, i.e. just gbook.php.
Post Reply