Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 UserGroups v1.0 BETA2
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Webbo
Average Member

United Kingdom
982 Posts

Posted - 02 November 2008 :  07:55:47  Show Profile  Visit Webbo's Homepage
I've added this Mod to my forums but when trying to set up a default group using the exisiting members (nearly 11,000) the maximum number of members it allows into the group is 500

I've made a change to selectbox.js (line 107) to increase the count from 500 to 20000 as so:

function selectAllOptions(obj) {
   var iMax = 20000;
   var iMaxCounter = obj.options.length;
   if (iMaxCounter > iMax) {
      iMaxCounter = iMax;


...but for some reason I cannot add more than 500 into the database (MySql)

Has anyone else experienced this problem and if so how was it fixed?

Thanks<

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 02 November 2008 :  10:15:26  Show Profile
That issue isn't part of the UserGroup mod, unless it's possibly the lack of pagination which is causing it.<
Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 02 November 2008 :  10:28:25  Show Profile  Visit Webbo's Homepage
I can't see any other reason for it though

Snitx member 'Wizard' mentioned about it in this archived thread:
http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=48967&whichpage=3
(Half way down the page, and point #2)

and Sm 'Gurb' offered a solution here:
http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=48967&whichpage=5
(towards the bottom of the page)

I've physically checked the database and can't see any restrictions on the number of records t could hold in that table
My problem is if I can't add more than 500 members then the mod will be restrictive for what I need to use it for
<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 02 November 2008 :  11:07:14  Show Profile  Visit HuwR's Homepage
off hand I think this is a problem with the code that moves members from one listbox to another, I remember this being a problem in the base code at one time, so if it is using the same javascript code then that is likely to be the issue.

unless you are specifically getting a database error it is unlikely to be the database that is causing the problem.
what size is the filed in the db ? it needs to be big enough to contain all the 500 members id's so will need to be pretty big<

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 02 November 2008 :  11:16:20  Show Profile  Visit Etymon's Homepage
Though a bit clunky, you could make individual groups that contain 500 each and then include each usergroup into your target usergroup.<
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 02 November 2008 :  11:21:36  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
I think the 500 user restriction was to prevent javascript memory problems within the browser.<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.

Edited by - Podge on 02 November 2008 11:21:51
Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 02 November 2008 :  11:34:16  Show Profile  Visit Webbo's Homepage
Hi HuwR

As far as I know there are no restrictions on the size of the table in the database, and it seems to be functioning okay



Using the admin options in the mod I cannot add more than 500 members in total to the database table even if I move them one at a time
I can take one away to total 499 and then add one back, but if I add two then only one gets added, limiting at 500

Would you know what query I would need to use within phpMyAdmin to add all the members into USERGROUP_ID = 4 within the table and set their respective MEMBER_TYPE and MEMBER_ID ?

This wouldn't solve the problem but at least it would test the database<

Edited by - Webbo on 02 November 2008 11:34:32
Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 02 November 2008 :  13:03:43  Show Profile  Visit Webbo's Homepage
I've just added 2 new rows into the database table using the following with no problems:

INSERT INTO `forum_usergroup_users` (`USERGROUP_ID`, `MEMBER_ID`, `MEMBER_TYPE`) VALUES ('4', '11000', '1')
INSERT INTO `forum_usergroup_users` (`USERGROUP_ID`, `MEMBER_ID`, `MEMBER_TYPE`) VALUES ('4', '11001', '1')


...and the rows have been added successfully, so it must be a problem somewhere within the code<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 02 November 2008 :  13:24:59  Show Profile  Visit HuwR's Homepage
quote:
Originally posted by Podge

I think the 500 user restriction was to prevent javascript memory problems within the browser.



yes, I agree, but webbo says he changed it to var iMax = 20000;


webbo if you made the above change than you may need to clear your browser cache, .js files are cached locally by default so your browser may not have picked up the change<

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 02 November 2008 :  15:34:59  Show Profile  Visit Webbo's Homepage
HuwR - clearing the cache has worked and all 11,240 records were added to the database

Only problem is now it takes that long to populate the webpages in admin options they time out, but that's not a problem now that I know it works

Many thanks everyone<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 02 November 2008 :  15:45:00  Show Profile  Visit HuwR's Homepage
well, that is what happens when you try to populate a list with 11000 records <

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 02 November 2008 :  16:13:57  Show Profile  Visit Webbo's Homepage
Lol

<
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07