Forums

Members List Plugin
[resolved] [Bug?] shortcode options not working ? (5 posts)

  1. jrf
    Member
    Posted 11 months ago #

    L.S.,

    Even though I really, really like this plugin, I've had problems with it since v 3.2. The server this blog is running on is on PHP 4.4.4. with Mysql 4.1.21.

    I use it in a page which has some text, then the members list (called using the shortcode) and then again some text.
    This worked fine up to v3 of the plugin.

    For some reason, the options I set using the shortcode are now no longer respected.
    The shortcode I used was:
    [members-list search=false alpha=false pagination=false pagination2=false sort=false]

    The result was a members list *with* search, alphabetical list, pagination etc. Not what I wanted.

    I tried using a custom shortcode with the php code from the documentation, but that resulted in the list being printed above any text I had on the page. Again, not what I wanted.

    As a work-around I solved it using the following code snippet which I have added to my theme's functions.php file:
    [Code moderated as per the Forum Rules. Please use the pastebin]

    To call the member list in the middle of page, I add the [teamlist] shortcode to my page. Now it works again.

    It feels very counter-intuitive having to use this work-around. A bug-fix would be very much appreciated!

    If you want me to enable debug and pass on error messages or even test a new version of the plugin, please feel free to contact me.

    Spring greetings,
    Juliette

  2. jrf
    Member
    Posted 11 months ago #

    As a moderator removed the code as the Forum Rules only allow for max 10 lines, please find the uncommented snippet which does comply with the 10 line rule here:

    function display_memberlist() {
    	ob_start();
    	$members = new tern_members;
    	$members->members( array(  'search' => false, 'alpha' => false, 'pagination' => false, 'pagination2' => true, 'sort' => false, ) );
    	$html = ob_get_clean();
    	return $html;
    }
    add_shortcode('teamlist', 'display_memberlist');
  3. mpraetzel
    Member
    Posted 10 months ago #

    @jrf, the shortcode bug is fixed as of plugin version 3.5.3.

  4. jrf
    Member
    Posted 10 months ago #

    Excellent! Thank you so much!

  5. seosagenet
    Member
    Posted 6 hours ago #

    Sadly, this bug seems to be back in the current version. :(

Reply

You must log in to post.

About this Plugin

About this Topic