MyBB Community Forums

Full Version: GoMobile without Sidebox
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I am using Sidebox by Nayar (http://mods.mybb.com/view/sidebox) in my forum, but I would like to deactivate it when an user is viewing the forum using the GoMobile (http://mybbgm.com/) template in order to save screen space in mobile devices.

My default template ID is 2, and the GoMobile template ID is 3.

Is there any modification or something like that I could do?

Thank you very much in advance.

Cheers,
Joan
need to modify the plug-in ; something similar to
if $mybb-->[user('style')] != 3
then execute sidebox display code
Thank you very much for your reply.

The problem is that I already tried that but that variable doesn't contain anything (even when I write global $mybb in the function) so I can't modify Sidebox code successfully. It seems it's executed before knowing the user theme Sad
=bump=
there must be a sidebox variable in the templates for the theme somewhere?