Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
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>

Sponsored Links
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
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.



Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
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.
Attachments
89434-header.txt (0 Bytes, 27 downloads)

Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
[]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.

Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
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.

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
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.

Joined: Feb 2004
Posts: 48
Junior Member
Junior Member
Offline
Joined: Feb 2004
Posts: 48
did you happen to remember to add a closing form tag?

Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
[]did you happen to remember to add a closing form tag? [/]
Son of a ... boy do I feel stupid, that was it!!! Thank ya

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609

Joined: Feb 2004
Posts: 48
Junior Member
Junior Member
Offline
Joined: Feb 2004
Posts: 48
Haha... No prob, happens to almost everyone sometime.

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Yep you forgot the closing form tag and it interfered with every other form tag in threads.

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Well spotted


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Certainly explains why no other form was working on the forums.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)