Cripzone SMF Themes Site

All Things Public => Demos & Downloads => Topic started by: Skhilled on Oct 28, 19, 07:54:38 AM

Title: CleanTek For 2.0.x Updated
Post by: Skhilled on Oct 28, 19, 07:54:38 AM
CleanTek - this theme has been updated to include the session timeout fix:

https://www.jpr62.com/theme/index.php?action=downloads;sa=view;down=65 (https://www.jpr62.com/theme/index.php?action=downloads;sa=view;down=65)
Title: Re: CleanTek For 2.0.x Updated
Post by: Skhilled on Oct 30, 19, 09:08:33 AM
Thanks to GigaWatt, Support Specialist from SMF for the code for the search at the top right!  :2up:
Title: Re: CleanTek For 2.0.x Updated
Post by: Scrubmeister on Oct 31, 19, 08:15:59 AM
Nice! Thanks to all for the update.  :)
Title: Re: CleanTek For 2.0.x Updated
Post by: Skhilled on Oct 31, 19, 10:16:23 AM
Code to remove the top right login (login2):

In index.template.php, find this around line 198:

Code: [Select]
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
 else
  {
 echo sprintf($txt['welcome_guest'], $txt['guest_title']);

   echo '
 <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
 <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
 <input type="text" name="user"  size="10" />
 <input type="password" name="passwrd"  size="10" />
 <input type="submit" value="', $txt['login'], '" class="button_submit" />
 <input type="hidden" name="hash_passwrd" value="" /><input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
   </form>', $context['current_time'],'[br /]';
  }


Change it to this:

Code: [Select]
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
/* else
  {
 echo sprintf($txt['welcome_guest'], $txt['guest_title']);

   echo '
 <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
 <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
 <input type="text" name="user"  size="10" />
 <input type="password" name="passwrd"  size="10" />
 <input type="submit" value="', $txt['login'], '" class="button_submit" />
 <input type="hidden" name="hash_passwrd" value="" /><input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
   </form>', $context['current_time'],'[br /]';
  } */