Skip to:
Content
Pages
Categories
Search
Top
Bottom

Finding Multiple Issues With $bp global variable..

  • please correct me if I’m wrong, but in my post yesterday someone advised me to look at bp-corebp-core-signup.php to look for a specific object ($bp->signup) that is heavily involved with the registration process so I can study how it works.

    ..only to find that `$bp->signup`, doesn’t exist…and neither does `$bp->site_options`…

    In other words, there’s a reference to a “signup” object that I don’t see created anywhere and there’s a reference to a “registration” key that isn’t in the site_options array for the global variable…

    ..can anyone explain this to me…?

Viewing 4 replies - 1 through 4 (of 4 total)

  • Anonymous User 96400
    Inactive

    @anonymized-96400

    Well, you haven’t looked apparently :) Line 25 in that file says `$bp->signup->step = ‘request-details’;` for example. Why don’t you just search for it. A quick search in the BP plugin folder for `$bp->site_options` returned around 20 hits.

    Okay…

    please excuse my amateurism, but if you’re indirectly saying that you can create an object “signup” without creating a class for it, this is a new lesson for me..(?)…( I’m fairly new to OOP :-) )…

    My next question is how did you search for `$bp->site_options`?…I’m thinking this way may be new to me as well…


    Anonymous User 96400
    Inactive

    @anonymized-96400

    Whatever programme you use to look at code (netbeans, dreamweaver,textmate,…) should have a search function that lets you search both files and folders.

    There’s no class for the $bp object neither. It’s being created in bp_core_setup_globals(). When you dump $bp onto your screen you’ll see the stdClass, which is the pseudo-class PHP uses for non-initialized objects.

    okay…I think I can figure it out from here…thanks..

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Finding Multiple Issues With $bp global variable..’ is closed to new replies.
Skip to toolbar