ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Need tutorial on passing variables from EE to PHP and Back

April 03, 2012 6:22pm

Subscribe [3]
  • #1 / Apr 03, 2012 6:22pm

    kokako

    57 posts

    I am using a module that uses some variable names that are identical to some that I have created in member custom fields.

    So when I try to mix the two, that is use {exp:member:custom_profile_data} inside the modules tags (in this case Membrr) my member custom profile variable get cancelled out, or rather become inaccessible.

    I’ve been advised that I need to call the custom data earlier in the template and assign new, temporary variable names and I’m looking for ways to do this.

    thanks.

  • #2 / Apr 04, 2012 2:46pm

    Dan Decker

    7338 posts

    Hi kokako,

    Check out Stash. It is purpose-built for assigning variables inside templates, and keeps you out of PHP

    Cheers!

  • #3 / Apr 05, 2012 7:13pm

    kokako

    57 posts

    Thanks Dan, but but I’d rather not have to use yet another plugin… I’m really looking to achieve this internally.

  • #4 / Apr 06, 2012 3:28pm

    carvingCode

    380 posts

    I hate to say it, but this may not be possible. I’ve had problems trying to do similar things and have always run into the ‘parse order’ issue or the fact that some modules, like {exp:query} don’t make use of other modules’ variables.

    Wish you luck in finding a solution.

    Randy

  • #5 / Apr 06, 2012 4:23pm

    Kevin Smith

    4784 posts

    Since it looks like you’re working on solving this yourself, kokako, I’ll be glad to mark this thread as resolved. If any new questions come up as you’re working on it, please feel free to open up a new thread and ask!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases