Download Links

Support für Extensions für phpBB 3.3.x von Entwickler OXPUS
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Download Links

Beitrag von oxpus »

Update:
The new release will reformat the link title for old download links, too.

But regard, that the extension just replaces the link title, bot not the url!
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!
dave c
Beiträge: 25
Registriert: Di 18. Feb 2020, 22:01

Re: Download Links

Beitrag von dave c »

Ok,
So not quite sure i understand. How will this work?
dave
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Download Links

Beitrag von oxpus »

A link have 2 Parts: An url and a title:

<a href="{URL}">{TITLE}</a>

The formatting with the download extension will only replace the {TITLE} if it contains a link to a download.
But the {URL} itself will NOT be replaced!

When you have a post link like

Code: Alles auswählen

downloads.php?view=detail&df_id=
the {URL} of this links will not be replaced and may not work in your forum.
So you have to create a rewriting rule in your webserver config for these old link formats.
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!
Benutzeravatar
ThE KuKa
Beiträge: 11
Registriert: So 3. Nov 2019, 11:33
Wohnort: Barcelona
Kontaktdaten:

Re: Download Links

Beitrag von ThE KuKa »

Test again...
https://phpbb3.oxpus.net/dlext/details?df_id=46

Before it worked correctly, but now... :|
https://www.phpbb-es.com/foro/viewtopic ... 95&t=43614
andares hat geschrieben:...for some reason in that link the low bar (_) causes the direct link to not generate well...
This link for example... https://www.phpbb-es.com/foro/dlext/details?df_id=4 in my site, it's "blank" link...
Style Customisations Team phpBB.

Webmaster phpBB Spain.
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Download Links

Beitrag von oxpus »

You are using a different style than prosilver.
Are the BBCodes templates different there than in the standard style?
Because the link title is already being replaced on your forum, but with wrong URI parts.

I currently have no explanation why your forum is not replacing the links correctly.
There are no problems with this in any of the forums that I support, but only you has been reported this error.

Do you have any other extensions in use that replaces or format the contents in the posts?
Maybe something is not compatible with each other ...
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!
Benutzeravatar
ThE KuKa
Beiträge: 11
Registriert: So 3. Nov 2019, 11:33
Wohnort: Barcelona
Kontaktdaten:

Re: Download Links

Beitrag von ThE KuKa »

I will disable extensions, until I find what causes the problem. Then I comment here if I find the problem. ;)
Style Customisations Team phpBB.

Webmaster phpBB Spain.
Benutzeravatar
ThE KuKa
Beiträge: 11
Registriert: So 3. Nov 2019, 11:33
Wohnort: Barcelona
Kontaktdaten:

Re: Download Links

Beitrag von ThE KuKa »

Solved... thanks to CaniDev

event/listener.php

Code: Alles auswählen

				case 'link_text':
					$link_title = '<LINK_TEXT text="' . $title . '">' . $title . '</LINK_TEXT>';
				break;
Replace with:

Code: Alles auswählen

				case 'link_text':
					$title = strip_tags($title);
					$link_title = '<LINK_TEXT text="' . $title . '">' . $title . '</LINK_TEXT>';
				break;
It seems a problem derived from another extension, but with this we avoid using HTML, but it solves the problem...

https://www.phpbb-es.com/foro/viewtopic ... 59#p246659

Best regards.
Style Customisations Team phpBB.

Webmaster phpBB Spain.
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Download Links

Beitrag von oxpus »

:o
Oh man, that was probably too easy for me.
Thanks to you both.

I'll patch the package asap.
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