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.

{ip_address} variable inaccessible

October 01, 2010 2:45pm

Subscribe [3]
  • #1 / Oct 01, 2010 2:45pm

    Adam Khan

    319 posts

    This question may be related to a resolved thread.

    The fact that the {ip_address} variable is inaccessible within the module—seems to me like a bug to be fixed. Using the $SESS variable and putting my template into PHP Input mode means I have to do a lot of awkwardness.

  • #2 / Oct 01, 2010 3:28pm

    Ingmar

    29245 posts

    I think it’s just a parse order issue. We have the same issue with the session class in other modules, like the Query module. Personally I’d think it’s more of a Feature Request.

  • #3 / Oct 04, 2010 3:08pm

    Adam Khan

    319 posts

    I’ve add a note in the docs repeating the solution. But I added them to EE2’s docs, not EE1’s, and I’m not sure if the issue still applies for EE2. Ah me.

  • #4 / Oct 04, 2010 3:24pm

    Ingmar

    29245 posts

    Yes it does, although the syntax is slightly different:

    $this->EE->session->userdata['ip_address']

    See here for more.

  • #5 / Oct 04, 2010 3:34pm

    Adam Khan

    319 posts

    Ah, sorry. I can’t edit that User Contributed Note now.

  • #6 / Oct 05, 2010 2:04am

    John Henry Donovan

    12339 posts

    Adam,

    I requested that that comment be moved for you. We will let you know when it is taken care of.

  • #7 / Oct 06, 2010 2:22am

    John Henry Donovan

    12339 posts

    Adam,

    there was no way to move your comment so we request that you make the comment again in the legacy docs.
    We have removed it from the current docs/

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

ExpressionEngine News!

#eecms, #events, #releases