• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Automatic URL Aliases - Automatic URL conversion 1.2.3

No permission to download
R

ragtek

Guest
#1
R

ragtek

Guest
#2
ragtek updated Automatic URL Aliases - Automatic URL conversion with a new update entry:

Automatic URL Aliases - Automatic URL conversion

This is a QUICK bugfix release fixing a problem with grabing the titles from pages with some special charsets...

I'll try to find a real fix for this, ATM i've changed the code to return the url instead of the title, if there were some problems with grabing the title

thx to archet for the report:) http://ragtek.org/xenforo/threads/automatic-url-aliases-automatic-url-conversion-bug.461/
Read the rest of this update entry...
 

Kintaro

Well-known member
#4
Thank you ragtek!

Some bugs:
If the link is of a banned user's profiles I get "Error | website.ext"
If the link is of a hidden forum (example moderator's forum), url is not converted.
 
R

ragtek

Guest
#5
Thank you ragtek!

Some bugs:
If the link is of a banned user's profiles I get "Error | website.ext"
If the link is of a hidden forum (example moderator's forum), url is not converted.
of course it's not, because the title are grabed from an "guest session" and if a guest gets an "error ..." title, then the url converter will get it too;)
 

Kintaro

Well-known member
#8
Yes, I know that. But I don't want to remove/change it from the normal use.

...at the end in my forum there's not to much use of internal links so the title of the board can be usefull to let the user know if the link is internal or not.
So finally I think I'm ok with that. (y)
 
#11
A very easy to implement suggestion:

Use the PHP function html_entity_decode to translate all HTML special characters:
http://ascii.cl/htmlcodes.htm

In BbCodeAutolink.php
PHP:
    protected function _getPageTitle($url)
    {
        $pageTitle = XenForo_Helper_Url::getTitle($url, $url);
        if (utf8_check($pageTitle))
        {
            return html_entity_decode( str_replace("\n", "", $pageTitle), ENT_QUOTES, 'UTF-8' );
        }
        return $url;
    }
 
#12
A very easy to implement suggestion:

Use the PHP funcion html_entity_decode to translate all HTML special characters:
http://ascii.cl/htmlcodes.htm

In BbCodeAutolink.php
PHP:
    protected function _getPageTitle($url)
    {
        $pageTitle = XenForo_Helper_Url::getTitle($url, $url);
        if (utf8_check($pageTitle))
        {
            return html_entity_decode( str_replace("\n", "", $pageTitle), ENT_QUOTES, 'UTF-8' );
        }
        return $url;
    }
Thanks! Solve the caracter problem... to me too.
 

MOZ

Well-known member
#14
Excellent addon, however I have been getting an error when I have a link inside another BBCode such as SPOILER. Any solution?
 
#18
Code:
Error
The files associated with this add-on could not be found. Please upload them and try again.

I got that error when installing...

NB: folder library uploaded

thanks
 

Chris D

XenForo developer
Staff member
#19
That error always means the files have been uploaded to the wrong place.

Either:

Upload the contents of the upload folder to the root of your site

Or:

Find the Ragtek folder and upload that to your library folder.