Seite 2 von 2

Verfasst: 06.07.2006 00:08
von darklordi
Tausend dank an DavidIQ von phpbb.com !

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 -->

Verfasst: 06.07.2006 01:20
von mgutt
Besser fände ich ein Lockmittel, wo sozusagen der Download angezeigt wird, aber bei Klick auf Download auf die login-Seite geroutet wird.

Gruß

Verfasst: 06.07.2006 01:29
von darklordi
hmm, das sollte einfach sein ... da, wenn man auf einen direkten verlinkten attachmennt (inline verlinkt!) zugreifen will kommt sowieso so eine meldung... das heißt man müsste die anzeige erlauben (in der tpl) und einfach die erlaubniss so lassen ... ? :P

Verfasst: 30.07.2006 13:37
von SZiebeck01
ich ahbe die diplaying.php V1.4
und finde eure stellen über hauopt nicht :-(


könntet ihr mir da weiterhelfen :-([/code]