Son Konu

Xenforo Türkçe karakter sorunu

bilgiliadam

Yeni Üye
Katılım
16 Ağu 2017
Mesajlar
1,516,397
Tepkime
31
Puanları
48
Credits
-6,413
Geri Bildirim : 0 / 0 / 0
Xenforo Türkçe kişilik sorunu Xenforo türkçe şahsiyet sorununu nasıl halledebilirim ? Xenforo Ç Ö Ü Ş gibi harflerin görünmemesini nasıl sağlarım? Merhabalar kıymetli arkadaşlarım Türkiye'nin en büyük bayan sitelerinden birisi olarak vbullettin forum bölümünü biliyorsunuz xenforo olarak bitmiş convert ettik ve kullanmaya başladık Çokta hoşumuza gittiğini söyleyebiliriz Şu Anda konu açtığınızda içerisinde türkçe harfler var ise ayrıca link garip çıkıyor hemde linki bir yerde paylaştığınız süre yüzde işaretlerine benzer bazı şekiller çıkıyor Bunun seo yada google açısından ilk olarak hiç bir şekilde sakınca taşımadığının altını çizmek istiyorum Vbseo daki şahsiyet url lerini; LİBRARYXENFORO linkphp dosyasına entegre ederek bu sorundan kurtulabilmeniz mümkün olacaktır Xenforo 120 istikrarlı sürüm için kendimde editlediğim linkphp dosyasının kod içeriği tıpkı aşağıdaki şekildeki gibidir Sizlerde ilgili dosyayı açarak aşağıdaki kodların tamamını ilgili dosya içindeki kodları silerek yapıştırıp kayıt ederseniz bıkkınlık olan karakterler düzelecektir Saygılar sunuyorum ANEKDOT: İLGİLİ BU DOSYA 22072019 TARİHİNDE XENFORO 149 VERSİYONUNA TARAFINDAN DÜZENLENMİŞTİR AYNI ZAMANDA AŞAĞIDAN DA İNDİREBİLİRSİNİZ KOD OLARAK EKLENEN BÜTÜN YAPIYI LİNKPHP DOSYASINA KOPYALAYIP YAPIŞTIRARAK TA KULLANABİLİRSİNİZ AYRICA Linkphp dosyasını TIKLAYARAKTA İNDİREBİLİRSİNİZ PHP: dir ltr ?php ** * Helper methods to generate links to content Links generated * by this are anekdot necessarily HTML escaped The calling code * should escape them for the output context they apply to * * @package XenForoCore class XenForoLink null protected static $canonicalLinkPrefix null; * If true, uses friendly URLs that don't include indexphp or a query string (unless required) * * @var boolean protected static $useFriendlyUrls false; * If true, Romanize titles before outputting them in URLs * * @var boolean protected static $romanizeTitles false; protected static $includeTitlesInUrls true; protected static $routeFiltersOut array(); * @var string protected static $indexRoute 'forums'; protected $linkString ''; protected $canPrependFull true; * Constructor Use the static methods in general However, you can create * an object of this type from a link builder to generate an arbitrary URL * * @param string $linkString * @param boolean $canPrependFull True if the default full link prefix can be prepended to make a full URL public function construct($linkString, $canPrependFull true) } } if (self::$useFriendlyUrls || $isRaw) $outputLink ($queryString ! '' ? $link?$queryString: $link); else if ($queryString ! '' && $link ! '') if ($skipPrepend) $outputLink $append; else $outputLink 'indexphp' $append; } if ($fullLink && $canPrependFull) $outputLink $fullLinkPrefix $outputLink; deal with a hash in the $type xen:link prefix#hash if (($hashPos strpos($type, '#')) ! false) $hash substr($type, $hashPos + 1); if ($outputLink '') $outputLink ''; return $outputLink (empty($hash) ? '' : '#' $hash); } * Builds a link to lahza admin resource The type should contain a prefix * optionally split by a with the specific action (eg templatesedit) * * @param string $type Prefix and action * @param mixed $data Bilgi that the prefixaction should be applied to, if applicable * @param array $extraParams Additional params * * @return string The link public static function buildAdminLink($type, $data null, array $extraParams array()) $type self::checkForFullLink($type, $fullLink, $fullLinkPrefix); $link self::buildLink('admin', $type, $data, $extraParams); $queryString self::buildQueryString($extraParams); if (strpos($link, '#') ! false) * Builds a link along the lines of refixsubcomponentdataidaction * * @param array $subComponents List of subcomponents that are valid as keys, with specific child keys (title, intId, stringId) * @param string $outputPrefix * @param string $action * @param string $extension * @param mixed $data * * @return string|false String if subcomponent matched with appropriate bilgi, false otherwise public static function buildSubComponentLink(array $subComponents, $outputPrefix, $action, $extension, $veri) $parts explode('', $action, 2); $subComponentName strtolower($parts0); foreach ($subComponents else if (isset($subComponent'stringId')) bilgi, $subComponent'stringId'); } else return false; } } return false; } * Check to see if a full link is requested * * @param string $type Link type * @param boolean $fullLink Modified by ref Returns whether a full link is requested * @param string $fullLinkPrefix If a full link is requested, the prefix to use * * @return string Link type, with full link param stripped off if necessary protected static function checkForFullLink($type, &$fullLink, &$fullLinkPrefix) if (!$type) * Internal link builder * * @param string $group Type of link being built (admin or public) * @param string $type Type of veri the link is for (prefix and action) * @param mixed $bilgi * @param array $extraParams * @param string|null $prefix The prefix found * * @return string protected static function buildLink($group, $type, $veri, array &$extraParams, &$prefix null) if (isset($extraParams'params') && isarray($extraParams'params')) else $prefix $type; $action ''; unset($type); $handler self::getPrefixHandler($group, $prefix, (boolean)$data); if ($handler false) $link false; else $link $handlerbuildLink($prefix, $prefix, $action, $extension, $data, $extraParams); if ($link false || $link null) return self::buildBasicLink($prefix, $action, $extension); else return $link; } * Gets the object that should handle building the link for this prefix * May also return false if only the standard behavior is desired * * @param string $group Type of link (public or admin) * @param string $originalPrefix Prefix to build the link for (should be the original prefixin the DB) * @param boolean $haveData Whether we have a veri element * * @return object|false Object with buildLinkmethod or false protected static function getPrefixHandler($group, $originalPrefix, $haveData) if (!isset(self::$handlerCache$group)) else if (!isset($info'handlerNoData')) } * Load the prefix link build handler class based on current settings * * @param array $info Info about how to build this link (includes buildlink, routeclass keys) * @param boolean $haveData True if we have a veri param for this link * * @return object|false Object with buildLinkmethod or false protected static function loadPrefixHandlerClass(array $info, $haveData) if ($info'buildlink' 'none' (and we don't now) return false; } if ($info'buildlink' 'all') always build check for a previous call if (isset($info'handlerWithData')) otherwise load the class we need $class XenForoApplication::resolveDynamicClass($info'routeclass', 'routeprefix'); if (!$class) return false; $handler new $class(); if (!methodexists($handler, 'buildLink')) return false; return $handler; } * Loads all the link build handler veri for an entire group of prefixes * * @param string $group Type of prefix (public or admin) * * @return array Keys are original prefixesand values are info about output prefixclassbuild settings protected static function loadHandlerInfoForGroup($group) return XenForoModel::create('XenForoModelRoutePrefix')getPrefixesForRouteCache($group); * Gets the name of the specified prefix handler class * * @param string $group * @param string $prefix * * @return string|false public static function getPrefixHandlerClassName($group, $prefix) if (!isset(self::$handlerCache$group)) * Examines action and extra parameters from a link build call and formulates * a page number link parameter if applicable * * @param string $action * @param array $params * * @return string $action public static function getPageNumberAsAction($action, array &$params) if (isset($params'page')) } return $action; } * Helper to manually set handler info for a group Keys should be original prefixes* and values should be arrays with keys matching the xfrouteprefix table * * @param string $group Type of prefix to handle (public or admin) * @param array $info Info to set public static function setHandlerInfoForGroup($group, array $info) self::$handlerCache$group $info; * Gets the handler info for the group of prefixes * * @param string $group * * @return array public static function getHandlerInfoForGroup($group) if (!isset(self::$handlerCache$group)) * Resets the handlers for all groups or for a particular group Mainly used for testing * * @param string|false $group If false, resets all handlers; otherwise, resets the specified handler group public static function resetHandlerInfo($group false) if ($group false) * Builds a basic link: a prefix and action only * * @param string $prefix * @param string $action * @param string $extension * * @return string public static function buildBasicLink($prefix, $action, $extension '') if ($extension) * Prepares the link extension and action, if necessary If an extension is specified, * the provided value will be prefixed with a If there is lahza extension and there's * no action, lahza explicit indexaction will be specified * * @param string $extension Initially, the extension to the link specified; prefixed with if necessary * @param string $action The link action; modified if necessary public static function prepareExtensionAndAction(&$extension, &$action, $prepareAction true) if ($extension) } * Builds a basic link for a request that may have lahza integer param * Output will be in the format prefixtitleintaction or similar, * based on whether the correct values in data are set * * @param string $prefix Link prefix * @param string $action Link action * @param string $extension Link extension (for content type) * @param mixed $data Specific bilgi to link to If available, lahza array or lahza object that implements ArrayAccess * @param string $intField The name of the field that holds the integer identifier * @param string $titleField If there is a field, the name of the field that holds the * * @return false|string False if no data is provided, the link otherwise public static function buildBasicLinkWithIntegerParam($prefix, $action, $extension, $veri, $intField, $titleField '') bilgi) || $data instanceof ArrayAccess) && isset($veri$intField)) self::prepareExtensionAndAction($extension, $action); $ (($titleField && !empty($ else return false; } * Builds a basic link for a request that may have a string param * Output will be in the format prefixparamaction * * Note that it is expected that the string param is already clean enough * to be inserted into the link * * @param string $prefix Link prefix * @param string $action Link action * @param string $extension Link extension (for content type) * @param mixed $bilgi Specific bilgi to link to If available, lahza array or an object that implements ArrayAccess, or a simple string to be used directly * @param string $strField The name of the field that holds the string identifier * * @return false|string False if no data is provided, the link otherwise public static function buildBasicLinkWithStringParam($prefix, $action, $extension, $data, $strField) bilgi) self::prepareExtensionAndAction($extension, $action); if ((isarray($ else if (isstring($data)) return $prefix$data$action$extension; } return false; } * Builds the URL component for an integer and title Outputs int or inttitle * * @param integer $integer * @param string $* @param boolean|null $romanize If true, nonlatin strings are romanized If null, use default setup * * @return string public static function buildIntegerAndTitleUrlComponent($integer, $ '', $romanize null) if ($&& self::$includeTitlesInUrls) return intval($integer); } * Cache for getting preppedRomanized titles for URLs * * @var array protected static $titleCache array(); * Gets version of a that is valid in a URL Invalid elements are stripped * or replaced with '' It may not be possible to reverse a URL'd to the * original title * * @param string $* @param boolean $romanize If true, nonlatin strings are romanized * * @return string public static function getTitleForUrl($title, $romanize false) $ strval($title); $lookup $ ($romanize ? ' if ($romanize) $ utf8romanize(utf8deaccent($title)); $ strtr( $title, '`!$%^&()+ ;:mad:#~,?|' rnt\, ' ' ' ' ); $ strtr($title, array( '' '', ' '', Ö o, ö o, C c, c c, Ğ g, ğ g, Ş s, ş s, Ü u, ü u, İ i, ı i, Ç c, ç c, é i, â a, Ê e, Â a, ? , , , , , ; , ) , ( , , , , , ! , + , % , & , # , $ , , ê e, )); if ($romanize) $ pregreplace('^azAZ09 ', '', $title); $ pregreplace(' +', '', trim($title)); $ strtr($title, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); self::$titleCache$lookup $title; return $title; } * * Builds a query string from lahza array of items Keys of the array will become * names of items in the query string Nested arrays are supported * * @param array $elements Elements to build the query string from * @param string $prefix For nested arrays, specifies the base context we're in * Leave default unless wanting all elements inside lahza array * * @return string public static function buildQueryString(array $elements, $prefix '') $output array(); foreach ($elements AS $name $value) else $value strval($value); if ($prefix) lahza array $output $prefix '' urlencode($name) ' ' urlencode($value); } else $output urlencode($name) ' ' urlencode($value); } } return implode('&', $output); } * * Set the prefix for links that are generated birli canonical links * * @param string $linkPrefix public static function setCanonicalLinkPrefix($linkPrefix) self::$canonicalLinkPrefix self::convertUriToAbsoluteUri($linkPrefix, true); * * Gets the canonical link prefix to use for generating canonical links * * @return string public static function getCanonicalLinkPrefix() if (self::$canonicalLinkPrefix null) * * Sets whether friendly URLs should be used for generating links * * @param boolean $value public static function useFriendlyUrls($value) self::$useFriendlyUrls $value; * * Sets whether friendly titles should be romanized in links * * @param boolean $value public static function romanizeTitles($value) self::$romanizeTitles $value; * * Sets whether titles will be included in URLs * * @param boolean $value public static function includeTitlesInUrls($value) self::$includeTitlesInUrls $value; * * Sets whether titles will be included in URLs * * @param array $value public static function setRouteFiltersOut(array $value) self::$routeFiltersOut $value; * * Sets the index route * * @param $value public static function setIndexRoute($value) self::$indexRoute $value; * * @return string public static function getIndexRoute() return self::$indexRoute; * * Converts what may be a relative link into lahza absolute URI * * @param string $uri URI to convert * @param boolean $includeHost If true, includes host, port, and protocol * @param array|null $paths Paths to override (uses application level if not provided) * * @return string public static function convertUriToAbsoluteUri($uri, $includeHost false, array $paths null) if (!$paths) else if (pregmatch('#^az09+:#i', $uri)) return $uri; else if ($includeHost) return $paths'fullBasePath' $uri; else return $paths'basePath' $uri; } public static function translateRouteFilterToRegex($from, $to) $to strtr($to, array('\' '\\', '$' '\$')); $findReplacements array(); $replacementChr chr(26); pregmatchall('i', $from, $matches, PREGSETORDER); foreach ($matches AS $i $match) $placeholder $replacementChr $i $replacementChr; if (!empty($match3)) else $replace '(^)'; $findReplacements$placeholder $replace; $from strreplace($match0, $placeholder, $from); $to strreplace($match0, '$' ($i + 1), $to); } $from pregquote($from, '#'); foreach ($findReplacements AS $findPlaceholder $findReplacement) $from strreplace($findPlaceholder, $findReplacement, $from); return array('#^' $from '#', $to); } }  
 
Üst Alt