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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Adding inc_jump_to.asp to Other Pages
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

richfed
Average Member

United States
999 Posts

Posted - 11 November 2003 :  06:50:47  Show Profile  Visit richfed's Homepage
I would like to add the inc_jump_to.asp feature to other pages, particularly some that come with MODS, i.e. active_users.asp & who_read.asp.

I tried various places on who_read.asp, but it would not appear. No error messages, I just couldn't get it to show.

I used this: %>
<!--#INCLUDE FILE="inc_jump_to.asp" -->
<%

How could I add this so that it appears as it does on forum.asp, for example.


Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]

Cailean
New Member

Canada
75 Posts

Posted - 11 November 2003 :  12:16:37  Show Profile
Have you read this?
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 11 November 2003 :  12:48:43  Show Profile  Visit richfed's Homepage
Yes, I have. Thanks - I wasn't sure the same applied to my situation, as I saw nothing at all when making my change.

Wondering, using the code above, plus Richard's javascript in the other thread ... maybe that'll work?

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]
Go to Top of Page

Cailean
New Member

Canada
75 Posts

Posted - 11 November 2003 :  13:11:39  Show Profile
If you take the exact "include file" code and the exact javascript code from active.asp (or, I suppose, forum.asp) it should work for you.
Richard's code didn't quite work for me but I used it to to find the right code in active.asp.

My default.asp code looks like this:
The JavaScript code - addition in green.
line 252ish:
if Cat_ID <> "" then
	Cat_Name = allCategoryData(2,0)
	Response.Write	"      <script language=""javascript"" type=""text/javascript"">" & vbNewLine & _
			"      document.title='" & chkString(Cat_Name,"pagetitle") & " - " & chkString(strForumTitle,"pagetitle") & "';" & vbNewLine & _
			"      </script>" & vbNewLine
end if

Response.Write	"    <script language=""JavaScript"" type=""text/javascript"">" & vbNewLine & _
		"    <!--" & vbNewLine & _
		"    function jumpTo(s)	{	if (s.selectedIndex != 0) location.href = s.options[s.selectedIndex].value;return 1;}" & vbNewLine & _
		"    -->" & vbNewLine & _
		"    </script>" & vbNewLine

If recCategoryCount = "" then

To display the pull-down menu
line 590ish:

		"" & getCurrentIcon(strIconFolder,"Old Posts","align=""absmiddle""") & " No new posts since the last visit.<br /></font></td>" & vbNewline & _
		"<td align=""right"" valign=""bottom"" width=""50%"" nowrap>" & vbNewline
%>
		<!--#INCLUDE FILE="inc_jump_to.asp" -->
<%
Response.Write 	"</td>" & vbNewline & _

Hope this helps... Good luck!

Edited by - Cailean on 12 November 2003 00:06:16
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 15 November 2003 :  11:36:20  Show Profile  Visit richfed's Homepage
Ok -

Just using this works fine:

Response.Write " <script language=""JavaScript"" type=""text/javascript"">" & vbNewLine & _
" <!--" & vbNewLine & _
" function jumpTo(s) { if (s.selectedIndex != 0) location.href = s.options[s.selectedIndex].value;return 1;}" & vbNewLine & _
" -->" & vbNewLine & _
" </script>" & vbNewLine


%>
<!--#INCLUDE FILE="inc_jump_to.asp" -->
<%


I put it just above WriteFooter. Works on who_read.asp, anyway ... will try it elsewhere soon.

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]
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.35 seconds. Powered By: Snitz Forums 2000 Version 3.4.07