Author Topic: Guests  (Read 54 times)

timberguy

  • Newbie
  • *
  • Posts: 34
  • Karma: 0
Guests
« on: December 22, 2019, 11:53:02 am »
Is there a way to set the theme so guests or anyone that deletes browser cache, to NOT default to the smf 4mobile theme?  I use it for an option, but I don't want it as a default for guests, as the default theme is pretty mobile friendly as is. I keep the smf 4mobile theme as we have a small handful of members that really prefer it.

vbgamer45

  • Administrator
  • *****
  • Posts: 154
  • Karma: 3
Re: Guests
« Reply #1 on: December 22, 2019, 12:39:22 pm »
Can be done just requires an edit to this line after installing the mod in sources/load.php

Code: [Select]
if (($is_mobile && !isset($_COOKIE['smf4m_mode'])) || (isset($_COOKIE['smf4m_mode']) && $_COOKIE['smf4m_mode'] == 'mobile'))
Change to
Code: [Select]
if (($is_mobile && $user_info['is_guest'] == false && !isset($_COOKIE['smf4m_mode'])) || (isset($_COOKIE['smf4m_mode']) && $_COOKIE['smf4m_mode'] == 'mobile'))