News:

Keeping Crip's dream alive is our mission! :)

 

Recent Topics

Members
  • Total Members: 155
  • Latest: TMXXX
Stats
  • Total Posts: 10,782
  • Total Topics: 1,380
  • Online today: 163
  • Online ever: 879
  • (Jan 21, 20, 05:49:15 PM)
Users Online
Users: 0
Guests: 34
Total: 34

CleanTek For 2.0.x Updated

Started by Skhilled, Oct 28, 19, 07:54:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Skhilled

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

Skhilled

Thanks to GigaWatt, Support Specialist from SMF for the code for the search at the top right!  :2up:

Scrubmeister

Nice! Thanks to all for the update.  :)

Skhilled

Code to remove the top right login (login2):

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

// 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:

// 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 /]';
  } */