Resource icon

Automatic URL Aliases - Automatic URL conversion 1.2.3

No permission to download
  • Thread starter Thread starter ragtek
  • Start date Start date
hm, no documentation said, it's using streams and curl is only fallback
PHP:
class XenForo_Helper_Http
{
/**
* Gets a Zend_Http_Client object, automatically switching to cURL if the
* specified URL can't be handled by streams.
*
* @param string $uri
* @param array $options
*
* @return Zend_Http_Client
*/
public static function getClient($uri, array $options = array())
{


but once i find some time for this, i'll try to see how i can fix this.
 
Oh, that would make sense then.
Would you mind if I edited your addon to make it work with files, or would you rather let me wait till you get a version released.
 
Oh, that would make sense then.
Would you mind if I edited your addon to make it work with files, or would you rather let me wait till you get a version released.
no, would be great if somebody else would do this, because i'm really busy with 2 other addons ATM :(
 
Because of he's using too many no-needed function. Try my one if it could help.
I like your version (it solves the issues).

But it seems it doesn't allow you to forum links... ie....

I post this in my sig

Follow us on Twitter
Follow us on Google +
Support us and make a Donation


But it gets converted into this
 
Edit:
ragtek´s and sonnb´s are running. I cant get the difference, what to prefer?!
 
This is fantastic!
Just had a member ask me the other day why our urls don't do this like they used to.
haven't run into any issues but I'm sure they'll let me know if we do.

Thanks D
 
Anyone run into problems with & in the title?
Mine are parsing with &amp in the displayed url.
 
Ragtek,

Could you possibly wrap a catch around the call to _getPageTitle, line 32 of BBCodeAutolink.php, like this:

PHP:
            try
           {
               $pageTitle = $this->_getPageTitle($link['url']);
           }
           catch (Exception $e)
           {
           return $url;
           }
                $tag = '[url="' . $link['url'] . '"]' . $pageTitle . '[/url]';
            }

This catches any malformed URL's that people post, rather than an error being tossed by XF.

For instance, on my forum, which is a tech support site, we often use {placeholders} in posted strings, as that's a feature of our product. So folk might post some example code like ...

return "http://foo.com/{tablename___image_element_name}.jpg";

... which blows up without that try/catch.

-- hugh
 
Cheesegrits,

I would like to point out that ragtek left the XenForo community a long time ago and no longer has an account here.
 
Ah hah.

OK, well ... anyone know of an alternative to this addon that does the same thing?

If not, is there any kind of "process" for adopting orphaned addons?

-- hugh
 
I do not know of one, no. You could contact ragtek on another site or via Skype to request permission.
 
Testing locally, I can't reproduce that problem.

Can you give me a URL which exhibits this problem, when the link is rendered with the title?

-- hugh
 
Back
Top Bottom