External File Names Shows Path?

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Antworten
OKCRandy
Beiträge: 9
Registriert: So 25.Jun, 2006 01:31

External File Names Shows Path?

Beitrag von OKCRandy »

Why does the DL Mod show the complete path to the file? Is there away to hide this?

Also, how do I hide the DL Button from Non Registerd users?

Thank for your support.

Randy
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

1. Wrong forum!
2. On external downloads the MOD will not filter anything, because the mod will ust the complete link to refer to the external file!
Just on internal downloads the mod will bere only display the needed filename.
To hide it here do this:

Code: Alles auswählen

#
#-----[ OPEN ]-----
#
dl_mod/classes/class_dlmod.php

#
#-----[ FIND ]-----
#
		$file_detail = $this->dl_file[$id]['file_name'];

#
#-----[ REPLACE WITH ]-----
#
		$file_detail = ($this->dl_file[$id]['extern']) ? $lang['Dl_extern'] : $this->dl_file[$id]['file_name'];
3. External downloads are not be controlled by the permission system from this MOD! To hide them for guests, change the permissions for viewing and download on the category settings on ACP.
Zuletzt geändert von oxpus am Fr 07.Jul, 2006 10:18, insgesamt 2-mal geändert.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
OKCRandy
Beiträge: 9
Registriert: So 25.Jun, 2006 01:31

Beitrag von OKCRandy »

Thank you for your help and patience. :)

Sorry about wrong.Forum :(

Randy
Antworten