Today i show you how change theme when its Day/Night. Its very simply ! First you need to have your 2 themes installed and you need to know the id of your theme.
Now open global.php
Find :
Code:
// This user has a custom theme set in their profile if(isset($mybb->user['style']) && intval($mybb->user['style']) != 0) { $loadstyle = "tid='".$mybb->user['style']."'"; }