Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Members Page
This discussion is related to the Members Page addon.
Comments
so you haven't to change
elseif($eMembersConfig['NameCell'] == 1 && $rows['ShowName'] != 1) { $toreturn .= 'n/a'; }
on your way. But to
else { $toreturn .= 'n/a'; }
It should do the same, doesn't it?
on your way,
The logic summarised (psuedo code):
$members = GetMembers(SELECT * FROM MEMBERS) for each ($member in $members) { $role = GetRole(SELECT * FROM ROLES WHERE $member(roleId) == roleId) PrintMember($member, $role) }
OK, that's not real code, nor is it from the extension. But the logic is the same... this extension performs a new SQL query for *EVERY* member that it prints on the page.
There's 1 query to fetch the members, and 1 query per member.
If you have 10 members, you have 11 queries.
If you have 400 members, you have a page with 401 queries.
For now, I think it's best to simply comment out the role query and HTML stuff. You'll see the page work wonderfully fast as a result.
If there a way to contribute the modifications I have done to resolve this back to the community?
Are extensions covered by GPL or anything that means I can publish my work without breaking copyright?
What's happening with this plugin? I know how it is to work on something for free and all (I maintain a plugin for Wordpress), but there have been solutions posted here to some of the plugin's errors and it still hasn't been updated. All the author needs to do is just drop in the fixes. Is the author AWOL?
Next request: Currently if there is an applicant awaiting membership approval that user name shows up on the member page as a "Member." I'd like to either have them show up as "Applicant" or not show up at all.
Thanks for any tips!
Posted: Monday, 6 August 2007 at 8:13AM