Differences
This shows you the differences between the selected revision and the current version of the page.
fi:punbb13:upottaminen 2009/06/07 03:01 | fi:punbb13:upottaminen 2020/02/06 11:04 current | ||
---|---|---|---|
Line 288: | Line 288: | ||
$item_status['closed'] = 'closed'; | $item_status['closed'] = 'closed'; | ||
} | } | ||
- | // Does this topic contain posts we haven't read? If so, tag it accordingly. | + | // Onko aiheessa lukemattomia viestejä? Jos on, laitetaan sille asianmukaiset avainsanat. |
if (!$forum_user['is_guest'] && $cur_set['last_post'] > $forum_user['last_visit'] && (!isset($tracked_topics['topics'][$cur_set['tid']]) || $tracked_topics['topics'][$cur_set['tid']] < $cur_set['last_post']) && (!isset($tracked_topics['forums'][$cur_set['forum_id']]) || $tracked_topics['forums'][$cur_set['forum_id']] < $cur_set['last_post'])) | if (!$forum_user['is_guest'] && $cur_set['last_post'] > $forum_user['last_visit'] && (!isset($tracked_topics['topics'][$cur_set['tid']]) || $tracked_topics['topics'][$cur_set['tid']] < $cur_set['last_post']) && (!isset($tracked_topics['forums'][$cur_set['forum_id']]) || $tracked_topics['forums'][$cur_set['forum_id']] < $cur_set['last_post'])) | ||
{ | { | ||
Line 324: | Line 324: | ||
</code> | </code> | ||
- | ==== Login form outside the forum ==== | + | ==== Kirjautumislomake keskustelualueen ulkopuolella ==== |
<code php><?php | <code php><?php | ||
- | // Define the path to the forum root | + | // Määritä keskustelualueen päähakemisto |
define('FORUM_ROOT', './forum/'); | define('FORUM_ROOT', './forum/'); | ||
require FORUM_ROOT.'include/common.php'; | require FORUM_ROOT.'include/common.php'; | ||
- | // Where will we go after login? | + | // Mihin mennään kirjautumisen jälkeen? |
- | $forum_page['redirect_url'] = 'http://your_site.com/forum/'; | + | $forum_page['redirect_url'] = 'http://sivustosi.fi/forum/'; |
$forum_page['form_action'] = forum_link($forum_url['login']); | $forum_page['form_action'] = forum_link($forum_url['login']); | ||
Line 347: | Line 347: | ||
<?php echo implode("\n\t\t", $forum_page['hidden_fields'])."\n" ?> | <?php echo implode("\n\t\t", $forum_page['hidden_fields'])."\n" ?> | ||
- | Username: | + | Käyttäjätunnnus: |
<input type="text" id="fld1" name="req_username" value="" /> | <input type="text" id="fld1" name="req_username" value="" /> | ||
<br /> | <br /> | ||
- | Password: | + | Salasana: |
<input type="password" id="fld2" name="req_password" value="" /> | <input type="password" id="fld2" name="req_password" value="" /> | ||
<br /> | <br /> | ||
<input type="checkbox" id="fld3" name="save_pass" value="1" /> | <input type="checkbox" id="fld3" name="save_pass" value="1" /> | ||
- | <label for="fld3">Log me in automatically each time I visit.</label> | + | <label for="fld3">Kirjaa minut sisään automaattisesti.</label> |
<br /> | <br /> | ||
- | <input type="submit" name="login" value="Login" /> | + | <input type="submit" name="login" value="Kirjaudu sisään" /> |
</form> | </form> | ||
</code> | </code> |