News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Pretty URLs

Started by SMFHacks.com Team, January 31, 2007, 10:56:43 AM

Previous topic - Next topic

vbgamer45

Add ä
'ae'   =>   array ('æ', 'Æ'),
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

helpplease

Quote from: vbgamer45 on July 01, 2017, 12:06:08 PM
Add ä
'ae'   =>   array ('æ', 'Æ'),

But german letters don't have ('æ', 'Æ')  :-[ We have only Ä, Ü, Ö.


I want to change the ä, ü, ö into ae, ue, oe ... PrettyUrls make ä, ü, ö only into a, u, o.

Lets say I want to have the word "Österreich" (means Austria). PrettyUrls make: osterreich.

But it needs to be: oesterreich




vbgamer45

Yeah you would add it to that list
'ae'   =>   array ('æ', 'Æ','Ä'),
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

helpplease

How that should work?

'a'   =>   array ('a', 'A', 'à', 'À', 'á', 'Á', 'â', 'Â', 'ã', 'Ã', 'ä', 'Ä', 'å', 'Å', 'ª', 'ą', 'Ą', 'а', 'А', 'ạ', 'Ạ', 'ả', 'Ả', 'Ầ', 'ầ', 'Ấ', 'ấ', 'Ậ', 'ậ', 'Ẩ', 'ẩ', 'Ẫ', 'ẫ', 'Ă', 'ă', 'Ắ', 'ắ', 'Ẵ', 'ẵ', 'Ặ', 'ặ', 'Ằ', 'ằ', 'Ẳ', is already on file??

So what needs to be deleted in order to make this works??

Anyone has the full code for that?

vbgamer45

I would take it out of that array.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

helpplease

I need the full code to do it!   Else, it will not work and I will ruin my small forum :-[

helpplease

//   Do you know your ABCs?
   $characterHash = array (
      'a'   =>   array ('a', 'A', 'à', 'À', 'á', 'Á', 'â', 'Â', 'ã', 'Ã', 'å', 'Å', 'ª', 'ą', 'Ą', 'а', 'А', 'ạ', 'Ạ', 'ả', 'Ả', 'Ầ', 'ầ', 'Ấ', 'ấ', 'Ậ', 'ậ', 'Ẩ', 'ẩ', 'Ẫ', 'ẫ', 'Ă', 'ă', 'Ắ', 'ắ', 'Ẵ', 'ẵ', 'Ặ', 'ặ', 'Ằ', 'ằ', 'Ẳ', 'ẳ'),
      'ae' =>   array ('ä', 'Ä'),
      'b'   =>   array ('b', 'B'),
      'c'   =>   array ('c', 'C', 'ç', 'Ç', 'ć', 'Ć', 'č', 'Č'),
      'd'   =>   array ('d', 'D', 'Ð', 'đ', 'Đ', 'ď', 'Ď'),
      'e'   =>   array ('e', 'E', 'è', 'È', 'é', 'É', 'ê', 'Ê', 'ë', 'Ë', 'ę', 'Ę', 'е', 'Е', 'ё', 'Ё', 'э', 'Э', 'Ẹ', 'ẹ', 'Ẻ', 'ẻ', 'Ẽ', 'ẽ', 'Ề', 'ề', 'Ế', 'ế', 'Ệ', 'ệ', 'Ể', 'ể', 'Ễ', 'ễ', 'ε', 'Ε', 'ě', 'Ě'),
      'f'   =>   array ('f', 'F'),
      'g'   =>   array ('g', 'G', 'ğ', 'Ğ'),
      'h'   =>   array ('h', 'H'),
      'i'   =>   array ('i', 'I', 'ì', 'Ì', 'í', 'Í', 'î', 'Î', 'ï', 'Ï', 'ı', 'İ', 'Ị', 'ị', 'Ỉ', 'ỉ', 'Ĩ', 'ĩ', 'Ι', 'ι'),
      'j'   =>   array ('j', 'J'),
      'k'   =>   array ('k', 'K', 'к', 'К', 'κ', 'Κ'),
      'l'   =>   array ('l', 'L', 'ł', 'Ł'),
      'm'   =>   array ('m', 'M', 'м', 'М', 'Μ'),
      'n'   =>   array ('n', 'N', 'ñ', 'Ñ', 'ń', 'Ń', 'ň', 'Ň'),
      'o'   =>   array ('o', 'O', 'ò', 'Ò', 'ó', 'Ó', 'ô', 'Ô', 'õ', 'Õ', 'ø', 'Ø', 'º', 'о', 'О', 'Ọ', 'ọ', 'Ỏ', 'ỏ', 'Ộ', 'ộ', 'Ố', 'ố', 'Ỗ', 'ỗ', 'Ồ', 'ồ', 'Ổ', 'ổ', 'Ơ', 'ơ', 'Ờ', 'ờ', 'Ớ', 'ớ', 'Ợ', 'ợ', 'Ở', 'ở', 'Ỡ', 'ỡ', 'ο', 'Ο'),
      'oe' =>   array ('ö', 'Ö'),
      'p'   =>   array ('p', 'P'),
      'q'   =>   array ('q', 'Q'),
      'r'   =>   array ('r', 'R', 'ř', 'Ř'),
      's'   =>   array ('s', 'S', 'ş', 'Ş', 'ś', 'Ś', 'š', 'Š'),
      'ss'   =>   array ('ß'),
      't'   =>   array ('t', 'T', 'т', 'Т', 'τ', 'Τ', 'ţ', 'Ţ', 'ť', 'Ť'),
      'u'   =>   array ('u', 'U', 'ù', 'Ù', 'ú', 'Ú', 'û', 'Û', 'Ụ', 'ụ', 'Ủ', 'ủ', 'Ũ', 'ũ', 'Ư', 'ư', 'Ừ', 'ừ', 'Ứ', 'ứ', 'Ự', 'ự', 'Ử', 'ử', 'Ữ', 'ữ', 'ů', 'Ů'),
      'ue' =>   array ('ü', 'Ü'),


I made the modification, don't work!!!  :(

Deleted forum Cache, stopped PrettyUrls, activated again...Nothing! All the same.


I want to change the ä, ü, ö into ae, ue, oe ... PrettyUrls make ä, ü, ö only into a, u, o.

Lets say I want to have the word "Österreich" (means Austria). PrettyUrls make: osterreich.

But it needs to be: oesterreich

confuseamuse

Does this permanently change the original urls, or does it add these pretty urls as alternates?

vbgamer45

changes the orginal ones does a redirect
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

confuseamuse

Quote from: vbgamer45 on July 03, 2017, 11:28:00 AM
changes the orginal ones does a redirect

If I was to move a topic to another board, doesn't that render the pretty url useless?

vbgamer45

Not sure give it a test
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

confuseamuse

Quote from: vbgamer45 on July 03, 2017, 07:13:22 PM
Not sure give it a test

No need to worry. I decided to change it so that Boards and Topics don't have rewritten urls. Only actions do.


Tair

Quote from: vbgamer45 on June 29, 2017, 05:24:21 PM
Did you change your database characterset?

Hi vbgamer45

Is here any news about my problem?

vbgamer45

No sorry I don't have time to look deeply into it.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Tair

Seems its a huge problem with last SMF version.

Xabier

Is there any way to make this mod work with SSL? It just says once and again that the URL can't be found (404)

Tair

You should change all the settings in smf.settings table manualy, after mod will work.

SMFHacks.com Team

1.1.4
+Added setting to set/change the pretty url root. in SMF 2.0
+Updated prettyurls news location.
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

bod22

Hi, I'm good at SMF and that's why I need your help. I've noticed that smf_pretty_urls_cache in my database weighs a lot - about 300MB. I'm curious is it normal? Is there a way to somehow reduce this size, e.g by deleting this table or deleting plugin and installing its latest version? I've got 1.1.2 version. I don't want to damage anything that's why I'm asking. Thanks up front for you help.

vbgamer45

That is normal since it stores all the urls and possible actions.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: