[Snippet] Guests can only read First Post (de)

[Snippet] Guests can only read First Post[/size]
Dieses Snippet blendet für Gäste alle Posts, außer dem Ersten aus.
In den ausgeblendeten Posts wird eine Aufforderung zum Registrieren angezeigt
öffne
viewtopic.php
finde
dahinter füge ein
öffne
language/de/viewtopic.php
finde
dahinter füge ein
öffne
styles/prosilver/template/viewtopic_body.html
finde
ersetze mit
öffne
styles/subsilver2/template/viewtopic_body.html
finde
ersetze mit
alle board-, style und browser-caches leeren
Dieses Snippet blendet für Gäste alle Posts, außer dem Ersten aus.
In den ausgeblendeten Posts wird eine Aufforderung zum Registrieren angezeigt
öffne
viewtopic.php
finde
- Code: Select all
$postrow = array(
dahinter füge ein
- Code: Select all
'S_FIRST_POST_TRUE' => ($topic_data['topic_first_post_id'] == $row['post_id']) ? true : false,
öffne
language/de/viewtopic.php
finde
- Code: Select all
$lang = array_merge($lang, array(
dahinter füge ein
- Code: Select all
'FIRST_POST_ONLY' => 'Registriere Dich um hier mitzulesen',
öffne
styles/prosilver/template/viewtopic_body.html
finde
- Code: Select all
{postrow.MESSAGE}
ersetze mit
- Code: Select all
<!-- IF postrow.S_FIRST_POST_TRUE -->
{postrow.MESSAGE}
<!-- ELSEIF not postrow.S_FIRST_POST_TRUE and not S_USER_LOGGED_IN -->
<li class="icon-register"><a href="{U_REGISTER}">{L_FIRST_POST_ONLY}</a></li>
<!-- ELSEIF not postrow.S_FIRST_POST_TRUE and S_USER_LOGGED_IN -->
{postrow.MESSAGE}
<!-- ENDIF -->
öffne
styles/subsilver2/template/viewtopic_body.html
finde
- Code: Select all
{postrow.MESSAGE}
ersetze mit
- Code: Select all
<!-- IF postrow.S_FIRST_POST_TRUE -->
{postrow.MESSAGE}
<!-- ELSEIF not postrow.S_FIRST_POST_TRUE and not S_USER_LOGGED_IN -->
<a href="{U_REGISTER}"><img src="{T_THEME_PATH}/images/icon_mini_register.gif" width="12" height="13" alt="*" />{L_FIRST_POST_ONLY}</a>
<!-- ELSEIF not postrow.S_FIRST_POST_TRUE and S_USER_LOGGED_IN -->
{postrow.MESSAGE}
<!-- ENDIF -->
alle board-, style und browser-caches leeren