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)
 Fix forum edit function speed
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kyodai
New Member

Azerbaijan
74 Posts

Posted - 03 April 2011 :  20:01:20  Show Profile  Reply with Quote
Well if you have a forum with over 10,000 members you will notice that it takes ages to load the "edit forum" page. Usually you (the admin) loads this page to edit a forum, you will do that when you add moderators or edit the description of a sub-forum.


What takes ages to load is actually the "allowed members" list, which is a rather stupid function for larger commercial forumsanyways, with many thousands of users noone wanna keep such lists anyways, the administrative overhead would be too large.

In the end it took like 30 seconds to load the page due to the ridiculous long list of members available. So i kinda "sacrificed" the list, but made it so if you encounter the rare condition that you need it you can add "&memberlist=1" to the url to get it back.



So here is my fix:


1. Edit "post.asp"

2. Find the following:


"if Request.QueryString("method") <> "" then"


(approx. line 50)

3. ABOVE insert the following:




if Request.QueryString("memberlist") <> "" then
	strMemberlist = 1
end if


4. Find the following:


		'## Allowed User - listbox Code


(approx line 1400)

5. Below this line search for:



		strSql = strSql & " WHERE M_STATUS = " & 1


6. REPLACE with the following:




		'kyodai edit allowed member list
		if strMemberlist = 1 then
		strSql = strSql & " WHERE M_STATUS = " & 1
		else
		response.write "<br>NOTE: Add &memberlist=1 to url if you wanna use this! <br>"
		strSql = strSql & " WHERE M_STATUS = " & 4
		
		end if
		'end kyodai allowed member list







That's it.


Enjoy!

Edited by - kyodai on 03 April 2011 20:07:52

SiSL
Average Member

Turkey
671 Posts

Posted - 07 April 2011 :  17:22:04  Show Profile  Visit SiSL's Homepage  Reply with Quote
Tell me about it over 200K users! :(

As another approach, you might add small AJAX function as filling droplist as you type to an input box...

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod
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.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07