[rellect] Favicon for Links

[rellect] Favicon for Links 2.1.0

No permission to download
Have you uploaded the files to the correct location?
I can see this error:
Code:
http://www.overwatch.zone/js/rellect/FaviconForLinks/FaviconForLinks.min.js?_v=58639803 Failed to load resource: the server responded with a status of 404 (Not Found)
thank you - i will check.

i used @Chris D install & upgrade mod so - not sure if there was a miss there.

i will uninstall & reinstall & see.
 
thank you - i will check.

i used @Chris D install & upgrade mod so - not sure if there was a miss there.

i will uninstall & reinstall & see.
There's a bug with his addon which does not upload the files into the correct location.
I need to rename something in the package to workaround the bug.
For now I would recommend to upload the files manually.
 
There's a bug with his addon which does not upload the files into the correct location.
I need to rename something in the package to workaround the bug.
For now I would recommend to upload the files manually.
'files_to_upload' folder should be renamed to 'upload', afaik

Thanks for the add-0n btw!

EDIT: Works well with TaigaChat as well (through a little edit of .js and css template). Thanks a lot!
 
Last edited:
It's okay to share enhancements.
Oh well then :)

Can you please explain how? :)
You'll have to edit a template (a CSS template in particular), and a JS file.
So yeah, edit rellect_favicon.css template.
And then on line 1, replace:
Code:
.baseHtml a.setFavicon
with:
Code:
.baseHtml a.setFavicon, .ugc a.setFavicon
and also on line 14, replace:
Code:
.baseHtml a.rtlFavicon
with:
Code:
.baseHtml a.rtlFavicon, .ugc a.rtlFavicon
It's simply so that the styling will also be applied to the shoutbox (its message line uses ugc class ~ ).

And then, edit js/rellect/FaviconForLinks/FaviconForLinks.js of the add-on. Look for line 42, and you'll find an array there. Simply add ".ugc a.externalLink" (and ".ugc a.internalLink" if you want to enable internal link) to the array.
It'll look like this:
Code:
linkGroups = [
    ".baseHtml a.internalLink",
    ".baseHtml a.externalLink",
    ".signature a.internalLink",
    ".signature a.externalLink",
    ".ugc a.externalLink"
];
Note: The example above doesn't have internal link enabled on shoutbox.

On my case, since the add-on already have options to disable certain type of links on messages and signatures, I already disabled internal link for both of them from the options. Thus I only added external link for shoutbox on the array.

ALSO, if you enabled Minify on Admin CP options, don't forget to update the minified version as well (FaviconForLinks.min.js, that is).
 
Hello, is there a way to disable this for mobile phone users? I noticed when a page has many URLs it will lock up on cellphone (unable scroll) for ~3-6 seconds.
 
Hello, is there a way to disable this for mobile phone users? I noticed when a page has many URLs it will lock up on cellphone (unable scroll) for ~3-6 seconds.
It will start to load favicons only after the page itself is loaded, so not sure why you can't scroll during this time.
Anyway, there is no setting to disable the addon in mobiles, but you can try something like this
HTML:
<script>
if(window.innerWidth <= 500){
    XenForo.rellect.Favicon = function(){};
}
</script>
Add to the bottom of page_container_js_head template
 
Back
Top Bottom