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)
 Splitting items per page value (topics vs replies)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bobby131313
Senior Member

USA
1163 Posts

Posted - 28 May 2007 :  11:44:39  Show Profile  Visit bobby131313's Homepage  Reply with Quote
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?

<

Switch the order of your title tags

Edited by - bobby131313 on 04 June 2008 22:36:06

cripto9t
Average Member

USA
881 Posts

Posted - 29 May 2007 :  09:48:02  Show Profile  Reply with Quote
copy and save this as dbs_splitpagesize.asp

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


update your db in admin options

in config.asp find

Dim SubCount, MySubCount

after that add

Dim strForumPageSize

in config.asp find

strShowQuickReply = Application(strCookieURL & "STRSHOWQUICKREPLY")

after that add

strForumPageSize = Application(strCookieURL & "STRFORUMPAGESIZE")


in admin_config_features.asp find

			"              <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

			"              <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 You can set the size in "forum features"

<

    _-/Cripto9t\-_
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 29 May 2007 :  18:10:14  Show Profile  Visit bobby131313's Homepage  Reply with Quote


Cripto.. Thank you!

Worked like a dream. Very sweet! Only took about 15 minutes.

Thanks again!

<

Switch the order of your title tags
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 30 May 2007 :  09:27:21  Show Profile  Reply with Quote
Your welcome <

    _-/Cripto9t\-_
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 30 May 2007 :  11:52:50  Show Profile  Visit bobby131313's Homepage  Reply with Quote


Should this be moved to MOD Add-On Forum (W/Code) now? I'm sure others would like this.

<

Switch the order of your title tags
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 30 May 2007 :  12:06:49  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
Moved.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

secretsquirrel
New Member

Australia
81 Posts

Posted - 28 June 2007 :  13:43:58  Show Profile  Visit secretsquirrel's Homepage  Reply with Quote
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
Go to Top of Page

gpspassion
Junior Member

260 Posts

Posted - 04 June 2008 :  20:55:12  Show Profile  Visit gpspassion's Homepage  Reply with Quote
+1 - had been wanting to do this for years !<
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 04 June 2008 :  23:20:55  Show Profile  Reply with Quote
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.<

Edited by - Carefree on 05 June 2008 00:37:00
Go to Top of Page

texanman
Junior Member

United States
410 Posts

Posted - 07 June 2008 :  18:18:32  Show Profile  Reply with Quote
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<
Go to Top of Page

gpspassion
Junior Member

260 Posts

Posted - 16 June 2008 :  19:50:12  Show Profile  Visit gpspassion's Homepage  Reply with Quote
Think I also got that, it went away after I set the value in the admin page.<
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 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