* *

Recent Topics

Members
  • Total Members: 65
  • Latest: nidec
Stats
  • Total Posts: 10568
  • Total Topics: 1367
  • Online Today: 20
  • Online Ever: 498
  • (Nov 16, 19, 10:52:57 AM)
Users Online
Users: 0
Guests: 18
Total: 18

CZ Themes





News

Want more site traffic .. » Showcase « Your Crip Theme!!

Supported and Hosted By Buildz Hosting

Like us on Facebook! - Follow us on Twitter! - Follow us on Instagram!

Author Topic: CleanTek For 2.0.x Updated  (Read 626 times)

0 Members and 1 Guest are viewing this topic.

Offline Skhilled

  • CZ Admin
  • Sr. Member
  • *
  • Posts: 377
  • Gender: Male
    • Crip Zone Themes
CleanTek For 2.0.x Updated
« 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
« Last Edit: Oct 28, 19, 10:56:59 AM by Skhilled »

Offline Skhilled

  • CZ Admin
  • Sr. Member
  • *
  • Posts: 377
  • Gender: Male
    • Crip Zone Themes
Re: CleanTek For 2.0.x Updated
« Reply #1 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:

Offline Scrubmeister

  • Site Admin
  • Hero Member
  • *
  • Posts: 624
  • Gender: Male
  • Retired Commercial Carpet Cleaner
Re: CleanTek For 2.0.x Updated
« Reply #2 on: Oct 31, 19, 08:15:59 AM »
Nice! Thanks to all for the update.  :)

Offline Skhilled

  • CZ Admin
  • Sr. Member
  • *
  • Posts: 377
  • Gender: Male
    • Crip Zone Themes
Re: CleanTek For 2.0.x Updated
« Reply #3 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 /]';
  } */