As i dont know what is wrong can any body help please. ps forum code= portal_mod_2ka06_a02
bonkers
One reason you will get this error is because you do not have the sub TopicPaging () in your forum.asp. Check your file and add this at the bottom of your file:
<% sub TopicPaging() mxpages = (rs("T_REPLIES") / strPageSize) if mxPages <> cint(mxPages) then mxpages = int(mxpages) + 1 end if if mxpages > 1 then Response.Write("<table border=0 cellspacing=0 cellpadding=0><tr><td valign=""center""><font face=" & strDefaultFontFace & " size=" & strFooterFontSize & "><img src=""images/icon_posticon.gif"" border=""0""></font></td>") for counter = 1 to mxpages ref = "<td align=right bgcolor=" & strForumCellColor & "><font face=" & strDefaultFontFace & " size=" & strFooterFontSize & ">" if ((mxpages > 9) and (mxpages > strPageNumberSize)) or ((counter > 9) and (mxpages < strPageNumberSize)) then ref = ref & " " end if ref = ref & widenum(counter) & "<a href='topic.asp?" ref = ref & "TOPIC_ID=" & rs("TOPIC_ID") ref = ref & "&FORUM_ID=" & rs("FORUM_ID") ref = ref & "&CAT_ID=" & rs("CAT_ID") ref = ref & "&Topic_Title=" & ChkString(left(rs("T_SUBJECT"), 50),"urlpath") ref = ref & "&Forum_Title=" & ChkString(Request.QueryString("FORUM_Title"),"urlpath") ref = ref & "&whichpage=" & counter ref = ref & "'>" & counter & "</a></font></td>" Response.Write ref if counter mod strPageNumberSize = 0 then Response.Write("</tr><tr><td> </td>") end if next Response.Write("</tr></table>") end if end sub
quote: love this mod, just got it installed. thanks..
Dayve
Thanks! Glad to see it's still seeing some use.
Does it work on v3.3+? I personally haven't tested the mod on the new version, but I can't imagine that much has changed that would have affected this mod.
I'm looking for a complete reverse thread order fix/config for Snitz. I was able to do this in UBB with the option in the cp.html control panel, and to some extent in Snitz (with a little editing help from Richard).
-edit- I've changed the sort back from reverse now in preparation for implementing work mule's code. The below link will show a normal sort order. -edit-
quote: I'm looking for a complete reverse thread order fix/config for Snitz. I was able to do this in UBB with the option in the cp.html control panel, and to some extent in Snitz (with a little editing help from Richard).
Okay, should be simple enough....
Look for this code which is about Lines 263-267 and get ready to move it... (delete or comment it out)
<% if mypage = 1 then Call GetFirst() end if %>
Look for something that looks like this, which is about mid-400's on my code (heavily mod'ed so it won't be the same)
<% rs.MoveNext intI = intI + 1 if intI = 2 then intI = 0 end if rec = rec + 1 loop end if
rs.close set rs = nothing %> </table></td> </tr> </table>
<%
Once you found that here's what you do...
<% rs.MoveNext intI = intI + 1 if intI = 2 then intI = 0 end if rec = rec + 1 loop end if
rs.close set rs = nothing
'------------------------ 'Show Topic Last!!! if (mypage = maxpages) OR (maxpages="") then Call GetFirst() end if '------------------------ %> </table></td> </tr> </table>
<%
What this does is only show the topic on the last page (mypage=maxpages) and only after all the replies have been displayed!
I have to say I'm impressed! This is slick and exactly what I'm looking for.
Got a question or two though...
Should I implement your TOPIC SORTING & ALTERNATE PAGING STYLE mod first? Before I do these codes changes you've described (comment/delete first chunk of code and add the other little chunk there within the last code)?
Will this all give me your drop down arrow "ascend/descend" option?
Erg! Forgot to ask, what file are you referencing to change the code in?
-edit-
Ok, I found the code in topic.asp. But I have much more code than the first bit you mention and I'm not sure what all to comment out. I'm not a programmer. I'm not sure what the <% do. Describe a routine until a close %> ?? No idea, argh.
I'll give your stuff a try of course and see what I can work out.
So basically, it looks like I have a bunch of extra code in my topic.asp. I'm not sure what to do in regards to commenting out the extra code and inserting code into the right place.
I have installed the Smilies Mod and Private Messaging Mod. I don't think they account for the extra code.
I'm running on IIS5 and MS-SQL2000
I think this is a fairly important mod. On a heavily used forum with regular users, paging down constanly to get to the latest post is tedious. Having a reverse order let's your regular users save frustration time.