Third Party Contributions => API Based Plugins => Topic started by: bouba on February 28, 2010, 06:05:23 AM
Title: Select skin plugin
Post by: bouba on February 28, 2010, 06:05:23 AM
Hi all, this is the plugin to change the RC skin on login (now i use a GET var in the page to select the skin, like //url?skin=mobile or //url?skin=default). I read this GET var and i set a hidden field in the login html page. Then, in "login_after" i read this hidden field and I select the right skin.
/** * skin Selector on Logon Page * * Switch skin from Logon Page */
the problem apper if I try to change the skin on "startup". If i don't change the login page skin, it works ( comment out $this->add_hook('startup', array($this, 'switch_skin_before_login')); ). The problem is:
without this 2 lines, the login skin doesn't change and RC load the right skin for the webmail. With this 2 lines, RC use the right skin only if i reload the page (F5). How can i use this 2 lines to change the login skin and tell RC to use the right skin without reload the page?
thanks Marco
Title: Select skin plugin
Post by: rosali on September 16, 2010, 01:13:28 AM