Quantcast
Channel: PunBB Forums — PunBB 1.4 additions
Viewing all articles
Browse latest Browse all 174

[Extension] sva_Link_To_Image

$
0
0

Extension Link to image

GitHub: https://github.com/MioVisman/punbb_exte … k_to_image

Converts links ending in .jpeg, .jpg, .gif, or .png to [ img ] bb-code. If they are framed by any bb-codes, the conversion will not be performed.

At the moment, for highlighting links to pictures, a fairly simple regularity is used:

\b(?<!\])(https?://[^\[\]\s]++)(?=$|\[|\]|\s)(?!\[/(?:img|url)\])(?<=\.jpeg|\.jpg|\.gif|\.png)

Test. Based on the results of your tests, I will make changes.


Viewing all articles
Browse latest Browse all 174

Trending Articles