1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Input parameters like 't' 'o' etc.

Discussion in 'XenForo Development Discussions' started by guiltar, Dec 17, 2011.

  1. guiltar

    guiltar Well-Known Member

    Hello dear developers!
    Could you explain when appear such input params like 't','o' and what do they mean?
    I'm writing an external authorization similar to facebok and found the code:
    PHP:
    $fbToken $this->_input->filterSingle('t'XenForo_Input::STRING);
    When it has a not null value? What pieces of code can put a value to this varieble 't'?
     
  2. Onimua

    Onimua Well-Known Member

    Looking over the code, it looks like it's defined in a redirect after the user clicked the confirmation registering with Facebook, as above where that line appears is:
    PHP:
                return $this->responseRedirect(
                    
    XenForo_ControllerResponse_Redirect::RESOURCE_CANONICAL,
                    
    XenForo_Helper_Facebook::getFacebookRequestUrl($fbRedirectUri)
                );
    If the variable doesn't exist in the parameters, it will return null otherwise it will proceed. I believe t refers to token, as in fb_token that's used elsewhere in that script, though I don't see an instance of o.

    I'm not 100% sure but it looks like that is what happens.
     
  3. guiltar

    guiltar Well-Known Member

    Do You mean it becomes defined in redirects? I can't see where exactly.
    It definitely refers to token. But there are no inputs with name 't' in templates and search 't' over the code gives only the lines where it parsed.
    'o' and others appear in search handlers.
     
  4. Onimua

    Onimua Well-Known Member

    It's in the returning URL, not defined in a form.
     
  5. guiltar

    guiltar Well-Known Member

    Thank's I will try to find it.
     
  6. guiltar

    guiltar Well-Known Member

    Again have seen
    PHP:
        public function getSearchFormControllerResponse(XenForo_ControllerPublic_Abstract $controllerXenForo_Input $input, array $viewParams)
        {
            
    $params $input->filterSingle('c'XenForo_Input::ARRAY_SIMPLE);
    and still no idea where it comes from :(
     
  7. Bob

    Bob Well-Known Member

    look at /library/XenForo/ControllerPublic/Search.php
     
    guiltar likes this.
  8. guiltar

    guiltar Well-Known Member

    Thanks! Found all of them in search
     

Share This Page