This subject seems to come up quite a bit and has caused a few problems of late. So... instructions to add links to the drop down menu, it works in versions 2.2 and 2.3 - don't know about other versions.

Quick Instructions - if you're familiar with this sort of stuff, Step By Step Instructions (further down) if you're not.

QUICK INSTRUCTIONS

1: Insert the following right at the begining of the header.php file...

2: Go to where the jump menu is generated in the gb.class.php file (about line 60) and make the changes so it reads as below. The blue bit is the code that was already there, the red bit is what you've just added...

4: Any links you add at this stage don't require the 'go' button as they're jump links. But... as the number of entries in your guestbook grows more pages will be added with links automatically added to the menu.

If you want to make all menu entries into jump links you'll need to edit the script where menu items are added and change the onChange=\"urlJump part. You then don't need the 'go' button. Delete the following if you want to remove it...

12: OK, you've now got as many new links on the menu as you want - just go through the script you've added and replace any instances of yahoo.com and google.com with the URL's you want to link to. Make sure there's a backslash at the end of the URL (e.g. http://www.yahoo.com\ is correct, http://www.yahoo.com isn't).

13: Go back through the script and replace instances of Yahoo and Google with appropriate descriptions for the links.

14: An example of an edited line that links to my-web-site.com/home from a menu entry that says Home Page would look like...

15: What you've got now is a jump menu - when you click one of the entries you've just added you go straight to the page without needing to hit the go button. However, the guestbook will automatically add more links to the menu as your guestbook grows and entries are displayed on more than one page. To link to these pages you'll need to hit the 'go' button.

16: That's it. Save it and test it. If it all works then fine, if not then check it and if still no joy then reinstate the original versions which you backed up earlier, resign yourself to not having links in your menu, grab a cold beer and chill out by watching some really funny toons here <<<http://www.weebls-stuff.com/toons>>>

Nice. Actually what I want to do is remove the drop-down menu. I don't need it and would rather leave it out. Which files do I have to edit and what do I have to do?

02/09/2004 19:15:25

Subject:

Trevor
Student

Joined: 17/06/2004 02:53:11
Messages: 67
Location: UK
Offline

Do you really want to delete the menu?

When your guestbook has too many entries to display on one page (the number depends what you've set it to) then links are automatically added to the menu to the other pages. No menu = no links to the other pages.

If you're sure you want rid of it then open gb.class.php and comment out all the relevant lines (starting at about line 60) - see the colored bits in the post above for the actual script to comment out.

Hi when i select any thing from the drop down menu EG: google or yahoo it jumps straight to that page like it should do..but if i select a guestbook page EG:20-40 or 40-60 it doesnot auto jump and requires a click on the go button (which i had to put back for this purpose)

05/09/2004 00:26:32

Subject:

Trevor
Student

Joined: 17/06/2004 02:53:11
Messages: 67
Location: UK
Offline

Thanks TanagerDave - I forgot to mention about having to edit other parts of the script to make the automatic entries into jump links as well. I did it once but can't remember off the top of my head what the changes were otherwise I'd mention them here.

I've also edited the original post to take account of what you've said.

Hope everything else is OK with your guestbook.

Trevor

06/09/2004 19:04:08

Subject:

Anonymous

yes everything is perfect thanks,,just had to leave the go button there for now but thats not really a problem

10/09/2004 12:53:37

Subject:

The Old Man
Beginner

Joined: 10/09/2004 12:52:00
Messages: 7
Location: UK
Offline

Hi,
Thank you for the excellent mod. Works great!
Regards,
Graham.

13/10/2004 16:35:45

Subject:

darrenabela
Beginner

Joined: 22/01/2004 15:59:54
Messages: 7
Location: London
Offline

hi there,

I just moved my website to a new server host, and had a nightmare in setting up GB again.. Finally its done however I copied the gb.class.php file across to keep the Back to Menu selction, however when ever you use it I get the error below:

thanks mate that worked, although the go button doesnt have to be pressed, it just goes back to homepage....is there any more code im missing?

14/10/2004 12:29:12

Subject:

Trevor
Student

Joined: 17/06/2004 02:53:11
Messages: 67
Location: UK
Offline

If you've made the changes in the instructions above then there's nothing more to do.

About the go button...

4: Any links you add at this stage don't require the 'go' button as they're jump links. But... as the number of entries in your guestbook grows more pages will be added with links automatically added to the menu.

If you want to make all menu entries into jump links you'll need to edit the script where menu items are added and change the onChange=\"urlJump part. You then don't need the 'go' button. Delete the following if you want to remove it...