Splitting items per page value (topics vs replies) - نوشته شده در (1787 Views)
Senior Member
bobby131313
مطلب: 1163
1163
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?
<
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Average Member
cripto9t
مطلب: 881
881
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"

<
    _-/Cripto9t\-_
نوشته شده در
Senior Member
bobby131313
مطلب: 1163
1163


Cripto.. Thank you!
Worked like a dream. Very sweet! Only took about 15 minutes. bigsmile
Thanks again!
<
نوشته شده در
Average Member
cripto9t
مطلب: 881
881
Your welcome smile<
    _-/Cripto9t\-_
نوشته شده در
Senior Member
bobby131313
مطلب: 1163
1163


Should this be moved to MOD Add-On Forum (W/Code) now? I'm sure others would like this. bigsmile
<
نوشته شده در
Snitz Forums Admin
ruirib
مطلب: 26364
26364
نوشته شده در
New Member
secretsquirrel
مطلب: 81
81
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.<
Anyone who says a square peg does not fit into a circular hole has never seen a crazy bítch with a hammer
نوشته شده در
Junior Member
gpspassion
مطلب: 260
260
+1 - had been wanting to do this for years !<
نوشته شده در
Advanced Member
Carefree
مطلب: 4224
4224
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.<
نوشته شده در
Junior Member
texanman
مطلب: 410
410
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<
نوشته شده در
Junior Member
gpspassion
مطلب: 260
260
Think I also got that, it went away after I set the value in the admin page.<
 
شما باید یک متن وارد کنید