zerosonesfun/link-decisions

This package is abandoned and no longer maintained. No replacement package was suggested.

Decide how to open post content links in a cool way.

Installs: 186

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 2

Open Issues: 0

Type:flarum-extension

2.2 2020-03-07 08:31 UTC

This package is auto-updated.

Last update: 2020-05-09 08:18:27 UTC


README

A Flarum extension which lets people choose how to open links within post content in a cool way. Sure, one could right click and choose, "open in new window," but where's the fun in that? :) Plus, just in case someone is visiting your forum and they truly don't realize how to open links in new tabs, or they aren't really thinking about it but deep down they would prefer this behavior, this helps them out.

Installation

composer require zerosonesfun/link-decisions

Extra

Add this to your Custom CSS (admin appearance page) to add an external link icon at the end of external links. Important: Replace mysite.com with your domain name. (Thanks @UaMV for posting this tip long ago here.)

a[href*="//"]:not([href*="mysite.com"]) {
    position: relative;
}    
a[href*="//"]:not([href*="mysite.com"]):after {
    content: "\f35d";
    font-family: "Font Awesome 5 Free";
    position: relative;
    top: -.4em;
    padding: 0 .4em;
    font-size: 70%;
}
.sweet-alert a[href*="//"]:not([href*="mysite.com"]):after {
    display: none;
}

Updating

composer update zerosonesfun/link-decisions
php flarum cache:clear

deactivate and reactive the extension

Removing

composer remove zerosonesfun/link-decisions

go to your public assets folder, find this extension's assets, delete the folder

Links