MyBB Community Forums

Full Version: Theme based on redirect
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
If I posted this in the wrong section then direct it to the appropriate section.

I am interested to know if it is possible to somehow be able to, through a plugin if possible, set the default theme based on the way people connect to your forum?

If people connect from community.mybb.com all guests will be one theme while users connecting directly connecting through their browser favorites (as guest) will see a different theme.
if http_referer then
theme = 1
else
theme = 2

Something along those lines, if I understand your post correctly.
With a plugin, it is possible as I use a similar method with my UA Theme plugin that changes the theme based on the browser's user agent string. All you'd really need to do is change the plugin to look at referrer instead of user agent.

Too bad the location of the various plugin hooks make it impossible to override a per-forum theme override.
Is there a willing member who can implement the necessary changes?
Why would you want this?
It's part of my strategy and I NEED this.
Bump.