Seite 1 von 1
Thema immer als Ankündigung schreiben
Verfasst: 24.08.2005 16:12
von vinci
Ist es möglich, dass ein Thema standartgemäß als Ankündigung geschrieben wird? Also entweder das "ankündigung" immer markiert ist oder, dass normal und ankündigung komplett verschwinden und es standartgemäß als ankündigung geschrieben wird?
verständlich`?
bitte um hilfe
merci beaucoup
grüße
edit: hab in der posting.php zwar schon ne idee .. aber bin mir da nicht so sicher und warte auf professionelle-php-hilfe

Verfasst: 24.08.2005 16:20
von vinci
Code: Alles auswählen
if ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) )
{
$template->assign_block_vars('switch_type_toggle', array());
if( $is_auth['auth_sticky'] )
{
$topic_type_toggle .= '<input type="radio" name="topictype" value="' . POST_STICKY . '"';
if ( $post_data['topic_type'] == POST_STICKY || $topic_type == POST_STICKY )
{
$topic_type_toggle .= ' checked="checked"';
}
$topic_type_toggle .= ' /> ' . $lang['Post_Sticky'] . ' ';
}
if( $is_auth['auth_announce'] )
{
$topic_type_toggle .= '<input type="radio" name="topictype" value="' . POST_ANNOUNCE . '"';
if ( $post_data['topic_type'] == POST_ANNOUNCE || $topic_type == POST_ANNOUNCE )
{
$topic_type_toggle .= ' checked="checked"';
}
$topic_type_toggle .= ' /> ' . $lang['Post_Announcement'] . ' ';
}
if ( $topic_type_toggle != '' )
{
$topic_type_toggle = $lang['Post_topic_as'] . ': <input type="radio" name="topictype" value="' . POST_NORMAL .'"' . ( ( $post_data['topic_type'] == POST_NORMAL || $topic_type == POST_NORMAL ) ? ' checked="checked"' : '' ) . ' /> ' . $lang['Post_Normal'] . ' ' . $topic_type_toggle;
}
}
normal und wichtig entfernen ... sodass nur noch announcement in der if-anweisung drin ist .. müsste klappen oder?
Verfasst: 24.08.2005 17:55
von WEEDman
sorry das ich dumm frage... aber was willst du damit erreichen
? 
Verfasst: 25.08.2005 13:08
von vinci
ich benutze ankündigungen nicht für den vorhergesehenen zweck.
mit der announce suite lassen sich ankündigungen auf dem index darstellen. d.h. immer der neuste post wird auf dem index angezeigt. sobald alles läuft, hau ich hier mal nen link rein.
stay tuned

Verfasst: 25.08.2005 13:32
von vinci
habs nun - wens interessiert:
Code: Alles auswählen
SUCHE:
$topic_type = ( !empty($HTTP_POST_VARS['topictype']) ) ? intval($HTTP_POST_VARS['topictype']) : POST_NORMAL;
--------------------------------------------------------------------------------------
ERSETZE MIT:
$topic_type = ( !empty($HTTP_POST_VARS['topictype']) ) ? intval($HTTP_POST_VARS['topictype']) : POST_ANNOUNCE;
that's it
