Advertisement:

Author Topic: Pretty URLs  (Read 2264056 times)

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 57,350
  • Gender: Male
    • Kindred-999 on GitHub
Re: Pretty URLs
« Reply #7640 on: February 17, 2018, 05:19:18 PM »
in short... no.   Think about it... there could be 2 dozen threads titled "help me"
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline JTVaughn

  • Jr. Member
  • **
  • Posts: 177
Re: Pretty URLs
« Reply #7641 on: February 19, 2018, 05:55:25 AM »
in short... no.   Think about it... there could be 2 dozen threads titled "help me"

But there's only 1 tag of each name, you can't have duplicate tags, right?

Offline pocttopus

  • Jr. Member
  • **
  • Posts: 322
    • @pocttopus on Twitter
Re: Pretty URLs
« Reply #7642 on: February 23, 2018, 03:03:39 PM »
Hello there,

After installation of prettyUrls, this mod (Theme changer) is not working any more. :-[
https://custom.simplemachines.org/mods/index.php?mod=3356

Is there any way to solve the issue and be able running both modifications!?  ???

Thanks!

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,643
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7643 on: February 23, 2018, 03:10:54 PM »
I don't think so.
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

Offline pocttopus

  • Jr. Member
  • **
  • Posts: 322
    • @pocttopus on Twitter
Re: Pretty URLs
« Reply #7644 on: February 23, 2018, 03:16:37 PM »

Offline digger

  • Sr. Member
  • ****
  • Posts: 741
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community
Re: Pretty URLs
« Reply #7645 on: March 15, 2018, 07:35:18 AM »
vbgamer45, update characterHash array to support cyrillic, please.

Code: [Select]
// 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', 'ò', 'Ò', 'ó', 'Ó', 'ô', 'Ô', 'õ', 'Õ', 'ö', 'Ö', 'ø', 'Ø', 'º', 'о', 'О', 'Ọ', 'ọ', 'Ỏ', 'ỏ', 'Ộ', 'ộ', 'Ố', 'ố', 'Ỗ', 'ỗ', 'Ồ', 'ồ', 'Ổ', 'ổ', 'Ơ', 'ơ', 'Ờ', 'ờ', 'Ớ', 'ớ', 'Ợ', 'ợ', 'Ở', 'ở', 'Ỡ', 'ỡ', 'ο', 'Ο', 'о', 'О'),
'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', 'ù', 'Ù', 'ú', 'Ú', 'û', 'Û', 'ü', 'Ü', 'Ụ', 'ụ', 'Ủ', 'ủ', 'Ũ', 'ũ', 'Ư', 'ư', 'Ừ', 'ừ', 'Ứ', 'ứ', 'Ự', 'ự', 'Ử', 'ử', 'Ữ', 'ữ', 'ů', 'Ů', 'у', 'У'),
'v' => array ('v', 'V', 'в', 'В'),
'w' => array ('w', 'W'),
'x' => array ('x', 'X', '×'),
'y' => array ('y', 'Y', 'ý', 'Ý', 'ÿ', 'Ỳ', 'ỳ', 'Ỵ', 'ỵ', 'Ỷ', 'ỷ', 'Ỹ', 'ỹ', 'ы', 'Ы'),
'z' => array ('z', 'Z', 'ż', 'Ż', 'ź', 'Ź', 'ž', 'Ž', 'Ζ', 'з', 'З'),
'jo' => array ('ё', 'Ё'),
'zh' => array ('ж', 'Ж'),
'ch' => array ('ч', 'Ч'),
'sh' => array ('ш', 'Ш'),
'sch' => array ('щ', 'Щ'),
'eh' => array ('э', 'Э'),
'yu' => array ('ю', 'Ю'),
'ya' => array ('я', 'Я'),
'' => array ('ъ', 'Ъ', 'ь', 'Ь', '?', '«', '»', ':', '&', '+', '@', '%', '^', '№', '#'),
'-' => array ('-', ' ', '.', ','),
'_' => array ('_'),
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
"\x12" => array ("'", '"'),
'(' => array ('(', '{', '['),
')' => array (')', '}', ']'),
'$' => array ('$'),
'0' => array ('0'),
'1' => array ('1', '¹'),
'2' => array ('2', '²'),
'3' => array ('3', '³'),
'4' => array ('4'),
'5' => array ('5'),
'6' => array ('6'),
'7' => array ('7'),
'8' => array ('8'),
'9' => array ('9'),
);

Offline SMFHacks.com Team

  • Jr. Member
  • **
  • Posts: 363
    • smfhacks on Facebook
    • @smfhacks on Twitter
    • SMFHacks.com
Re: Pretty URLs
« Reply #7646 on: March 15, 2018, 10:31:21 AM »
Update 1.1.5
+Added support for cyrillic thanks to digger
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.

http://ForumRankings.net - Get Forum Ranked!
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline Gryzor

  • Sr. Member
  • ****
  • Posts: 772
  • Gender: Male
  • CPCwiki.eu - The Amstrad CPC Encyclopaedia!
    • CPCWiki
Re: Pretty URLs
« Reply #7647 on: March 16, 2018, 02:33:48 PM »
Not of use to me, but thanks for keeping it working :)

Out of curiosity, what happens if one posts in cyrillic without this latest version?

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,643
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7648 on: March 16, 2018, 02:35:48 PM »
The url won't have the proper character map
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

Offline Cola-Coca

  • SMF Hero
  • ******
  • Posts: 3,579
  • Gender: Male
Re: Pretty URLs
« Reply #7649 on: March 18, 2018, 03:25:37 PM »
Hi,

I can not find how configure 'Nginx' to works with mod 'PrettyURL'.  Nowhere I can find a tutorial (step by step) how to do it. I've looked at google search engine and here in the forum and nowhere is a tutorial for how to do it.  :-\
I LOVE SMF

Offline digger

  • Sr. Member
  • ****
  • Posts: 741
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community
Re: Pretty URLs
« Reply #7650 on: March 18, 2018, 03:30:36 PM »
Hi,

I can not find how configure 'Nginx' to works with mod 'PrettyURL'.  Nowhere I can find a tutorial (step by step) how to do it. I've looked at google search engine and here in the forum and nowhere is a tutorial for how to do it.  :-\

http://www.simplemachines.org/community/index.php?topic=371631.0

Offline Cola-Coca

  • SMF Hero
  • ******
  • Posts: 3,579
  • Gender: Male
Re: Pretty URLs
« Reply #7651 on: March 18, 2018, 10:01:47 PM »
Hi,

I can not find how configure 'Nginx' to works with mod 'PrettyURL'.  Nowhere I can find a tutorial (step by step) how to do it. I've looked at google search engine and here in the forum and nowhere is a tutorial for how to do it.  :-\

http://www.simplemachines.org/community/index.php?topic=371631.0

That's what I read, but I do not know where to put that long code, where to put it exactly or which file I must edit?


I LOVE SMF

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,643
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7652 on: March 18, 2018, 10:56:09 PM »
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

Offline Dwev

  • Jr. Member
  • **
  • Posts: 218
Re: Pretty URLs 1.0RC22 - Updated for SMF 2.0 RC3
« Reply #7653 on: March 23, 2018, 02:59:31 PM »
I have a problem with apostrophe / simple quote ( ' ) in the name of Boards : Firefox can open the page.

Boards without ' => ok
Boards with ' => not ok

I had this problem with the names of topics, Pretty URLs would write single apostrophes in the URLs.
They still worked, but that's not a good thing for indexing by search bots (which I could see in Google's Webmaster Tools) and not all browsers handel them well.

So we altered Sources/Subs-PrettyUrls.php like this:

Code: [Select]

'-' => array ('-', ' ', '.', ',', "'", '"'),
'_' => array ('_'),
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
//"\x12" => array ("'", '"'),

And all is well.

I would think that this works for Board URLs as well (same principle).

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,643
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7654 on: March 23, 2018, 03:01:55 PM »
Good to know might make the fix!
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

Offline digger

  • Sr. Member
  • ****
  • Posts: 741
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community
Re: Pretty URLs
« Reply #7655 on: March 31, 2018, 10:55:41 AM »
Update 1.1.5
+Added support for cyrillic thanks to digger

Please add another fix for non latin characters in topics if mysql default-character-set is not utf8. This will fix wrong topics in urls like this site.tld/correct-board-title/t123/msg456

In the PrettyUrls-Filters.php file

before
Code: [Select]
//    Query the database with these topic IDs

add
Code: [Select]
    // Fix for issue with non latin characters in topics if mysql default-character-set is not utf8
    global $db_character_set;
    if (!empty($db_character_set))
        $smcFunc['db_query']('set_character_set', '
            SET NAMES ' . $db_character_set,
            array()
        );


Offline SMFHacks.com Team

  • Jr. Member
  • **
  • Posts: 363
    • smfhacks on Facebook
    • @smfhacks on Twitter
    • SMFHacks.com
Re: Pretty URLs
« Reply #7656 on: March 31, 2018, 12:35:08 PM »
Update
1.1.6
!Fix for non latin characters in topics if mysql default-character-set is not utf8. This will fix wrong topics in urls like this site.tld/correct-board-title/t123/msg456 thanks to digger
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.

http://ForumRankings.net - Get Forum Ranked!
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline Dannii

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,212
  • Mind the volcano!
    • curiousdannii on GitHub
Re: Pretty URLs
« Reply #7657 on: April 10, 2018, 10:54:51 PM »
Good to see my old mod is still going strong :)
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,643
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7658 on: April 10, 2018, 11:01:42 PM »
Trying! I just did an upgrade for someone  that had phpBB seo to pretty urls that was fun.
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

Offline Gryzor

  • Sr. Member
  • ****
  • Posts: 772
  • Gender: Male
  • CPCwiki.eu - The Amstrad CPC Encyclopaedia!
    • CPCWiki
Re: Pretty URLs
« Reply #7659 on: April 11, 2018, 02:54:39 AM »
Indeed, that's one of the greatest mods out there. Its functionality should really be baked into SMF proper...