HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Member List not working with 2.1a24?*

PamelaPamela ✭✭
edited August 2012 in Feedback

I'm trying to use this basic users listing

but it seems not working with next release 2.1 (tested with v2.1a24.1 from master branch)

I see "member" top menu link but result is a blank page (source code displayed is empty, nothing)

@csakip, do you have planed to upgrade it :) after summer holidays ?

may be I'm missing something :) but it's worked fine with (on the same server)

thanks in advance


  • Thanks for the feedback Pamela, this is actually what we need with every plugin, to see if they still work with version 2.1, it's 1 less plugin to test. Any test result is a test result, so it's perfect that you found this.

    There was an error rendering this rich post.

  • May be there is something :) to upgrade? here (default.php file)

    public function PluginController_MembersList_Create(&$Sender){ if(Gdn::Session()->IsValid()){ $Sender->ClearCssFiles(); $Sender->AddCssFile('style.css'); $Sender->MasterView = 'default'; $Sender->UserData = Gdn::SQL()->Select('User.*')->From('User')->OrderBy('User.Name')->Where('Deleted',false)->Get(); RoleModel::SetUserRoles($Sender->UserData->Result()); $Sender->Render(dirname(__FILE__).DS.'memberlist.view.php'); } }

  • peregrineperegrine MVP
    edited August 2012

    I mentioned this before - I'll try one more time than you can do what you want -

    default.php with fixes

        if(!defined('APPLICATION')) die();
        $PluginInfo['MembersList'] = array(
            'Version' => '1.1 fix',
            'Name' => 'Members List',
            'Description' => 'Simple members list.',
          'AuthorEmail' => 'csakip@freemail.hu',
            'Author' => 'csakip'
        class MembersListPlugin extends Gdn_Plugin{
         public function Base_Render_Before($Sender) {
             $Sender->Menu->AddLink('Members', T('Members'), 'plugin/MembersList/');
            public function PluginController_MembersList_Create($Sender){
              if(!Gdn::Session()->IsValid()) return;
                $Sender->MasterView = 'default';
              $Sender->UserData = Gdn::SQL()->Select('User.*')->From('User')->OrderBy('User.Name')->Where('Deleted',false)->Get();
              $Sender->Render('MembersList', '', 'plugins/MembersList');
            public function Setup(){

    then follow this exactly as stated...

        then rename  and move the file called 
        you will obviously need to create a views directory.

    with these changes it works fine in vanilla 2.1

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Many thanks @peregrine, I 'll try it :) ASAP

  • PamelaPamela ✭✭
    edited August 2012

    peregrine said:

    with these changes it works fine in vanilla 2.1

    yes :) it's working fine

  • peregrine said:
    I mentioned this before - I'll try one more time than you can do what you want

    oups :) found it now... sorry


Sign In or Register to comment.