
http://www.phpbb.de/support/pastebin.ph ... view&s=354
hab das noch nie mit dem pastebin gemacht hehe
Macht nix, dann hast heute was dazugelernt, wenns schon mit dem Mod ausbauen nicht klappt.ClimaX hat geschrieben:hab das noch nie mit dem pastebin gemacht hehe
Code: Alles auswählen
Öffne viewtopic.php und suche:
// Display not already displayed Attachments for this post, we already parsed them. ;)
if (!empty($attachments[$row['post_id']]))
{
foreach ($attachments[$row['post_id']] as $attachment)
{
$template->assign_block_vars('postrow.attachment', array(
'DISPLAY_ATTACHMENT' => $attachment)
);
}
}
Ersetze mit:
// Display not already displayed Attachments for this post, we already parsed them. ;)
if (!empty($attachments[$row['post_id']]))
{
// Start Ultimate Points
if ( isset($config['points_name']) )
{
$dl_costs = '';
$sql = 'SELECT points_dl_cost_per_attach
FROM ' . POINTS_VALUES_TABLE;
$result = $db->sql_query($sql);
$dl_cost = $db->sql_fetchfield('points_dl_cost_per_attach');
$db->sql_freeresult($result);
}
// End Ultimate Points
foreach ($attachments[$row['post_id']] as $attachment)
{
// Start Ultimate Points
if ( $dl_costs > 0 )
{
$template->assign_block_vars('postrow.attachment', array(
'SHOW_DL_COSTS' => sprintf($user->lang['SHOW_DL_COST_IN_ATTACH'], number_format($dl_costs, 2, ',', ' '), $config('points_name')))
);
}
// Start Ultimate Points
$template->assign_block_vars('postrow.attachment', array(
'DISPLAY_ATTACHMENT' => $attachment)
);
}
}
**********************************************************************************
Öffne language/de/mods/points.php und suche:
));
?>
Füge davor ein:
'SHOW_DL_COST_IN_ATTACH' => 'Kosten für den Download: %1$s %2%s',
**********************************************************************************
Öffne styles/prosilver/template/viewopic_body.html und suche:
<!-- IF postrow.S_HAS_ATTACHMENTS -->
<dl class="attachbox">
<dt>{L_ATTACHMENTS}</dt>
<!-- BEGIN attachment -->
<dd>{postrow.attachment.DISPLAY_ATTACHMENT}</dd>
<!-- END attachment -->
</dl>
<!-- ENDIF -->
und ersetze mit:
<!-- IF postrow.S_HAS_ATTACHMENTS -->
<dl class="attachbox">
<dt>{L_ATTACHMENTS}<br />{postrow.attachment.SHOW_DL_COSTS}</dt>
<!-- BEGIN attachment -->
<dd>{postrow.attachment.DISPLAY_ATTACHMENT}</dd>
<!-- END attachment -->
</dl>
<!-- ENDIF -->
Moin,Mik_70 hat geschrieben: Deshalb wäre es super, wenn der Kostenbetrag schon in der Topic-Übersicht irgendwie erscheinen würde.