Auto Link Titles

Auto Link Titles 1.0.10

No permission to download
Looks cool. @Chris Deeming I know you said earlier you wouldn't be developing this further, but it would be nice to see an optional mode that operates only via a deferred task for instances such as above when loading external URLs is just too slow.
 
That probably won't happen. But you can change the timeout value. It's currently 10 seconds. If you reduced that then it would cancel the process rather than delaying the posting.
 
Oops, server error just shows up!

Error Info
ErrorException: Undefined offset: 1 - library/AVForums/AutoLinkTitles/BbCode/Formatter/BbCode/AutoLink.php:139
Generated By: ...
Stack Trace
#0 /home/.../public_html/forum/library/AVForums/AutoLinkTitles/BbCode/Formatter/BbCode/AutoLink.php(139): XenForo_Application::handlePhpError(8, 'Undefined offse...', '/home/.../p...', 139, Array)
#1 /home/.../public_html/forum/library/AVForums/AutoLinkTitles/BbCode/Formatter/BbCode/AutoLink.php(78): AVForums_AutoLinkTitles_BbCode_Formatter_BbCode_AutoLink->_getPageCharset('HTTP/1.0 200 OK...', '<!DOCTYPE html>...')
#2 /home/.../public_html/forum/library/AVForums/AutoLinkTitles/BbCode/Formatter/BbCode/AutoLink.php(39): AVForums_AutoLinkTitles_BbCode_Formatter_BbCode_AutoLink->getTitle('http://www.moni...')
#3 /home/.../public_html/forum/library/XenForo/BbCode/Formatter/BbCode/AutoLink.php(103): AVForums_AutoLinkTitles_BbCode_Formatter_BbCode_AutoLink->_autoLinkUrl('http://www.moni...')
#4 [internal function]: XenForo_BbCode_Formatter_BbCode_AutoLink->autoLinkTag(Array, Array, Object(AVForums_AutoLinkTitles_BbCode_Formatter_BbCode_AutoLink))
#5 /home/.../public_html/forum/library/XenForo/BbCode/Formatter/Base.php(664): call_user_func(Array, Array, Array, Object(AVForums_AutoLinkTitles_BbCode_Formatter_BbCode_AutoLink))
#6 /home/.../public_html/forum/library/XenForo/BbCode/Formatter/Base.php(575): XenForo_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#7 /home/.../public_html/forum/library/XenForo/BbCode/Formatter/Base.php(488): XenForo_BbCode_Formatter_Base->renderTag(Array, Array, 0)
#8 /home/.../public_html/forum/library/XenForo/BbCode/Formatter/Base.php(469): XenForo_BbCode_Formatter_Base->renderTreeElement(Array, Array, 0)
#9 /home/.../public_html/forum/library/XenForo/BbCode/Formatter/Base.php(449): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array)
#10 /home/.../public_html/forum/library/XenForo/BbCode/Formatter/BbCode/AutoLink.php(55): XenForo_BbCode_Formatter_Base->renderTree(Array, Array)
#11 /home/.../public_html/forum/library/XenForo/BbCode/Parser.php(505): XenForo_BbCode_Formatter_BbCode_AutoLink->renderTree(Array, Array)
#12 /home/.../public_html/forum/library/XenForo/Helper/String.php(221): XenForo_BbCode_Parser->render('http://www...') #13 /home/.../publi...in a priovate node if this makes a difference.
 
Chris, sometimes when I insert a link, there appears to be a delay to post. Nothing too slow, just very noticeable at times.
 
Chris, sometimes when I insert a link, there appears to be a delay to post. Nothing too slow, just very noticeable at times.

Already been answered higher up - the add-on has to wait to download the page that's linked to to grab the title.
 
With 1.0.9, i have this errors (logs)
 

Attachments

  • Screenshot_21.webp
    Screenshot_21.webp
    16.8 KB · Views: 17
  • Screenshot_22.webp
    Screenshot_22.webp
    23.7 KB · Views: 19
  • Screenshot_23.webp
    Screenshot_23.webp
    24.6 KB · Views: 18
You would need to ask your host to enable PHP to have the mb_convert_encoding function.
 
If you haven't already, disable the add-on.

It looks like you need the mb_convert_encoding function enabling in PHP. Ask your host or server person about this.
 
Nice mod thanks!

Can I suggest a small change.... for some reason it isn't stripping line breaks from titles over on a certain rival forum site ;)

e.g. http://www.vbulletin.com/forum/foru...nd-troubleshooting/4004857-who-s-online-error

Gives

Who's Online Error

- vBulletin Community Forum


Changing the code in Autolink.php to:

PHP:
$urlTitle = str_replace(array("\n", "\r", "\t"), '', trim($urlTitle));

seems to sort it

Just looking for \r\n together doesn't work. Not investigated it too closely but I'm guessing there must be some invisible junk characters in there somewhere?

(Edited to add \t as there is tabs in there too!)
 
Last edited:
Hi, @Chris Deeming !
At first i'd like to thank you for your add-on.
Well and my issue,
when i'm posting link like that - hcv.ru/information/facts/htm/extrahepatic.html
I'm always get such error -
Mysqli statement execute error : Incorrect string value: '\xCE\xF1\xF2\xE0\xED\xEE...' for column 'message' at row 1
 
Back
Top Bottom