Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
attach_mod/dislpaying.php
#
#-----[ FIND ]------------------------------------------
#
function display_post_attachments($post_id, $switch_attachment)
{
global $attach_config, $is_auth;
#
#-----[ REPLACE WITH ]------------------------------------------
#
function display_post_attachments($post_id, $switch_attachment)
{
global $attach_config, $is_auth, $template;
#
#-----[ FIND ]------------------------------------------
#
{
// Display Notice (attachment there but not having permissions to view it)
// Not included because this would mean template and language file changes (at this stage this is not a wise step. ;))
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
{
$template->assign_block_vars('postrow.noaccess', array());
}
#
#-----[ FIND ]------------------------------------------
#
if (intval($switch_attachment) == 0 || intval($attach_config['disable_mod']) || (!($is_auth['auth_download'] && $is_auth['auth_view'])))
#
#-----[ REPLACE WITH ]------------------------------------------
#
if (intval($switch_attachment) == 0 || intval($attach_config['disable_mod']))
#
#-----[ OPEN ]------------------------------------------
#
templeates/subsilver/view_attach_body.tpl
#
#-----[ FIND ]------------------------------------------
#
</style>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN noaccess -->
<div align="center"><hr width="95%" /></div>
<table width="95%" border="1" cellpadding="2" cellspacing="0" class="attachtable" align="center">
<tr><td width="100%" class="attachheader" align="center"><b><span class="gen">You are not authorized to view downloads in this forum!</span></b></td></tr>
</table>
<div align="center"><hr width="95%" /></div>
<!-- END noaccess -->