UBB.Dev
Welp, I put a drop down naviagation box (form) in the header and nothing worked, no one could PM, post, nothing as long as it was there, here is the code, any ideas?

<table border="0" cellpadding="5" cellspacing="0" width="234" height="60"
background="../../navagation-pic.png">
<tr>
<td align="left" valign="top" width="234">
<form METHOD="POST"
onsubmit="window.open(this.elements[0].options[this.elements[0].selectedIndex].
value,'_top'); return(false)">
<select NAME="service" SIZE="1" width="10"
onChange="window.open(this.options[this.selectedIndex].value,'_top')">
<option value="" selected>- Navigation -</option>
<option value="http://www.coloradok5.com">Home</option>
<option value="http://www.offcamber4x4.com">Off Camber 4x4</option>
<option value="http://www.coloradok5.com/review.shtml">Product Reviews</option>
<option value="http://www.coloradok5.com/membership.shtml">CK5 Membership</option>
<option value="http://www.blazerbash.com/">Blazer Bash</option>
<option value="http://www.coloradok5.com/tech.shtml">Technical</option>
<option value="http://www.coloradok5.com/specs.shtml">Specifications</option>
<option value="http://www.coloradok5.com/projects.shtml">Project Vehicles</option>
<option value="http://www.coloradok5.com/photos/">Members Rides</option>
<option value="http://www.coloradok5.com/4x4events.shtml">4x4 Events</option>
<option value="http://www.coloradok5.com/links.shtml">Links</option>
<option value="http://www.coloradok5.com/news.shtml">GM News</option>
<option value="http://www.coloradok5.com/forums/rchat.php">Chat Room</option>
<option value="http://www.coloradok5.com/forums/ubbthreads.php">Message
Forums</option>
<option value="http://www.coloradok5.com/tripreports.shtml">Trip Reports</option>
<option value="http://www.cafeshops.com/coloradok5">CK5 Merchandise</option>
<option value="http://www.coloradok5.com/advertise.shtml">Advertising</option>
<option value="http://www.coloradok5.com/contact.shtml">Contact Info</option>
</select>
</td>
</tr>
</table>
Is this correct?

background="../../navagation-pic.png"

Would be much better putting

background="/path/to/navagation-pic.png"

or try if the above fails

background="http://url.to/navagation-pic.png"

Both should work.

I am wondering if the file is not being found, and therefore the page is timing out?

Not sure how bug the png file is, but you want to keep the image as small as possible - often a gif is better.

I would also use this in the PHP header file.

<?

$html = new html;

// Grab the tablewrapper
list($tbopen,$tbclose) = $html -> table_wrapper();

// Send the template
include("$thispath/templates/$tempstyle/header.tmpl");

?>

Then upload the template file attached to your templates directory and rename it from header.txt to header.tmpl Make sure to edit the PATH TO YOUR IMAGE IN THE TEMPLATE FILE AS IAN SAID.

Attached File
89434-header.txt  (27 downloads)
[]I am wondering if the file is not being found, and therefore the page is timing out? [/]

The ../../ just means to look for the file 2 directories back and has nothing to do with this problem, I even changed it to http://coloradok5.com/navagation-pic.png and it had the same outcome of course, the size is fine also.
Not quite sure what you mean:
I would assume that this goes at the begining of the header.php file <?
and ?> goes at the end with the rest in the middle somewhere?

[]Then upload the template file attached to your templates directory and rename it from header.txt to header.tmpl Make sure to edit the PATH TO YOUR IMAGE IN THE TEMPLATE FILE AS IAN SAID.
[/]
Do you mean just copy the header.php file in to the templates directory as header.tmpl?
I wonder if this would effect other things, seems like everytime I fix a problem it changes something else.
Nope that is not what I mean.

Okay the contents of your header.php file I assume is what you posted above. So instead of that put this

<?

$html = new html;

// Grab the tablewrapper
list($tbopen,$tbclose) = $html -> table_wrapper();

// Send the template
include("$thispath/templates/$tempstyle/header.tmpl");

?>

Then the contents of the header.php file I made into a template and attached the post above. It is just a templated header and if there was any problems with the form tag being in the php file or the way it reads it the template should solve it. You html was not compliant and missing a tag.
did you happen to remember to add a closing form tag?
[]did you happen to remember to add a closing form tag? [/]
Son of a ... boy do I feel stupid, that was it!!! Thank ya
Haha... No prob, happens to almost everyone sometime.
Yep you forgot the closing form tag and it interfered with every other form tag in threads.
Well spotted
Certainly explains why no other form was working on the forums.
© UBB.Developers