2017-07-26, 09:24 AM
Hi everyone. Recently I was doing some stuff on my forum like adding sidebar. It is maintained by plugin that is getting some data (like time online) from database and representing it in "top x" form. It uses it's own templates in global (not theme ones) and when I wanted to add collapse and expand functionality it worked. But there is only one problem - it's not saving state of collapsed sidebar items. I was checking and yes, my forum adds information to cookie file, even adds it to $collapsed, but plugin seems to not be able to reach $collapsed in it. Maybe it's because I use wrong hooks?
Does someone know when $collapsed is used internally by MyBB to read collapsed states? Which hook I should use to get this information? I was working on it for 3 days now and still no luck, so I decided to ask here, maybe someone know how to read that variable in plugin. Thanks for any help or advice.
Does someone know when $collapsed is used internally by MyBB to read collapsed states? Which hook I should use to get this information? I was working on it for 3 days now and still no luck, so I decided to ask here, maybe someone know how to read that variable in plugin. Thanks for any help or advice.