We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28033
    • 925 Posts
    I use MemberCheck to display a drop-down menu if the user is logged into my website.

    I want to allow the user to add/remove a game from their wishlist/collection, like on this page. But since it’s done via a specialized WLPE call, I can’t use MemberCheck in this instance.

    Does anyone know of a snippet-capable version of this, or could "hack" MemberCheck to allow snippets, instead of chunks (I can rename it, etc., so there’s no conflicts)? Because right now, non-logged in users can see it, which isn’t a good thing. wink
      My Snippets
      -> PopUpChunk v1.0
      • 28033
      • 925 Posts
      Quote from: ganeshXL at May 15, 2008, 04:06 PM

      Can’t you just put your snippet inside a chunk and use MemberCheck? Worth a try anyway...

      It outputs the code literally, since chunks only get "accessed" as HTML (no PHP code will parse).
        My Snippets
        -> PopUpChunk v1.0
        • 10487 MODX Staff
        • 1,535 Posts
        It should work if you call your MemberCheck snippet as uncached and then call any snippets in the chunk as cached. It’s just the way that the document parser in 0.9.6 works - stuff like this is vastly improved in 0.9.7 smiley
          Garry Nutting
          Senior Developer
          MODX, LLC

          Email: [email protected]
          Twitter: @garryn
          Web: modx.com
          • 28033
          • 925 Posts
          Quote from: garryn at May 15, 2008, 04:19 PM

          It should work if you call your MemberCheck snippet as uncached and then call any snippets in the chunk as cached. It’s just the way that the document parser in 0.9.6 works - stuff like this is vastly improved in 0.9.7 smiley

          That worked. smiley Thanks.
            My Snippets
            -> PopUpChunk v1.0