If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Messages posted by: Trevor
Forum Index » Profile for Trevor » Messages posted by Trevor
Author Message
Hi Mastersmurfie,

I had a look at your guestbook.html script and it looks like you've got a bit of script missing.

Try this - open gb.class.php (in the lib sub-directory) and scroll down to where it says...
function generate_JumpMenu() {

My guess is that the next line is either...
$menu_array[] = "<select name=\"entry\" class=\"select\">";

or it's
$menu_array[] = "<option value=\"www.faithtabernacleupc.net" class=\"select\">Home Page</option>";

If that's the case then you need to make a small change. Find this again...
function generate_JumpMenu() {

Make the following changes, the blue is already part of the script and doesn't need changing, it's the bit in red that you need to make sure is included.
function generate_JumpMenu() {
$menu_array[] = "<select name=\"entry\" onChange=\"urlJump('self',this)\" class=\"select\">";
$menu_array[] = "<option value=\"http://www.faithtabernacleupc.net\" class=\"select\">Home Page</option>";
$menu_array[] = "<option value=\"0\" selected>".$this->db->LANG["FormSelect"]."</option>";

This should add a link to your home page. I've tested it on my site and it works fine. (note the backslash at the end of the URL - important).

With this menu you don't need to click the 'go' button, once you click a heading from the drop down list you're taken straight to the page. You may want to get rid of the 'go' button, look for the following line of text and delete it (it's a few lines further down)...
$menu_array[] = "<input type=\"submit\" value=\"".$this->db->LANG["FormButton"]."\" class=\"input\">";


I hope that helps.

Regards,

Trevor
Hi JTD,

I've had a look at your guestbook and it's version 2.2. The instructions worked in my guestbook but that's version 2.3.1 - it could be that the instructions don't work with 2.2.

You could try checking out the instructions here...

<<<http://proxy2.de/forum/viewtopic.php?t=1686>>>

I've got a feeling they're the same as some instructions that were posted some time back so they may work with your version of the guestbook.

If you can't get it sorted and you're not in too much of a rush you can e-mail me copies of your header.php and gb.class.php files and I'll have a look at them over the weekend. Use this as the e-mail address: guestbook at kahlil dot org.

If that still doesn't work I've got a spare site and can install a new guestbook on there (guestbook comes with the webhosting so it installs automatically). Once I've done that I can make the changes, zip all the files and mail them to you (you'd need to re-enter your existing guestbook entries).

Hope you get it sorted.

Trevor
Hi Melody101,

Not sure what the problem is. The changes worked for me and several other people. The version of Guestbook I modified was 2.3.1 - is that the same as you've got?

Have you made any other changes to the files that could be causing some sort of conflict?

Someone else had problems changing the drop down menu - check out the posts here, it may help...

<<<http://proxy2.de/forum/viewtopic.php?t=3174>>>

There's another post with instructions - see if this works...

<<<http://proxy2.de/forum/viewtopic.php?t=2866>>>

If you can't get it sorted and you're not in too much of a rush you can e-mail me copies of your header.php and gb.class.php files and I'll have a look at them over the weekend. Use this as the e-mail address: guestbook at kahlil dot org.

If that still doesn't work I've got a spare site and can install a new guestbook on there (guestbook comes with the webhosting so it installs automatically). Once I've done that I can make the changes, zip all the files and mail them to you.

Hope you get it sorted.

Trevor
Hi Melody001,

Try this link...

<<<http://proxy2.de/forum/viewtopic.php?t=2867&sid=bd9b313fbd0c759f0783692f056ed870>>>

I wrote this a few weeks ago about modifying the drop down menu and it seems to work.

Let me know if you have any problems and I'll see if I can help.

Good luck,

Trevor
Thanks JTD and cdnmama.

Missed the robots.txt validator link on the tutorial page when I first read the page. With your info and the validator I should be all set to create the robots.txt file.

Thanks again.

Trevor
Hi JTD,

Thanks for the link to info about the robots.txt file. I've read it and it seems simple enough but I'm new to all this stuff and wanted to make sure first...

If I create the following robots.txt file...

User-agent: *
Disallow: /gbook


...am I right in thinking this will block all robots from just my guestbook directory (my guestbook directory is called gbook). And also, I'm assuming this would be placed in the root directory.

Is it possible to add robots.txt files to a sub-directory. E.g. if I added...

User-agent: *
Disallow: /


...to the /gbook directory would this also work?

Many thanks for any advice you can give and apologies if this is a bit basic.

Regards,

Trevor
You can the guestbook manual from here...

<<< http://www.geocities.com/nathalonia/gbpoll >>>

It's by Jam'n so it's probably the same one mentioned above.

Good luck.

PS Auron - the link in your sig goes to a 404 error.
 
Forum Index » Profile for Trevor » Messages posted by Trevor
Go to:   
Based on the open source JForum