The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
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?
<
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?
<
Last edited by bobby131313 on 04 June 2008, 22:36
Posted
copy and save this as dbs_splitpagesize.asp
update your db in admin options
in config.asp find
after that add
in config.asp find
after that add
in admin_config_features.asp find
after that add
in forum.asp replace all instances of strPageSize (except the one in the sub TopicPaging()) with strForumPageSize
that should do it
You can set the size in "forum features"
<
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
Code:
Dim strForumPageSize
Code:
strShowQuickReply = Application(strCookieURL & "STRSHOWQUICKREPLY")
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 & _
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 & _
that should do it
<
_-/Cripto9t\-_
Posted
Cripto.. Thank you!
Worked like a dream. Very sweet! Only took about 15 minutes.
Thanks again!
<
Posted
Your welcome
<
_-/Cripto9t\-_
Posted
Should this be moved to MOD Add-On Forum (W/Code) now? I'm sure others would like this.
<
Posted
Posted
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
Posted
+1 - had been wanting to do this for years !<
Posted
Last edited by Carefree on 05 June 2008, 00:37
Posted
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<
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<
Posted
Think I also got that, it went away after I set the value in the admin page.<
Email Member
Message Member
Post Moderation
FileUpload
If you're having problems uploading, try choosing a smaller image.
Preview post
Send Topic
Loading...