Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Added Jump To: "Forum" drop down to header but....
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

HVROX
Junior Member

177 Posts

Posted - 23 August 2004 :  01:57:44  Show Profile
Hello,

I added the include for the Jump To:"Forum" dropdown to header.asp and it works for weblinks, home, faq's, active, etc... but when I select a forum I get this error


Microsoft VBScript compilation  error '800a0411'

Name redefined

/mtb/inc_jump_to.asp, line 48

Dim strSelectBox
----^



Basically I want to add the Jump To: "Forum" dropdown that you see at the bottom of forum.asp and topic.asp into header.asp as well so it shows up at the top of all pages. So far when adding inc_jump_to.asp to header.asp it partially works. The error above happens only when you select a forum while any other selection works fine.


What else do I need to do so I can add inc_jump_to.asp to header.asp ?

Edited by - HVROX on 23 August 2004 11:07:42

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 23 August 2004 :  13:09:21  Show Profile
The problem is, because you are including the same file twice, the code in it is getting executed twice, including the declaration of variables. One solution would be to remove all Dims from inc_jump_to.asp but a better solution to avoid unnecessary database hits, etc. would be to modify a bit more.

1) Open up inc_jump_to.asp and replace all occurences of strTemp with strTempJumpTo (as strTemp is used elsewhere throughout the forums).

2) Delete/Comment out line 171 which reads Response.Write strTemp.

3) On the line immediately below, replace the Response.Write with strTempJumpTo=strTempJumpTo&. Save & close.

4) In inc_header.asp, immeditely below the include of inc_jump_to.asp, add the following line:
Response.Write strTempJumpTo

5) In all other files that include inc_jump_to.asp, replace the include statement (including %> and <%) with the line from the step above.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

HVROX
Junior Member

177 Posts

Posted - 23 August 2004 :  15:16:24  Show Profile
Ok...I did it the way you said but the Jump To: DD at the bottom of the pages come out of the DD box (DD disappears) and the inside DD text is stretched across the screen like an outdated browser does with DD menus.

What else should I try that won't cause double DB hits?

Edited by - HVROX on 23 August 2004 15:50:55
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 24 August 2004 :  06:21:30  Show Profile
Apologies, I forgot to post some of the changes. At the top of the file, beginning at line 35, you should have 4 lines starting with a response.write. For each of those lines, make the change detailed in step 3 above.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

HVROX
Junior Member

177 Posts

Posted - 24 August 2004 :  13:18:23  Show Profile
Ok tried that and now it's doing the same thing on the DD placed in the header as it was doing to the one at the bottom. (Dont see the DD only the text that's inside it)

Example:

(Bike) - Mods / Fixes / Questions & Answers Wheels / Hubs / Spokes & Tires Suspension Drivetrain Bike Mods / Fixes / Q & A's - General Repair Manuals & Service Guides Products Info / Q & A's Find Or Post A Group Ride, Race, Or Event. Find Or Post A Race Or Event Find Or Post A Group Ride (Rider) - It's All About The Riding Style Riding Skills Tips / Technique / Q & A's Urban & Trials Riding Single Speed Free Ride & Out Of Bounds Downhill Cross Country BMX General Trails Spoofs & Goofs Polls My Riding Stories & Pictures In The News Gripe General Discussion Forum Help / Report An Error / Suggestions Site Navigation Home Trails & Tracks Search This Site Find Or Post A Group Ride, Race Or Event. Classifieds (Rider) - It's all about the riding style... (Bike) - Mods / Fixes / Questions & Answers Website Owners & Bicycle Dealers -------------------- Home Active Topics Frequently Asked Questions Member Information Search Page


Also when entering a forum when clicking on default I get the original error I started with.

Is there a way to just create an identical Jump to: DD by coping the inc_jump_to.asp and renaming everything so it doesn't crash the first one. So it's like a totally different(isolated) DD but performs the same funtions as the first.

Do you think this would be a good idea or bad? Anyway I really want to get this working so what should I do next?

Edited by - HVROX on 24 August 2004 13:19:38
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07