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

Need help with two plugins.

Discussion in 'XenForo Questions and Support' started by arcaneex, Aug 6, 2012.

  1. arcaneex

    arcaneex Active Member

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I haven't used either of those addons. But if those functions aren't already included with the addons then they would have to be added by the author. You should post in the discussion threads for those addons. For example, adding bump limits would require some sort of logging to be implemented in the addon.
     
  3. arcaneex

    arcaneex Active Member

    How do I make a plugin set cookies? The support for the steam plugin is dead..
     
  4. ragtek

    ragtek Guest

    JavaScript:
    Code:
    XenForo.setCookie
     
            /**
            * Sets a cookie.
            *
            * @param string cookie name (escaped)
            * @param mixed cookie value
            * @param string cookie expiry date
            *
            * @return mixed cookie value
            */
            setCookie: function(name, value, expires)
     
    
    php:

    PHP:
    XenForo_Helper_Cookie::setCookie
     
     
        
    /**
        * Sets a cookie with XenForo-specific options.
        *
        * @param string $name Name of the cookie
        * @param string $value Value of the cookie
        * @param integer $lifetime The number of seconds the cookie should live from now. If 0, sets a session cookie.
        * @param boolean $httpOnly Whether the cookie should be available via HTTP only
        * @param boolean|null $secure Whether the cookie should be available via HTTPS only; if null, value is true if currently on HTTPS
        *
        * @return boolean True if set
        */
        
    public static function setCookie($name$value$lifetime 0$httpOnly false$secure null)
        {
     
    arcaneex and Chris D like this.
  5. arcaneex

    arcaneex Active Member

    Thanks , can you tell me how to integrate it to a plugin? Would be more than awesome.
     
  6. ragtek

    ragtek Guest

    XenForo_Helper_Cookie::setCookie('your_cookie_id', 'foobar');



    and you can read it via

    XenForo_Helper_Cookie::getCookie('your_cookie_id ');
     
    arcaneex likes this.
  7. arcaneex

    arcaneex Active Member

    Thanks , but I've no idea what to do with it :I
    Where do I paste in or add?
     
  8. arcaneex

    arcaneex Active Member

    Anyone can help?
     
  9. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page