[DBTech] DragonByte Favicons

[DBTech] DragonByte Favicons 2.0.0

No permission to download

DragonByte Tech

Well-known member
DragonByte Tech submitted a new resource:

[DBTech] DragonByte Favicons - Display favicons for links posted on your forum.

Display favicons for links posted on your forum.

Description

DragonByte Favicons is a small but powerful mod that allows you to display favicons for links posted on your forum using the BBCode.

Site icons, or "favicons", are small icons displayed in bookmarks and in your browser's address bar when visiting specific websites. They help identify the site, and is a part of a site's branding. Using this mod, the benefits of this branding will be added to posts, statuses and...

Read more about this resource...
 
Also can add support Favicon icon re-size taken from URL text size?
You can style the size of favicons yourself by changing dbtech_favicons_core.less, there's no plans to make it automatic based on text size. If you've boosted the text size beyond what would look at 16px icons, you should customise that .less template.

Please can you add option Disable in Conversations
I'll add this to the next version.

Disable in Profile Posts
Profile posts use structured text, not BBCode. Turning it off in structured text would affect ALL such areas, not just profile posts. I can add the option, though.


Fillip
 
DragonByte Tech updated [DBTech] DragonByte Favicons with a new update entry:

1.0.0 Beta 2

Update highlights

This is a quick update to add a couple new features as requested by the community.

Favicons can now be disabled for conversations, and can also be disabled for structured text areas (content without BBCode, but with auto-linked text) such as profile posts.

Note: You must save the options on the "Appearance" page once in order to rebuild the option cache after upgrading Beta 2.
If you are installing this mod for the first time, you do not need to...

Read the rest of this update entry...
 
That would be outside of the scope of a mod literally called "Favicons".

Yes but If can add option for choice Icon or Favicons. Just a bonus functionality ! I am using this in my extra.less template for icon.

Code:
.link--external:before {
    font-family: FontAwesome;
    content: "\f14c";
    padding-right: 3px;
}
.link--internal:before {
    font-family: FontAwesome;
    content: "\f0c1";
    padding-right: 3px;
}
 
hi @DragonByte Tech i've got a lot of errors after installing this addon on 2.1.1

Code:
Server error log
ErrorException: Template error: preg_match(): Compilation failed: invalid range in character class at offset 15 src/addons/DBTech/Favicons/XF/BbCode/Renderer/Html.php:29
Generated by: McAtze Apr 17, 2019 at 19:51

Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(2, 'preg_match(): C...', '/var/www/vhosts...', 29, Array)
#1 src/addons/DBTech/Favicons/XF/BbCode/Renderer/Html.php(29): preg_match('/<a.*(class="[\\...', '<a href="http:/...', NULL)
#2 src/XF/BbCode/Renderer/Html.php(1142): DBTech\Favicons\XF\BbCode\Renderer\Html->getRenderedLink('54', 'http://dejure.o...', Array)
#3 [internal function]: XF\BbCode\Renderer\Html->renderTagUrl(Array, 'http://dejure.o...', Array, Array, Object(DBTech\Favicons\XF\BbCode\Renderer\Html))
#4 src/XF/BbCode/Renderer/Html.php(295): call_user_func(Array, Array, 'http://dejure.o...', Array, Array, Object(DBTech\Favicons\XF\BbCode\Renderer\Html))
#5 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#6 src/XF/BbCode/Traverser.php(37): XF\BbCode\Traverser->renderSubTree(Array, Array)
#7 src/XF/BbCode/Traverser.php(20): XF\BbCode\Traverser->renderAst(Array, Object(SV\UserMentionsImprovements\XF\BbCode\RuleSet), Array)
#8 src/XF/SubContainer/BbCode.php(219): XF\BbCode\Traverser->render('[B]Die Diskussi...', Object(XF\BbCode\Parser), Object(SV\UserMentionsImprovements\XF\BbCode\RuleSet), Array)
#9 src/XF/Template/Templater.php(2021): XF\SubContainer\BbCode->render('[B]Die Diskussi...', 'html', 'ams_article', Object(XenAddons\AMS\Entity\ArticleItem), Array)
#10 [internal function]: XF\Template\Templater->fnBbCode(Object(SV\UserActivity\XF\Template\Templater), false, '[B]Die Diskussi...', 'ams_article', Object(XenAddons\AMS\Entity\ArticleItem))
#11 src/XF/Template/Templater.php(922): call_user_func_array(Array, Array)
#12 internal_data/code_cache/templates/l4/s24/public/xa_ams_article_view.php(220): XF\Template\Templater->fn('bb_code', Array, false)
#13 src/XF/Template/Templater.php(1301): XF\Template\Templater->{closure}(Object(SV\UserActivity\XF\Template\Templater), Array)
#14 src/addons/CleanTalk/XF/Template/Templater.php(106): XF\Template\Templater->renderTemplate('xa_ams_article_...', Array, true)
#15 src/XF/Template/Template.php(24): CleanTalk\XF\Template\Templater->renderTemplate('public:xa_ams_a...', Array)
#16 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#17 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XenAddons\\AMS:A...', 'public:xa_ams_a...', Array)
#18 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#19 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#20 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#21 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#22 src/XF.php(390): XF\App->run()
#23 index.php(20): XF::runApp('XF\\Pub\\App')
#24 {main}

Request state
array(4) {
  ["url"] => string(84) "/news/die-urheberrechtsreform-und-artikel-12-verlage-sollen-wieder-mitverdienen.117/"
  ["referrer"] => string(34) "https://www.xentutorials.com/news/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
hi @DragonByte Tech i've got a lot of errors after installing this addon on 2.1.1

Code:
Server error log
ErrorException: Template error: preg_match(): Compilation failed: invalid range in character class at offset 15 src/addons/DBTech/Favicons/XF/BbCode/Renderer/Html.php:29
Generated by: McAtze Apr 17, 2019 at 19:51

Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(2, 'preg_match(): C...', '/var/www/vhosts...', 29, Array)
#1 src/addons/DBTech/Favicons/XF/BbCode/Renderer/Html.php(29): preg_match('/<a.*(class="[\\...', '<a href="http:/...', NULL)
#2 src/XF/BbCode/Renderer/Html.php(1142): DBTech\Favicons\XF\BbCode\Renderer\Html->getRenderedLink('54', 'http://dejure.o...', Array)
#3 [internal function]: XF\BbCode\Renderer\Html->renderTagUrl(Array, 'http://dejure.o...', Array, Array, Object(DBTech\Favicons\XF\BbCode\Renderer\Html))
#4 src/XF/BbCode/Renderer/Html.php(295): call_user_func(Array, Array, 'http://dejure.o...', Array, Array, Object(DBTech\Favicons\XF\BbCode\Renderer\Html))
#5 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#6 src/XF/BbCode/Traverser.php(37): XF\BbCode\Traverser->renderSubTree(Array, Array)
#7 src/XF/BbCode/Traverser.php(20): XF\BbCode\Traverser->renderAst(Array, Object(SV\UserMentionsImprovements\XF\BbCode\RuleSet), Array)
#8 src/XF/SubContainer/BbCode.php(219): XF\BbCode\Traverser->render('[B]Die Diskussi...', Object(XF\BbCode\Parser), Object(SV\UserMentionsImprovements\XF\BbCode\RuleSet), Array)
#9 src/XF/Template/Templater.php(2021): XF\SubContainer\BbCode->render('[B]Die Diskussi...', 'html', 'ams_article', Object(XenAddons\AMS\Entity\ArticleItem), Array)
#10 [internal function]: XF\Template\Templater->fnBbCode(Object(SV\UserActivity\XF\Template\Templater), false, '[B]Die Diskussi...', 'ams_article', Object(XenAddons\AMS\Entity\ArticleItem))
#11 src/XF/Template/Templater.php(922): call_user_func_array(Array, Array)
#12 internal_data/code_cache/templates/l4/s24/public/xa_ams_article_view.php(220): XF\Template\Templater->fn('bb_code', Array, false)
#13 src/XF/Template/Templater.php(1301): XF\Template\Templater->{closure}(Object(SV\UserActivity\XF\Template\Templater), Array)
#14 src/addons/CleanTalk/XF/Template/Templater.php(106): XF\Template\Templater->renderTemplate('xa_ams_article_...', Array, true)
#15 src/XF/Template/Template.php(24): CleanTalk\XF\Template\Templater->renderTemplate('public:xa_ams_a...', Array)
#16 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#17 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XenAddons\\AMS:A...', 'public:xa_ams_a...', Array)
#18 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#19 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#20 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#21 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#22 src/XF.php(390): XF\App->run()
#23 index.php(20): XF::runApp('XF\\Pub\\App')
#24 {main}

Request state
array(4) {
  ["url"] => string(84) "/news/die-urheberrechtsreform-und-artikel-12-verlage-sollen-wieder-mitverdienen.117/"
  ["referrer"] => string(34) "https://www.xentutorials.com/news/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
Looks like you may have an older version, that error doesn't exist in the latest version (v1.0.0). Try re-downloading and re-uploading.
 
Looks like you may have an older version, that error doesn't exist in the latest version (v1.0.0). Try re-downloading and re-uploading.

I confirm this fixed the issue for me, too. Looks like I didn't update it because it was called v1.0.0 exactly like the previous version. I also add that the error reported by @mcatze (at least for me) started happening after upgrading my php version from 7.0 to 7.3 for some reason.
 
@DragonByte Tech I've got a lot of errors with this add-on.
Code:
Server error log
ErrorException: Template error: preg_match(): Compilation failed: invalid range in character class at offset 15 src/addons/DBTech/Favicons/XF/BbCode/Renderer/Html.php:29
Generated by: McAtze Jun 26, 2019 at 19:52

Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(2, 'preg_match(): C...', '/var/www/vhosts...', 29, Array)
#1 src/addons/DBTech/Favicons/XF/BbCode/Renderer/Html.php(29): preg_match('/<a.*(class="[\\...', '<a href="https:...', NULL)
#2 src/XF/BbCode/Renderer/Html.php(1140): DBTech\Favicons\XF\BbCode\Renderer\Html->getRenderedLink('Server- und Bet...', 'https://www.it-...', Array)
#3 src/addons/ThemeHouse/Monetize/XF/BbCode/Renderer/Html.php(39): XF\BbCode\Renderer\Html->renderTagUrl(Array, 'https://www.it-...', Array, Array)
#4 [internal function]: ThemeHouse\Monetize\XF\BbCode\Renderer\Html->renderTagUrl(Array, 'https://www.it-...', Array, Array, Object(SV\LazyImageLoader\XF\BbCode\Renderer\Html))
#5 src/XF/BbCode/Renderer/Html.php(295): call_user_func(Array, Array, 'https://www.it-...', Array, Array, Object(SV\LazyImageLoader\XF\BbCode\Renderer\Html))
#6 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#7 src/XF/BbCode/Traverser.php(37): XF\BbCode\Traverser->renderSubTree(Array, Array)
#8 src/XF/BbCode/Traverser.php(20): XF\BbCode\Traverser->renderAst(Array, Object(SV\UserMentionsImprovements\XF\BbCode\RuleSet), Array)
#9 src/XF/SubContainer/BbCode.php(219): XF\BbCode\Traverser->render('[URL="https://w...', Object(XF\BbCode\Parser), Object(SV\UserMentionsImprovements\XF\BbCode\RuleSet), Array)
#10 src/XF/Template/Templater.php(2021): XF\SubContainer\BbCode->render('[URL="https://w...', 'html', 'post', Object(SV\ReportImprovements\XF\Entity\Post), Array)
#11 [internal function]: XF\Template\Templater->fnBbCode(Object(xenMade\UASD\XF\Template\Templater), false, '[URL="https://w...', 'post', Object(SV\ReportImprovements\XF\Entity\Post))
#12 src/XF/Template/Templater.php(922): call_user_func_array(Array, Array)
#13 internal_data/code_cache/templates/l4/s43/public/post_macros.php(243): XF\Template\Templater->fn('bb_code', Array, false)
#14 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(xenMade\UASD\XF\Template\Templater), Array, Array)
#15 internal_data/code_cache/templates/l4/s43/public/thread_view.php(753): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#16 src/XF/Template/Templater.php(1301): XF\Template\Templater->{closure}(Object(xenMade\UASD\XF\Template\Templater), Array)
#17 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#18 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#19 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#20 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#21 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#22 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#23 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#24 src/XF.php(390): XF\App->run()
#25 index.php(20): XF::runApp('XF\\Pub\\App')
#26 {main}

Request state
array(4) {
  ["url"] => string(24) "/themen/bilderthema.397/"
  ["referrer"] => string(52) "https://www.xentutorials.com/themen/bilderthema.397/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
Well, thats weird. I download the add-on again, upload and rebuild it, after that it works without any errors.. :unsure: 😂
 
This add-on had been working flawlessly on my forum - but I too am seeing just a horrific error in my log.. It's so annoying. How to STOP it please help?

Thanks,

Jacquii.

Server error log
  • ErrorException: Template error: preg_match(): Compilation failed: invalid range in character class at offset 15
  • src/addons/DBTech/Favicons/XF/BbCode/Renderer/Html.php:29
  • Nov 12, 2019 at 11:24 PM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(2, 'preg_match(): C...', '/home/transsafe...', 29, Array)
#1 src/addons/DBTech/Favicons/XF/BbCode/Renderer/Html.php(29): preg_match('/<a.*(class="[\\...', '<a href="https:...', NULL)
#2 src/XF/BbCode/Renderer/Html.php(1140): DBTech\Favicons\XF\BbCode\Renderer\Html->getRenderedLink('Please Familiar...', 'https://transsa...', Array)
#3 [internal function]: XF\BbCode\Renderer\Html->renderTagUrl(Array, 'https://transsa...', Array, Array, Object(DBTech\Favicons\XF\BbCode\Renderer\Html))
#4 src/XF/BbCode/Renderer/Html.php(295): call_user_func(Array, Array, 'https://transsa...', Array, Array, Object(DBTech\Favicons\XF\BbCode\Renderer\Html))

...
 
This add-on had been working flawlessly on my forum - but I too am seeing just a horrific error in my log.. It's so annoying. How to STOP it please help?

Thanks,

Jacquii.

Server error log
  • ErrorException: Template error: preg_match(): Compilation failed: invalid range in character class at offset 15
  • src/addons/DBTech/Favicons/XF/BbCode/Renderer/Html.php:29
  • Nov 12, 2019 at 11:24 PM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(2, 'preg_match(): C...', '/home/transsafe...', 29, Array)
#1 src/addons/DBTech/Favicons/XF/BbCode/Renderer/Html.php(29): preg_match('/<a.*(class="[\\...', '<a href="https:...', NULL)
#2 src/XF/BbCode/Renderer/Html.php(1140): DBTech\Favicons\XF\BbCode\Renderer\Html->getRenderedLink('Please Familiar...', 'https://transsa...', Array)
#3 [internal function]: XF\BbCode\Renderer\Html->renderTagUrl(Array, 'https://transsa...', Array, Array, Object(DBTech\Favicons\XF\BbCode\Renderer\Html))
#4 src/XF/BbCode/Renderer/Html.php(295): call_user_func(Array, Array, 'https://transsa...', Array, Array, Object(DBTech\Favicons\XF\BbCode\Renderer\Html))

...
What version of PHP are you running?
 
What version of PHP are you running?
Apologies for the delayed reply @DragonByte Tech - My server specs are as follows:
Server environment report
You have the recommended PHP version.
PHP version 7.3.11
MySQL version 10.1.43 (10.1.43-MariaDB)
PHP post_max_size 8M
PHP upload_max_filesize 6M
PHP max_input_vars 1000
PHP max_execution_time 120
cURL version 7.66.0
SSL version OpenSSL/1.0.2t
Suhosin enabled No
Imagick support No
EXIF support Yes
GZip support Yes
mbstring support Yes
gmp support Yes
ZipArchive support Yes

And yes - I've just recently upgraded from PHP version 5.6 or some now-deprecated version PHP.
Is this the cause of the issue? Which version do you actually recommend, as XF itself recommends PHP 7.x

Thanks,

J.
 
In that case you don't have the latest version of this add-on, or you need to re-download it, as the code is definitely PHP 7.3 compliant.
 
DragonByte Tech updated [DBTech] DragonByte Favicons with a new update entry:

2.0.0 Release Candidate 1

Update highlights​

!!!This version requires PHP 8.0+!!!

This version mainly introduces compatibility with XenForo 2.3. The add-on has been fully updated, meaning no compatibility layers such as loading jQuery or other such patches are required for this add-on.

Furthermore, a few reported bugs since the release of the last version for XenForo 2.2 have also been resolved.


Complete Change Log​

Change: Don't attempt to...

Read the rest of this update entry...
 
Back
Top Bottom