Download Button.
Download Button.
Hi.
it's possible show another image with link url , when download button is hidden or user can't download?
it's possible show another image with link url , when download button is hidden or user can't download?
- oxpus
- Chief handy-man
- Beiträge: 2660
- Registriert: Do 13. Dez 2007, 23:06
- Wohnort: Irgendwo im I-Net
- Kontaktdaten:
Re: Download Button.
Yes, with a little bit of extra code:
Open the file dl_mod/includes/dl_details.php and find the lines
Replace them with
and insert after
the line
From now you can place whereever you wants another link/graphic while the download button will be hidden by insert
in the file styles/yourtemplate/dl_mod/view_dl_body.html
Open the file dl_mod/includes/dl_details.php and find the lines
Code: Alles auswählen
if (($file_load || $user_can_alltimes_load) && !$user->data['is_bot'])
{
Code: Alles auswählen
$dl_button = false;
if (($file_load || $user_can_alltimes_load) && !$user->data['is_bot'])
{
$dl_button = true;
Code: Alles auswählen
'S_ENABLE_RATE' => (isset($config['dl_enable_rate']) && $config['dl_enable_rate']) ? true : false,
Code: Alles auswählen
'S_DL_BUTTON' => $dl_button,
Code: Alles auswählen
<!-- IF not S_DL_BUTTON -->
// your code here
<!-- ENDIF -->
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Re: Download Button.
mmmm i haven't the file dl_mod/includes/dl_mod.php lol
Re: Download Button.
opss founded it on dl_details.php
Re: Download Button.
it's perfectttttt!!!! how can I make a donation to this ... and also for the help of the time you've been really helpful!
- oxpus
- Chief handy-man
- Beiträge: 2660
- Registriert: Do 13. Dez 2007, 23:06
- Wohnort: Irgendwo im I-Net
- Kontaktdaten:
Re: Download Button.
Sorry, for the wrong filename. I've fixed this.
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Re: Download Button.
Hey oxpus, can you help me for migrate on 3.1 this snippet?
- oxpus
- Chief handy-man
- Beiträge: 2660
- Registriert: Do 13. Dez 2007, 23:06
- Wohnort: Irgendwo im I-Net
- Kontaktdaten:
Re: Download Button.
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!