Hello,
Could somebody please help?
I would like to users be logged in until they log out (or when they close browser) - i mean i would not like to have logged in for 60 min, for a day, week, month etc.
Could somebody please help?
drb
Open Themes/<theme_name>/index.template.php.
Find:
<select name="cookielength">
<option value="-1" type="hidden" />
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="43200">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
Change to:
<input type="hidden" name="cookielength" value="-1" />
Open Themes/default/Login.template.php.
Find:
<td align="right"><b>', $txt[497], ':</b></td>
<td><input type="text" name="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '"', $context['never_expire'] ? ' disabled="disabled"' : '', ' /></td>
</tr><tr class="windowbg">
<td align="right"><b>', $txt[508], ':</b></td>
<td><input type="checkbox" name="cookieneverexp"', $context['never_expire'] ? ' checked="checked"' : '', ' class="check" onclick="this.form.cookielength.disabled = this.checked;" /></td>
Change to:
<td colspan="2"><input type="hidden" name="cookieneverexp" value="1" /></td>
How do I modify files? (http://www.simplemachines.org/community/index.php?topic=24110.0)