<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Help: Adding options to Jump Menu"]]></title>
		<link>https://proxy2.de/forum/posts/list/2.php</link>
		<description><![CDATA[Latest messages posted in the topic "Help: Adding options to Jump Menu"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Help: Adding options to Jump Menu</title>
				<description><![CDATA[ *gives up waiting on a reply in the Support Forum...*  <img src="https://proxy2.de/forum//images/smilies/c30b4198e0907b23b8246bdd52aa1c3c.gif" /> <br /> <br /> What and where do I edit these stupid files so that I can add site links to the Jump Menu?<br /> <br /> 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.<br /> <br /> 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.<br /> <br /> I have an example of what it [i]should[/i] look like.<br /> <br /> Unfortunately, it doesn't work.<br /> <br /> 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?<br /> <br /> [url=http://www.piratesofthecurribean.org/guestbook/index.php]http://www.piratesofthecurribean.org/guestbook/index.php[/url]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2006/5038.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2006/5038.php</link>
				<pubDate><![CDATA[Fri, 6 Jun 2003 21:32:33]]> GMT</pubDate>
				<author><![CDATA[ Btara Ktahn]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ The Solution has been posted in this forum before. Please read posts and perform searches on topics.<br /> <br /> Here is what you have to do: <br /> <br /> 1.) open /guestbook/lib/gb.class.php in your favorite ascii editor<br /> and look for the Jumpmenu code. It starts around line 73<br /> <br /> <br /> [code]function generate_JumpMenu&#40;&#41; &#123; <br />         $menu_array&#91;&#93; = &quot;&lt;select name=\&quot;entry\&quot; onChange=\&quot;urlJump&#40;'self',this&#41;\&quot; class=\&quot;select\&quot;&gt;&quot;; <br />         $menu_array&#91;&#93; = &quot;&lt;option value=\&quot;http&#58;//www.mydomain.com/\&quot; class=\&quot;select\&quot;&gt;Back To Home&lt;/option&gt;&quot;; <br />         $menu_array&#91;&#93; = &quot;&lt;option value=\&quot;0\&quot; selected&gt;&quot;.$this-&gt;db-&gt;LANG&#91;&quot;FormSelect&quot;&#93;.&quot;&lt;/option&gt;&quot;; <br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;entries_per_page&quot;&#93; &lt; $this-&gt;total&#41; &#123; <br />             $remain = $this-&gt;total % $this-&gt;db-&gt;VARS&#91;&quot;entries_per_page&quot;&#93;; <br />             $i = $this-&gt;total-$remain; <br />             while &#40;$i &gt; 0&#41; &#123; <br />                 $num_max = $i; <br />                 $num_min = $num_max-$this-&gt;db-&gt;VARS&#91;&quot;entries_per_page&quot;&#93;; <br />                 $num_min++; <br />                 $menu_array&#91;&#93; = &quot;&lt;option value=\&quot;$remain\&quot;&gt;$num_min-$num_max&lt;/option&gt;&quot;; <br />                 $i = $num_min-1; <br />                 $remain += $this-&gt;db-&gt;VARS&#91;&quot;entries_per_page&quot;&#93;; <br />            &#125; <br />         &#125; <br />         $menu_array&#91;&#93; = &quot;&lt;/select&gt;&quot;; <br />         $menu_array&#91;&#93; = &quot;&lt;input type=\&quot;submit\&quot; value=\&quot;&quot;.$this-&gt;db-&gt;LANG&#91;&quot;FormButton&quot;&#93;.&quot;\&quot; class=\&quot;input\&quot;&gt;&quot;; <br />         return $menu_array; <br />     &#125; <br /> [/code]<br /> <br /> Replace http://www.mydomain.com/ with your homepage URL <br /> <br /> 2.) Now add a javascript function to the guestbook header <br /> Search for the file header.php and add this <br /> <br /> .... <br /> <br /> &lt;script language="Javascript"&gt; <br /> &lt;!-- <br /> function urlJump(target,selObj) { <br /> var optionValue = selObj.options[selObj.selectedIndex].value; <br /> var isURL = /http:/; <br /> var regMatch = isURL.test(optionValue); <br /> if(regMatch == true) { <br /> eval(target+".location='"+selObj.options[selObj.selectedIndex].value+"'"); <br /> } <br /> } <br /> // --&gt; <br /> &lt;/script&gt; <br /> <br /> &lt;/head&gt; <br /> &lt;body bgcolor="$VARS[pbgcolor]" link="$VARS[link_color]" vlink="$VARS[link_color]"&gt;<br /> <br /> 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<br /> <br /> I don't use it on my site, because I don't need it. I have the menu on the left for navigation]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2006/5043.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2006/5043.php</link>
				<pubDate><![CDATA[Sat, 7 Jun 2003 02:24:25]]> GMT</pubDate>
				<author><![CDATA[ Jared]]></author>
			</item>
	</channel>
</rss>