Rimi Posted December 1, 2012 Share Posted December 1, 2012 Can we have documentation on how to use cookies the way IPS uses them? :3 inb4marchermakesfunofme Link to comment Share on other sites More sharing options...
Mikey B Posted December 2, 2012 Share Posted December 2, 2012 Can we have documentation on how to use cookies the way IPS uses them? :3 inb4marchermakesfunofme To be honest there's not much to write about them. You have IPSCookie::get() and IPSCookie::set(). So an example: IPSCookie::set('Rimi', 'value goes here', 0, 999); $cookie = IPSCookie::get('Rimi'); There's a class reference here: http://community.invisionpower.com/resources/doxygen/class_i_p_s_cookie.html :smile: Link to comment Share on other sites More sharing options...
Rimi Posted December 2, 2012 Author Share Posted December 2, 2012 This site is lagging so bad right now so I couldn't edit my post. I wanted to add that I understand how to set and get cookies with IPSCookie, it's actually pretty simple. But I like Brandon's documentation because it's very well explained is all and I would like to read up on it to see how exactly is the correct way of approaching cookies. I also wanted to add that my request was more focused on protoype cookies than js cookies. I'm completely lost in prototype. A documentation similar to the one for modal popups would be appreciated. You're right that the php docs cover IPSCookie fairly well and I can figure it out myself from that. But I'm lost on prototype cookies and that's what I want to use right now. Link to comment Share on other sites More sharing options...
Rhett Posted December 2, 2012 Share Posted December 2, 2012 I eat mine with a big glass of cold milk! it's the only way to properly do cookies! :) Link to comment Share on other sites More sharing options...
Rimi Posted December 2, 2012 Author Share Posted December 2, 2012 I eat mine with a big glass of cold milk! it's the only way to properly do cookies! :) The get method should be renamed gotMilk.... Link to comment Share on other sites More sharing options...
bfarber Posted December 3, 2012 Share Posted December 3, 2012 http://community.invisionpower.com/resources/guides.html/_/advanced-and-developers/miscellaneous/handling-cookies-r253 Link to comment Share on other sites More sharing options...
Rimi Posted December 3, 2012 Author Share Posted December 3, 2012 Beautiful, and more information than what I was looking for which was also very helpful. Thanks so much! Link to comment Share on other sites More sharing options...
bfarber Posted December 4, 2012 Share Posted December 4, 2012 I guess no one but Rimi realizes that I was serious when I said to tell us explicitly what they want to see documented. I don't have time to sit and write documentation all day, but putting up an article once a day or once every other day is easy enough - when I know exactly what to focus on... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.