php forum
php mysql forum
php mysql smarty
 
Topic Options
#216734 - 05/15/02 05:03 PM Brothercake's Ultimate Dropdown Men and UBBThreads
jetcareers Offline
Junior Member

Registered: 04/09/03
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?<br /><br />My webpage is at www.jetcareers.com if you'd like to look at the code I'm trying to work with.<br /><br />Doug Taylor<br />jetcareers.com

Top
#216735 - 05/15/02 05:33 PM Re: Brothercake's Ultimate Dropdown Men and UBBThreads [Re: Blackmere]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
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?<br /><br />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:<br /><br /><script language="javascript1.2" src="/resources/custom.js"></script><br /><br />and not:<br /><br /><script language="javascript1.2" src="resources/custom.js"></script><br /><br />that would work on the front page, but not deeper.
_________________________
- Allen wavey
- What Drives You?

Top
#216736 - 05/15/02 07:00 PM Re: Brothercake's Ultimate Dropdown Men and UBBThreads [Re: SurfMinister]
jetcareers Offline
Junior Member

Registered: 04/09/03
Posts: 9
Thanks for the response!<br /><br />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.<br /><br />

Top
#216737 - 05/15/02 07:51 PM Re: Brothercake's Ultimate Dropdown Men and UBBThreads [Re: Blackmere]
SCybak Offline
Newbie

Registered: 05/03/02
Posts: 18
In the header & footer, try giving it the absolute URL to the script, which would be.<br /><br />www.jetcareers.com/resources/menu.js<br /><br />rather then just<br /><br />resources/menu.js<br /><br />Just my guess, HTH

Top
#216738 - 05/15/02 11:04 PM Re: Brothercake's Ultimate Dropdown Men and UBBThreads [Re: numbnutz]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Yes, that should help. What happens when you try to add it?
_________________________
- Allen wavey
- What Drives You?

Top
#216739 - 05/16/02 01:47 AM Re: Brothercake's Ultimate Dropdown Men and UBBThreads [Re: SurfMinister]
jetcareers Offline
Junior Member

Registered: 04/09/03
Posts: 9
No change really! The menu never loads.<br /><br />I think if I had more control over how UBBT renders the HTML, I could probably get it to work correctly.<br /><br />

Top
#216740 - 05/16/02 08:13 AM Re: Brothercake's Ultimate Dropdown Men and UBBThreads [Re: Blackmere]
casper_dup1 Offline
Member

Registered: 03/10/02
Posts: 175
Loc: Boston, MA
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.
_________________________
http://www.unnecessaryroughness.com

Top
#216741 - 05/16/02 11:35 AM Re: Brothercake's Ultimate Dropdown Men and UBBThreads [Re: zf98844]
jetcareers Offline
Junior Member

Registered: 04/09/03
Posts: 9
Basically here's what I have to do, but I can't seem to make it work correctly:<br /><br />I have to get the following, right above the < /head>:<br /><script language="javascript" src="/resources/sniffer.js">< /script><br /><script language="javascript1.2" src="/resources/custom.js">< /script><br /><script language="javascript1.2" src="/resources/style.js">< /script><br /><br />and the following at the end of the < /body> tag:<br /><br />< script language="javascript1.2" src="/resources/menu.js"></ script> <br /><br />and the note says: "Whatever you do, do not put the include inside a table cell, a div or any other positioning element"<br /><br />Aeigh!

Top
#216742 - 05/16/02 12:51 PM Re: Brothercake's Ultimate Dropdown Men and UBBThreads [Re: Blackmere]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Load the top parts in your headerinsert file.<br /><br />Load the last line in your footer file at the very bottom.
_________________________
- Allen wavey
- What Drives You?

Top
#216743 - 05/16/02 04:04 PM Re: Brothercake's Ultimate Dropdown Men and UBBThreads [Re: SurfMinister]
jetcareers Offline
Junior Member

Registered: 04/09/03
Posts: 9
I've got it in the ubbthreads now (with the above suggestions) and no worky! <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />here's a shortcut: http://www.jetcareers.com/ubbthreads/ubbthreads.php

Top
#216744 - 05/16/02 04:24 PM Re: Brothercake's Ultimate Dropdown Men and UBBThreads [Re: Blackmere]
Sat4all Offline
Member

Registered: 04/30/02
Posts: 151
Loc: The Netherlands
I had the same problem with a dhtml script and solved it by putting all code in the generic header.<br />Works for me!<br /><br />Regards,<br /><br />Ron.
_________________________
Those who fail to read ask many questions:-)

Top
#216745 - 05/16/02 04:42 PM Re: Brothercake's Ultimate Dropdown Men and UBBThreads [Re: Pomegranate]
jetcareers Offline
Junior Member

Registered: 04/09/03
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. <br /><br />DOug

Top
#216746 - 05/16/02 06:34 PM Re: Brothercake's Ultimate Dropdown Men and UBBThreads [Re: Blackmere]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
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?

Top
#216747 - 05/16/02 07:36 PM Re: Brothercake's Ultimate Dropdown Men and UBBThreads [Re: SurfMinister]
jetcareers Offline
Junior Member

Registered: 04/09/03
Posts: 9
I'm more or less a java doofus, so I'm dumbfounded, naturally.<br /><br />

Top
#216748 - 05/17/02 06:54 PM Re: Brothercake's Ultimate Dropdown Men and UBBThreads [Re: Blackmere]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Have you removed the code from the forum? I wanted to take a look and offer a guess or two. <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#216749 - 05/20/02 11:21 AM Re: Brothercake's Ultimate Dropdown Men and UBBThreads [Re: sjsaunders]
Muhammad Offline
Kahuna

Registered: 09/26/99
Posts: 1289
Loc: Tucson, AZ
Yeah, same here... I don't see it in the code. <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
Muhammad

Top
#216750 - 05/20/02 04:44 PM Re: Brothercake's Ultimate Dropdown Men and UBBThreads [Re: paulj]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
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?

Top
#216751 - 05/20/02 04:48 PM Re: Brothercake's Ultimate Dropdown Men and UBBThreads [Re: SurfMinister]
jetcareers Offline
Junior Member

Registered: 04/09/03
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.<br /><br />Busy week!<br /><br /><img src="/forum/images/icons/smile.gif" alt="" /><br /><br />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.<br /><br />

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks