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

Converting Non English Url to English Url?

#1
I am using XenForo for turkish website.

For example;

my threads title is "üsküdara-giderken"

how can I make url as "uskudara-giderken"?

Because wordpress can do this.
 

Jake Bunce

XenForo moderator
Staff member
#2
There is a flag for this in the code but there is no configurable option for it. It requires code edit:

library/XenForo/Link.php

Add the red code:

Code:
	public static function buildBasicLinkWithIntegerParam($prefix, $action, $extension, $data, $intField, $titleField = '')
	{
		if ((is_array($data) || $data instanceof ArrayAccess) && isset($data[$intField]))
		{
			self::prepareExtensionAndAction($extension, $action);

			$title = (($titleField && !empty($data[$titleField])) ? $data[$titleField] : '');
			return "$prefix/" . self::buildIntegerAndTitleUrlComponent($data[$intField], $title, true) . "/$action$extension";
		}
		else
		{
			return false;
		}
	}