Splitting items per page value (topics vs replies)

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/64859?pagenum=1
05 November 2025, 04:03

Topic


bobby131313
Splitting items per page value (topics vs replies)
28 May 2007, 11:44


I've searched for a few minutes and can't find anything previous on this. It would be awesome if the "items per page" value wasn't global. I would love to be able to separate values for topics per page (forum.asp) and replies per page (topic.asp).
Why you ask? OK I'll tell you. I've done some pretty extensive research on my users habits. Topics that go to page 2 on forum.asp have essentially met the kiss of death. 99.9% of the time they are never revisited. As we get busier, we have quite a few really good topics die this way and it kills me.
So, I set the items per page to 30. Topics last a whole lot longer and most run their course the way they should. But now, I have 30 replies per page. A lot more scrolling. A lot heavier pages. A lot more bandwidth, especially since we have a ton of pictures on our forum. Most users just go to the last page of threads they're following so shorter pages would be awesome.
I would absolutely love to be able to set topics per page to 40, and replies per page to 15. (Insert happy dance here)
Has anyone done this, seen a mod, or even thought about it? Thoughts?
<

 

Replies ...


cripto9t
29 May 2007, 09:48


copy and save this as dbs_splitpagesize.asp
Code:

Split Page Size Mod
[INSERT] CONFIG_NEW
(C_VARIABLE,C_VALUE)#('STRFORUMPAGESIZE','40')
[END]

update your db in admin options

in config.asp find
Code:

Dim SubCount, MySubCount
after that add
Code:

Dim strForumPageSize
in config.asp find
Code:

strShowQuickReply = Application(strCookieURL & "STRSHOWQUICKREPLY")
after that add
Code:

strForumPageSize = Application(strCookieURL & "STRFORUMPAGESIZE")

in admin_config_features.asp find
Code:

			"              <tr valign=""middle"">" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Pagenumbers per row:</b> </font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
" <input type=""text"" name=""strPageNumberSize"" size=""5"" maxLength=""3"" value=""" & chkExistElse(strPageNumbersize,10) & """>" & vbNewLine & _
" <a href=""JavaScript:openWindow3('pop_config_help.asp?mode=features#pagenumbersize')"">" & getCurrentIcon(strIconSmileQuestion,"","") & "</a></font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
after that add
Code:

			"              <tr valign=""middle"">" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Topics per page:</b> </font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
" <input type=""text"" name=""strForumPageSize"" size=""5"" maxLength=""3"" value=""" & chkExistElse(strForumPageSize,20) & """>" & vbNewLine & _
" <a href=""JavaScript:openWindow3('pop_config_help.asp?mode=features#pagenumbersize')"">" & getCurrentIcon(strIconSmileQuestion,"","") & "</a></font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
in forum.asp replace all instances of strPageSize (except the one in the sub TopicPaging()) with strForumPageSize

that should do it smile You can set the size in "forum features"

<
bobby131313
29 May 2007, 18:10




Cripto.. Thank you!
Worked like a dream. Very sweet! Only took about 15 minutes. bigsmile
Thanks again!
<
cripto9t
30 May 2007, 09:27


Your welcome smile<
bobby131313
30 May 2007, 11:52




Should this be moved to MOD Add-On Forum (W/Code) now? I'm sure others would like this. bigsmile
<
ruirib
30 May 2007, 12:06


Moved.<
secretsquirrel
28 June 2007, 13:43


This is great. Added it to members.asp and admin_emaillist.asp so i could view the same number as topics. These are good viewing more per page while keeping the post number per page down.<
gpspassion
04 June 2008, 20:55


+1 - had been wanting to do this for years !<
Carefree
04 June 2008, 23:20


Nice mod! Easy to install & a big help. Since I didn't know this existed (and I could have used it, lol) until today, I thought it should be publicized. So I packaged it on Crip's behalf and put it on SnitzBitz.<
texanman
07 June 2008, 18:18


ADODB.Recordset error '800a0bb9'

Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.

/forum.asp, line 338

line 338: rs.cachesize = strForumPageSize<
gpspassion
16 June 2008, 19:50


Think I also got that, it went away after I set the value in the admin page.<
© 2000-2021 Snitz™ Communications