Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neue Buttons #54

Open
kroerig opened this issue Nov 10, 2022 · 15 comments
Open

Neue Buttons #54

kroerig opened this issue Nov 10, 2022 · 15 comments

Comments

@kroerig
Copy link

kroerig commented Nov 10, 2022

Hallo!

Ist es geplant neue Buttons aufzunehmen? z.B. Mastodon?

@fritzmg
Copy link
Owner

fritzmg commented Nov 10, 2022

Do you know the sharer URL of Mastodon?

@kroerig
Copy link
Author

kroerig commented Dec 8, 2022

It seams that this is a bit tricky. You need a share link that belongs to the instance of the user sharing the content.

@fritzmg
Copy link
Owner

fritzmg commented Dec 8, 2022

Hm, yeah, that's not really feasible then I suppose.

@kroerig
Copy link
Author

kroerig commented Dec 12, 2022

@Anke
Copy link

Anke commented Jun 16, 2023

Threema?

@fritzmg
Copy link
Owner

fritzmg commented Jun 16, 2023

@Anke I do not understand the question. Please provide more details.

@Anke
Copy link

Anke commented Jun 16, 2023

I was trying to suggest adding a Threema-Share button

@fritzmg
Copy link
Owner

fritzmg commented Jun 16, 2023

Do you know the share URL?

// edit: I think it should be https://threema.id/compose?text=Hello https://threema.ch/en/faq/url_actions

@Anke
Copy link

Anke commented Jun 16, 2023

threema://compose?text=[z.B. URL]

Ohne die id wird die Threema Kontaktliste geöffnet und man kann auswählen, an wenn man schicken will.

threema://compose?text=https://de.m.wikipedia.org/wiki/Flaggen-Bestimmungsschl%C3%BCssel

schickt den Link an Threema. Kenne mich nicht genug aus, um adhoc sagen zu können, wie zb ein Seitentitel mit übergeben wird.

@fritzmg
Copy link
Owner

fritzmg commented Jun 16, 2023

Kenne mich nicht genug aus, um adhoc sagen zu können, wie zb ein Seitentitel mit übergeben wird.

Just have a look at the sharebuttons_default template, e.g. for WhatsApp:

<li><a class="whatsapp" href="https://wa.me/?text=<?= $this->description ? $this->description . '%0A%0A' : '' ?><?= $this->url ?>" target="_blank" data-action="share/whatsapp/share" rel="noopener noreferrer nofollow" data-escargot-ignore title="<?= $this->lang['share_on_whatsapp'] ?>">WhatsApp</a></li>

@Anke
Copy link

Anke commented Jun 17, 2023

Ha, great! Didn't think of that. I used to use Shariff some time ago.

@Anke
Copy link

Anke commented Jun 19, 2023

According to Threema support https://threema.id/compose?text=Hello will lead to a Threema website with a button to open Threema on the device and offer download links for people not having Threema installed.

The link threema://compose?text=Hello will open Threema directly. However, it seems Contao doesn't accept this network protocol. Usig it in a HTML element, I get a 404. Using it in a hyperlink element, the webites base url is preceding the threema url like so: https://mywebsite.com/threema://compose?text=Hello.

Is there any way to make Contao deal with a url like threema://compose?[...]?

@fritzmg
Copy link
Owner

fritzmg commented Jun 19, 2023

I am not sure what you mean. Please post your sharebuttons_default template.

@Anke
Copy link

Anke commented Jun 19, 2023

I didn't add it to the template. I wanted to try to get the link to work the way I want it to, first. If I would add it to the template it would probably look like this:

<li><a class="threema" href="https://threema.id/compose?text=<?= $this->description ? $this->description . '%0A%0A' : '' ?><?= $this->url ?>" target="_blank" data-action="share/threema/share" rel="noopener noreferrer nofollow" data-escargot-ignore title="<?= $this->lang['share_on_threema'] ?>">Threema</a></li>
But like I say, this detouring link is not what I have in mind. I'd like to use href="threema://compose?text=[]".

The data-protecting solution Shariff by Heise is using these direct url's for Threema and Whatsapp:

shareUrl: 'threema://compose?text=' + encodeURIComponent(title) + '%20' + url + shariff.getReferrerTrack()
shareUrl: 'whatsapp://send?text=' + encodeURIComponent(title) + '%20' + url + shariff.getReferrerTrack()

@fritzmg
Copy link
Owner

fritzmg commented Jun 19, 2023

I didn't add it to the template. I wanted to try to get the link to work the way I want it to, first.

If you want to use a custom protocol like this then there are more steps you need to take within Contao in order to be able to fill in something like that in a HTML element in the back end. However, this has nothing to do with this issue or this extension.

But like I say, this detouring link is not what I have in mind. I'd like to use href="threema://compose?text=[]".

Then just use that? ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants