Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2003
Posts: 9
Junior Member
Junior Member
Offline
Joined: Apr 2003
Posts: 9
Does anyone have any experience with using a javascript dropdown menu (I'm using the code from brothercake.com) and inserting that code into ubbthreads using the header and footer inserts?

My webpage is at www.jetcareers.com if you'd like to look at the code I'm trying to work with.

Doug Taylor
jetcareers.com

Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
welcome doug, that's a nice menu you have on the front page. How is it not working for you? Did you also insert the necessary pieces into your headerinsert file?

A lot of people have problems with the menus not working because they do not use base url's to call the scripts from within their forums, and the forum looks for them in your threads directory. Make sure you use / as in:

<script language="javascript1.2" src="/resources/custom.js"></script>

and not:

<script language="javascript1.2" src="resources/custom.js"></script>

that would work on the front page, but not deeper.


- Allen wavey
- What Drives You?
Joined: Apr 2003
Posts: 9
Junior Member
Junior Member
Offline
Joined: Apr 2003
Posts: 9
Thanks for the response!

The menu works fine, but when I try and intergrate it with ubbthreads, I can't seem to tweak it to get it to work correctly.


Joined: May 2002
Posts: 17
Newbie
Newbie
Offline
Joined: May 2002
Posts: 17
In the header & footer, try giving it the absolute URL to the script, which would be.

www.jetcareers.com/resources/menu.js

rather then just

resources/menu.js

Just my guess, HTH

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Yes, that should help. What happens when you try to add it?


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Apr 2003
Posts: 9
Junior Member
Junior Member
Offline
Joined: Apr 2003
Posts: 9
No change really! The menu never loads.

I think if I had more control over how UBBT renders the HTML, I could probably get it to work correctly.


Joined: Mar 2002
Posts: 147
Member
Member
Offline
Joined: Mar 2002
Posts: 147
I have a very simular menu on my site and load the Javascript with no issues. You need to make sure your pointer to the .js is correct and inside the <body> tags.

Joined: Apr 2003
Posts: 9
Junior Member
Junior Member
Offline
Joined: Apr 2003
Posts: 9
Basically here's what I have to do, but I can't seem to make it work correctly:

I have to get the following, right above the < /head>:
<script language="javascript" src="/resources/sniffer.js">< /script>
<script language="javascript1.2" src="/resources/custom.js">< /script>
<script language="javascript1.2" src="/resources/style.js">< /script>

and the following at the end of the < /body> tag:

< script language="javascript1.2" src="/resources/menu.js"></ script>

and the note says: "Whatever you do, do not put the include inside a table cell, a div or any other positioning element"

Aeigh!

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Load the top parts in your headerinsert file.

Load the last line in your footer file at the very bottom.


- Allen wavey
- What Drives You?
Joined: Apr 2003
Posts: 9
Junior Member
Junior Member
Offline
Joined: Apr 2003
Posts: 9
I've got it in the ubbthreads now (with the above suggestions) and no worky!

here's a shortcut: http://www.jetcareers.com/ubbthreads/ubbthreads.php

Sponsored Links
Joined: Apr 2002
Posts: 141
Member
Member
Offline
Joined: Apr 2002
Posts: 141
I had the same problem with a dhtml script and solved it by putting all code in the generic header.
Works for me!

Regards,

Ron.


Those who fail to read ask many questions:-)
Joined: Apr 2003
Posts: 9
Junior Member
Junior Member
Offline
Joined: Apr 2003
Posts: 9
Strange thing is, is that when I view the source, load it into my HTML editor and then "test" it, it works fine offline.

DOug

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
that is strange... I am not sure what the conflict might be - there might be some other javascript using the same variables and they are canceling each other out. hmmmmmmmm....


- Allen wavey
- What Drives You?
Joined: Apr 2003
Posts: 9
Junior Member
Junior Member
Offline
Joined: Apr 2003
Posts: 9
I'm more or less a java doofus, so I'm dumbfounded, naturally.


Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Have you removed the code from the forum? I wanted to take a look and offer a guess or two.

Joined: Sep 1999
Posts: 339
Kahuna
Kahuna
Offline
Joined: Sep 1999
Posts: 339
Yeah, same here... I don't see it in the code.


Muhammad
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
He had it installed earlier, and looked correctly done at that time... I am not sure where the conflict is, it looked like a nice menu.


- Allen wavey
- What Drives You?
Joined: Apr 2003
Posts: 9
Junior Member
Junior Member
Offline
Joined: Apr 2003
Posts: 9
I got it working, but I need to rework some of the stylesheets to make it look consistent so I took it back down.

Busy week!



I just copied my resources directory to the ubbthreads directory and it worked fine. It's kind of a riggged way of making it work, but it did.



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
Posts: 70
Joined: January 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)