Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Soe url turkish character title problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Soe url turkish character title problem

 Post Reply Post Reply
Author
muhittinemmi View Drop Down
Newbie
Newbie
Avatar

Joined: 13 June 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote muhittinemmi Quote  Post ReplyReply Direct Link To This Post Topic: Soe url turkish character title problem
    Posted: 31 October 2019 at 8:51pm



What can be done so that the Turkish characters are not deleted from the link title?

sample
Türkçekarakter


result:
forum_posts.asp?TID=10406&title=trkekarakter


What should I do to have it as follows
forum_posts.asp?TID=10406&title=turkcekarakter




Edited by muhittinemmi - 01 November 2019 at 7:06pm
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Online
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 04 November 2019 at 12:08pm
Sorry only ASCII characters are supported by the SEO Title.

For Turkish you should disable "Page Titles in URL" from the SEO page in the forum admin area.
Back to Top
yandr View Drop Down
Groupie
Groupie


Joined: 10 March 2009
Status: Offline
Points: 106
Post Options Post Options   Thanks (0) Thanks(0)   Quote yandr Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2020 at 1:41pm
I have the same issue, but with Greek characters.

Is there a technical reason you do not allow that? There are other forums that provide URL rewrites for any language so I was wondering if you can just point me to where I could investigate and enhance this.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Online
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2020 at 7:51am
I believe that the problem was at the time it was developed that many browsers could only handle URL's that used ASCII characters.

The function that creates the URL Rewrite page names is called 'SeoUrlTitle' in the 'functions_filters.asp' file.

By restricting the characters to ASCII characters it prevents the forum from being hacked as it also strips out any dangerous tags from being included in the URL.
Back to Top
yandr View Drop Down
Groupie
Groupie


Joined: 10 March 2009
Status: Offline
Points: 106
Post Options Post Options   Thanks (0) Thanks(0)   Quote yandr Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2020 at 1:24pm
Related to this subject, it would be preferable if page_link_inc.asp would create the SEO formated links instead of the ones with the parameters, by incorporating the SeoUrlTitle function.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Online
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2020 at 3:46pm
Not all links can be configured as they can pass a large range of different data. Page links is one of these.
Back to Top
muhittinemmi View Drop Down
Newbie
Newbie
Avatar

Joined: 13 June 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote muhittinemmi Quote  Post ReplyReply Direct Link To This Post Posted: 21 February 2021 at 8:59am
Originally posted by muhittinemmi muhittinemmi wrote:




What can be done so that the Turkish characters are not deleted from the link title?

sample
Türkçekarakter


result:
forum_posts.asp?TID=10406&title=trkekarakter


What should I do to have it as follows
forum_posts.asp?TID=10406&title=turkcekarakter




functions/functions_filters.asp

Find


'*************************************
'*** SEO Friendly URL Titles   *****
'**************************************

'for URL rewrite search engine friendly page titles
Private Function SeoUrlTitle(ByVal strInputEntry, strPrefix)

    Dim intLoopCounter
    Dim objRegExp

    If blnSeoTitleQueryStrings = False Then Exit Function
    
    'Swap to lower case
    strInputEntry = strInputEntry
    
    'Remove any HTML encoding
    strInputEntry = decodeString(strInputEntry)

    strInputEntry = Replace(strInputEntry, "_", " ", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, ".", " ", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "/", " ", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "+", " ", 1, -1, 1)

Add below
strInputEntry = Replace(strInputEntry,     "ş", "s", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "ı", "i", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "ç", "c", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "ü", "u", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "ö", "o", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "ğ", "g", 1, -1, 1)

result
forum_posts.asp?TID=10406&title=turkcekarakter
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.