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/Code)
 CODE: DropDownPaging()
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Aaron S.
Average Member

USA
985 Posts

Posted - 23 April 2002 :  00:24:57  Show Profile  Visit Aaron S.'s Homepage
This is a corrected DropDownPaging() for FORUM.ASP (topic.asp is very similar except you also have a hidden field in the function).

This is what it currently looks like:



This is what it looks like with the improved function:



Basically, it straightens the text.

In TOPIC.ASP replace Sub DropDownPaging() (starting around line 782) with:



sub DropDownPaging()
if maxpages > 1 then
if mypage = "" then
pge = 1
else
pge = mypage
end if
scriptname = request.servervariables("script_name")
Response.write "<form name=""PageNum"" action=""forum.asp"">"
Response.write "<input name=""FORUM_ID"" type=""hidden"" value=""" & Forum_ID & """>"
Response.write "<input name=""ARCHIVE"" type=""hidden"" value=""" & ArchiveView & """>"
Response.write "<input name=""method"" type=""hidden"" value=""" & sMethod & """>"
Response.Write("<select name=""whichpage"" size=""1"" onchange=""ChangePage()"">")
for counter = 1 to maxpages
if counter <> cint(pge) then
Response.Write "<OPTION VALUE=""" & counter & """>" & counter
else
Response.Write "<OPTION SELECTED VALUE=""" & counter & """>" & counter
end if
next
Response.Write "</select></font></td>" & vbnewline
Response.Write "</form>"& vbnewline
Response.Write "<td valign=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>"& vbnewline
Response.Write "<b>  of " & maxPages & "</b>"& vbnewline
end if
end sub




ALSO, look for the table where is calls DropDownPaging() (around line 309) and change valign="top" to valign="middle".

EDIT: Added a closing font tag in the above code. You should also change "Pages" to "Page" to mirror topic.asp (and to make it grammatically correct) in the same table that you changed the valign.

That's it... like I said TOPIC.ASP is very similar.

--Aaron



MySubs Email MOD
MOD to Smile Mgr
HotKeys MOD




Edited by - aaron s. on 23 April 2002 09:46:30

Aaron S.
Average Member

USA
985 Posts

Posted - 23 April 2002 :  09:42:07  Show Profile  Visit Aaron S.'s Homepage
I changed the code above to fix a minor bug (forgot a closing </font> tag). Also I changed "Pages" to "Page" to match topic.asp (and to use proper grammar).

BELOW is the code for TOPIC.ASP.

Replace the sub dropdownpaging() with this code.


sub DropDownPaging()
if maxpages > 1 then
if Request("whichpage") = "" then
pge = 1
else
pge = Request("whichpage")
end if
scriptname = request.servervariables("script_name")
Response.write "<form name=""PageNum"" action=""topic.asp?method=" & sMethod & """>"
Response.Write "<input type=""hidden"" name=""ARCHIVE"" value=""" & ArchiveView & """>"
Response.Write("<select name=""whichpage"" size=""1"" onchange=""ChangePage()"">")
for counter = 1 to maxpages
if counter <> cint(pge) then
Response.Write "<OPTION VALUE=""" & counter & """>" & counter
else
Response.Write "<OPTION SELECTED VALUE=""" & counter & """>" & counter
end if
next
Response.Write "</select></font></td>" & vbnewline
Response.Write "<input type='hidden' name='TOPIC_ID' value='" & Request("TOPIC_ID") & "'>"& vbnewline
Response.Write "</form>" & vbnewline
Response.Write "<td valign=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>"& vbnewline
Response.Write "<b> of " & maxPages & "</b>"& vbnewline
end if
top = "0"
end sub



Also, change valign="top" to valign="middle" in the table where is calls dropdownpaging() (around line 317).

--Aaron



MySubs Email MOD
MOD to Smile Mgr
HotKeys MOD
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.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07