Add a jump menu to phpnuke header
Files to edit : Steps : Add to the <head> tag <script language="JavaScript"> function openDir( form ) { var newIndex = form.fieldname.selectedIndex; if ( newIndex == 0 ) { alert( "Please select a location!" ); } else { cururl = form.fieldname.options[ newIndex ].value; window.location.assign( cururl ); } } </script> Add the following form where you want the jump box to appear. <form name=form> If your theme does not contain a header.html then paste the following in your themes/YOURTHEME/theme.php under the function themeheader() echo ' <script language="JavaScript"> function openDir( form ) { var newIndex = form.fieldname.selectedIndex; if ( newIndex == 0 ) { alert( "Please select a location!" ); } else { cururl = form.fieldname.options[ newIndex ].value; window.location.assign( cururl ); } } </script>'; Add the following form where you want the jump box to appear. echo ' <form name=form> That's all! Visit the forums for more help. |