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 
Help: Adding options to Jump Menu  XML
Forum Index » General Discussion
Author Message
Btara Ktahn
Newbie
[Avatar]

Joined: 06/06/2003 21:19:24
Messages: 1
Offline

*gives up waiting on a reply in the Support Forum...*

What and where do I edit these stupid files so that I can add site links to the Jump Menu?

I've tried all sorts of things to get it to work, but nothing has been successful. Since I do not know .php well, it would be nice to have something around here which shows how to add hacks like this. There doesn't seem to be a section of the site here which has directions for modifying your scripts; though you have evidence that it can be done by viewing the demos.

What I want is to add links to other sections of our web site to the Jump Menu. Simply adding the HTML to the body.php doesn't cut it.

I have an example of what it should look like.

Unfortunately, it doesn't work.

How do I modify the gb.class (or whatever it is that needs to be changed) so that what I want it to look like actually works, too?

http://www.piratesofthecurribean.org/guestbook/index.php
[WWW]
Jared
Student

Joined: 07/01/2003 22:58:43
Messages: 96
Offline

The Solution has been posted in this forum before. Please read posts and perform searches on topics.

Here is what you have to do:

1.) open /guestbook/lib/gb.class.php in your favorite ascii editor
and look for the Jumpmenu code. It starts around line 73




Replace http://www.mydomain.com/ with your homepage URL

2.) Now add a javascript function to the guestbook header
Search for the file header.php and add this

....

<script language="Javascript">
<!--
function urlJump(target,selObj) {
var optionValue = selObj.options[selObj.selectedIndex].value;
var isURL = /http:/;
var regMatch = isURL.test(optionValue);
if(regMatch == true) {
eval(target+".location='"+selObj.options[selObj.selectedIndex].value+"'");
}
}
// -->
</script>

</head>
<body bgcolor="$VARS[pbgcolor]" link="$VARS[link_color]" vlink="$VARS[link_color]">

It works, I have tried it. for the other links though, you will not be using the "Go" button, as it is an auto-jump select type

I don't use it on my site, because I don't need it. I have the menu on the left for navigation
[WWW] [Yahoo!] [MSN]
 
Forum Index » General Discussion
Go to:   
Based on the open source JForum