In Joomla! v1.5.15 I would like to add some PHP code that can detect what the active template is, and reset some of the template parameter values based on information retrieved from the database, and even on some occasions, set the active template to something else. Can anyone give me some pointers...