[TIP] Add Favicons to all Links

Started by Feline, 3 years ago

previous topic - next topic

0 Members and 1 Guest are viewing this topic.

Feline

*
3 years ago Last Edit: 2 years ago by feline
With this TIP you can add favicons (small images, the shown in mostly browsers in the link bar) to all links in the Message text !
NOTE: This will only works for PortaMx 1.54 !!!

SMF use the CSS class bbc_link for internal or external links in the messages, if you use:
Code Select
[url]the link here[/url] in Messages.
For these links we add the favicon if the side have one.

This will looks as follow:

Link/ to this Message

Uuuuhh .. Nice  O0

Please note that the favicon is not shown in the message preview !

I have added a small archive, that hold the files are changed/added.

And here the steps to add this wonderfull [TIP] ..
  • Extract the attached archive
  • Copy the files in the folder to the corresponding folder on your server.
    Make a backup or rename the originals before !!!
  • Clear your Browser cache and reload your site.
Is all correct, now you see the favicon for each link, the have the CSS class bbc_link.

Additonal Notes:
For PortaMx Blocks / Articles with the type script and html you must add the CSS class for the links manually.
To do that, change each <a href=" ... "> link
Code Select
<a href="sidename.domain">sitename</a> and add the string class="bbc_link" like
Code Select
<a href="sidename.domain" class="bbc_link">sitename</a>Now the favicon is also shown in this blocks/articles.

Feline
Many are stubborn in relation to the way, but less in relation to the target.

* Shouts

Feline
6 months ago
Today we update our Forum to the Version 1.45
Feline
9 months ago
Today we update our Forum to Version 1.4
This release is full compatible with the EU GDPR
Feline
11 months ago
Update for PortaMx 1.54 ecl released.
With this updates the Portal works with PHP 7.x and SMF 2.0.15
Feline
a year ago
PortaMx Forum 1.3
released !

*
Feline
a year ago
Today we switched to PHP 7.2 and activate Opcode caching.
Fast .. Very fast *
Feline
2 years ago
Today we upgrade our old SMF 2.0 Forum to PortaMx Forum *

* Calendar

Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31