[ externes Bild ]
jemand ahnung wie ich das wie beim attachment mod machen kann?
Beim attachment mod wars einfach eine einstellung im acp. bei den unfragen isses sicher was an der tpl XD und von html ich noch zu wenig ahnung

Code: Alles auswählen
Hide_pollblock_per_default_on_new_topic
#
#-----[ OPEN ]-----
#
posting.php
#
#-----[ FIND ]-----
#
$params = array('submit' => 'post', 'preview' => 'preview', 'delete' => 'delete', 'poll_delete' => 'poll_delete', 'poll_add' => 'add_poll_option', 'poll_edit' => 'edit_poll_option', 'mode' => 'mode');
#
#-----[ IN-LINE FIND ]-----
#
);
#
#-----[ IN-LINE BEFORE, ADD ]-----
#
, 'open_poll_box' => 'open_poll_box'
#
#-----[ FIND ]-----
#
if( $refresh || isset($HTTP_POST_VARS['del_poll_option']) || $error_msg != '' )
#
#-----[ REPLACE WITH ]-----
#
if( $refresh || isset($HTTP_POST_VARS['del_poll_option']) || $error_msg != '' || $open_poll_box )
#
#-----[ FIND ]-----
#
if( !empty($poll_options) )
{
#
#-----[ AFTER, ADD ]-----
#
$want_poll = 1;
$open_poll_box = TRUE;
#
#-----[ FIND ]-----
#
$template->assign_var_from_handle('POLLBOX', 'pollbody');
#
#-----[ REPLACE WITH ]-----
#
if( $want_poll == '1' || $open_poll_box != '' || $open_poll_box == TRUE )
{
$template->assign_var_from_handle('POLLBOX', 'pollbody');
$template->assign_block_vars('want_poll_off', array());
$s_hidden_poll_fields = '<input type="hidden" name="want_poll" value="1">';
}
else
{
$template->assign_block_vars('want_poll_on', array());
}
$posting_open_poll = '<input type="submit" name="open_poll_box" value="'.$lang['Add_poll'].'" class="liteoption">';
$template->assign_vars(array(
'L_TOPIC_POLL' => $lang['Topic_Poll'],
'S_WANT_POLL' => $posting_open_poll,
'S_HIDDEN_POLL_FIELDS' => $s_hidden_poll_fields)
);
#
#-----[ OPEN ]-----
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]-----
#
{POLLBOX}
#
#-----[ BEFORE, ADD ]-----
#
<!-- BEGIN want_poll_off -->
{S_HIDDEN_POLL_FIELDS}
<!-- END want_poll_off -->
<!-- BEGIN want_poll_on -->
<tr>
<th class="thhead" colspan="2"><b>{L_TOPIC_POLL}</b></th>
</tr>
<tr>
<td class="row1"></td>
<td class="row2">{S_HIDDEN_POLL_FIELDS}<span class="gensmall">{S_WANT_POLL}</span></td>
</tr>
<!-- END want_poll_on -->
#
#-----[ SAVE/CLOSE ALL FILES ]-----
#
# EoM