shwepsi hat geschrieben:um die Variable READ_MORE_LINK zu aktivieren musst du:
$template->assign_block_vars('articles.READ_MORE_LINK', DEIN ARRAY/Variable);
in der php angeben, dann sollte es funktionieren
Wie meinst du das:
$template->assign_block_vars('articles.READ_MORE_LINK', DEIN ARRAY/Variable);
DEIN ARRAY/Variable ?
Nun habe den switch-code mal wo anders in der portal_body.tpl eingefügt da funtz es gäste sehen die box nicht mehr und sobald man eingeloggt ist sieht man die Box wieder...
Ich vermuten mal das er sich mit diese code bekriegt:
Code: Alles auswählen
<!-- BEGIN articles -->
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td class="cat">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left" class="topictitle">{articles.L_TITLE_ICON} <a href="{INDEX_FILE}?topic_id={articles.ID}">{articles.L_TITLE}</a></td>
<td align="right">
<a href="posting.php?mode=reply&t={articles.ID}"><img src="{NEWS_REPLY_IMG}" alt="{L_REPLY_NEWS}" title="{L_REPLY_NEWS}" /></a>
<a href="printview.php?t={articles.ID}&start=0" target="_blank"><img src="{NEWS_PRINT_IMG}" alt="{L_PRINT_NEWS}" title="{L_PRINT_NEWS}" /></a>
<a href="tellafriend.php?topic={articles.L_TITLE}&link={TELL_LINK}{articles.ID}"><img src="{NEWS_EMAIL_IMG}" alt="{L_EMAIL_NEWS}" title="{L_EMAIL_NEWS}" /></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="row2" valign="middle" height="18"><span class="gensmall"><a href="{articles.U_COMMENT}"><img src="{MINIPOST_IMG}"></a>{L_POSTED} {L_WORD_ON} {articles.POST_DATE} {L_WORD_BY} {articles.L_POSTER}</span></td>
</tr>
<tr>
<td class="row1" valign="top" width="100%">
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="left" valign="top" />
<td align="left" valign="top" width="100%">
{articles.BODY}{articles.ATTACHMENTS}<br /><br />
<span class="gensmall">{articles.READ_MORE_LINK}</span>
</td>
</tr>
</table>
</td>
<tr>
<td class="row3" valign="middle" align="center" height="18">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left" class="row3"><span class="gensmall">{L_NEWS_SUMMARY} <b><a href="{articles.U_VIEWS}">{articles.COUNT_VIEWS}</b> {L_NEWS_VIEWS}</a> {L_NEWS_AND}<b> <a href="{articles.U_COMMENT}">{articles.COUNT_COMMENTS}</b> {L_NEWS_COMMENTS}</a>.</span></td>
<td align="right">
<span class="gensmall"><a href="{articles.U_POST_COMMENT}">{L_POST_COMMENT}</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<!-- END articles -->
Aber wenn man <!-- BEGINN articles --> & <!-- END articles --> entfernt werde die News überhaupt nicht mehr angezeigt.
In die Willkommen-Code <!-- BEGIN welcome_text --> & <!-- END welcome_text --> da konnte ich den Code entferne da ich eh nicht über ACP die Willkommensnachricht schreibe.
Habe für Gäste ein andere Nachricht als für Mitglieder dort mit:
<!-- BEGIN switch_user_logged_in bzw. out -->
<!-- END switch_user_logged_in bzw. _out -->
gemacht, also bekriegen sich die 2 Codes, oder sind es die Variable die meintes?
diese eine Variable die den "Mehr lesen" Link ausgibt steht in der includes/news.php
Nur ein auszug davon weil er lang ist:
Code: Alles auswählen
$this->setBlockVariables( 'articles', array(
'L_TITLE' => $article['topic_title'],
'L_TITLE_ICON' => get_icon_title($article['topic_icon'], 0, $article['topic_type']).' ',
'ID' => $article['topic_id'],
'KEY' => $article['article_key'],
'DAY' => $this->getDay( $article['topic_time'] ),
.
.
.
.
.
.
.
'READ_MORE_LINK' => ($show_abstract && $trimmed) ? '<a href="' . $this->config['news_base_url'] . $this->config['news_index_file'] . '?topic_id=' . $article['topic_id'] . '" alt="' . $lang['Read_More'] . '">' . $lang['Read_More'] . '</a>' : ''
) );
Oki über mehr Info wie es meintes das es geht wäre ich sehr dankbar...
M.f.G SuesseMaus28884