Members Hider in memberlist
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Members Hider in memberlist
The "continue" statement just returns to the top of a loop, however, there is no loop in your plugin (it cannot magically span to loops outside your plugin).

Doing what you're trying to do isn't the easiest thing.  Looking at your approach, perhaps you could hack the memberlist_user template cache (eg $templates->cache['memberlist_user'] = '';) to hide the user (don't forget to restore it for normal users).
This isn't really ideal, however, is it can mess up the number of users on each page displayed, but perhaps this is suffice for your purposes.  A better fix would require editing the query - you could either re-query, or do object hacking (which is generally what I do).

My Blog
07-05-2010 11:47 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Members Hider in memberlist - Imran - 07-04-2010, 09:43 PM
RE: Members Hider in memberlist - ZiNgA BuRgA - 07-05-2010 11:47 AM
RE: Members Hider in memberlist - Imran - 07-06-2010, 12:44 AM

 Standard Tools
Forum Jump: