Converting Non English Url to English Url?

vefaliahmet

Member
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.
 
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:

Rich (BB 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;
		}
	}
 
Top Bottom