This question may be related to a resolved thread.
I’m running an MSM site with multiple distinct site that each have a forum. Is there any way to use ONLY the forum theme in the default preferences and not allow for user choice?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
March 07, 2011 11:54pm
Subscribe [2]#1 / Mar 07, 2011 11:54pm
This question may be related to a resolved thread.
I’m running an MSM site with multiple distinct site that each have a forum. Is there any way to use ONLY the forum theme in the default preferences and not allow for user choice?
#2 / Mar 08, 2011 4:02am
You would need to edit the forum files directly and remove the drop down menu, or maybe you could use CSS to hide it.
#3 / Mar 08, 2011 9:06am
Thanks for the assist, Lee.
Adam - is that enough information to get you started?
#4 / Mar 08, 2011 1:04pm
This is what I did for the first forum / theme and it worked just fine. I removed the theme chooser code out of the forum footer template, and also removed all the other unused themes.
The issue really has to do with the fact that themes are set on a user level. So for me as an admin user, if I’m logged out on the second forum, it displays the appropriate theme (the chosen default theme for that board). The second I log in, it remembers my last choice of theme and displays the theme from the first site.
Basically, I need a way to set the theme to the appropriate one when someone logs in, not just remove their ability to choose a theme.
#5 / Mar 08, 2011 5:22pm
Hmmm… this really sounds like more of a feature request. You’d need some sort of add-on that checked the site and some sort of configuration item, and write to their user record. Are you wanting to take away their ability to choose? What happens if they are logged into both sites at the same time, and visiting the forum?
#6 / Mar 08, 2011 5:37pm
It may well be a feature request, but if it can’t be done now it really limits what you can do with MSM and the discussion forum module.
These two sites are running on the MSM so that administrators have an easy time with management, but they are two distinct sites, with no crossover. End users should definitely not be able to choose between the themes or have any knowledge of the other site’s existence. It would be like visiting a Nike forum and choosing the Adidas theme.
I was hoping there was some kind of config value that could be set in the index.php file to make this happen, but it seems like that is not the case.
It isn’t a huge deal for end users as new registrants will have the correct theme applied since it will set them to the default theme, and they won’t have an option of switching. Unfortunately, what I’ll probably end up having to do is create a new set of admin accounts for the second site so the correct theme will be applied there.
#7 / Mar 09, 2011 8:23am
One other thing you may want to try (and this is just an idea, not tested) would be to set the secondary site to have its own theme files. You only make one theme file per site, and voila, there is no choosing going on. Again, I haven’t tested it, just posting it as a possible idea.
#8 / Mar 09, 2011 1:26pm
I just tested this out and you are correct. Each defaults to the proper theme, logged in or not. I’ll just have to remember to update both cp theme folders when I don an update, but that’s a small price to pay. Thanks Sue!
#9 / Mar 09, 2011 3:07pm
Yeah! Glad that solution will work for you.. Don’t hesitate to post again as needed.