Download Button.

Support zu den Modifikationen (MODs) von Entwickler OXPUS für das phpBB 3.0.x
Antworten
sakkiotto
Beiträge: 106
Registriert: Mo 28. Apr 2014, 03:56

Download Button.

Beitrag von sakkiotto »

Hi.
it's possible show another image with link url , when download button is hidden or user can't download?
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Download Button.

Beitrag von oxpus »

Yes, with a little bit of extra code:

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'])
{
Replace them with

Code: Alles auswählen

$dl_button = false;
if (($file_load || $user_can_alltimes_load) && !$user->data['is_bot'])
{
	$dl_button = true;
and insert after

Code: Alles auswählen

	'S_ENABLE_RATE'	=> (isset($config['dl_enable_rate']) && $config['dl_enable_rate']) ? true : false,
the line

Code: Alles auswählen

	'S_DL_BUTTON'	=> $dl_button,
From now you can place whereever you wants another link/graphic while the download button will be hidden by insert

Code: Alles auswählen

<!-- IF not S_DL_BUTTON -->
// your code here
<!-- ENDIF -->
in the file styles/yourtemplate/dl_mod/view_dl_body.html
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!
sakkiotto
Beiträge: 106
Registriert: Mo 28. Apr 2014, 03:56

Re: Download Button.

Beitrag von sakkiotto »

mmmm i haven't the file dl_mod/includes/dl_mod.php lol :)
sakkiotto
Beiträge: 106
Registriert: Mo 28. Apr 2014, 03:56

Re: Download Button.

Beitrag von sakkiotto »

opss founded it on dl_details.php
sakkiotto
Beiträge: 106
Registriert: Mo 28. Apr 2014, 03:56

Re: Download Button.

Beitrag von sakkiotto »

it's perfectttttt!!!! how can I make a donation to this ... and also for the help of the time :) you've been really helpful!
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Download Button.

Beitrag von oxpus »

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!
sakkiotto
Beiträge: 106
Registriert: Mo 28. Apr 2014, 03:56

Re: Download Button.

Beitrag von sakkiotto »

Hey oxpus, can you help me for migrate on 3.1 this snippet? :)
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Download Button.

Beitrag von oxpus »

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