1. 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?

Discussion in 'XenForo Questions and Support' started by vefaliahmet, Aug 31, 2012.

  1. vefaliahmet

    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.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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;
    		}
    	}
    
     

Share This Page