I have a default themes folder on my parent domain such as foo.bar/themes/default/
when a user registers i make a sub domain for them like bob.foo.bar how can I logically point to the default themes folder on my parent domain? My idea is that if they choose to have a custom theme for that theme to be uploaded to their sub domain folder and then have smarty point to it.
I know how to do this IF and only IF I have control over sub domain via PHP. But right now in cPanel when a sub domain is made it makes the vhosts files so that it goes directly to their document_root bypassing any of my PHP scripts that would control how the smarty theme paths are handled.
What would be a good solution for this?
if its a linux system, you could just make a script that creates links to the default theme.