News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Pretty URLs

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

Previous topic - Next topic

Kindred

in short... no.   Think about it... there could be 2 dozen threads titled "help me"
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

JTVaughn

Quote from: Kindred on February 17, 2018, 05:19:18 PM
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?

pocttopus

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!

vbgamer45

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

pocttopus


digger

vbgamer45, update characterHash array to support cyrillic, please.


// 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'),
);

SMFHacks.com Team

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.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Gryzor

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?

vbgamer45

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

Cola-Coca

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

digger

Quote from: Cola-Coca 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.  :-\

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

Cola-Coca

Quote from: digger on March 18, 2018, 03:30:36 PM
Quote from: Cola-Coca 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.  :-\

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

vbgamer45

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

Dwev

Quote from: vivien on September 26, 2010, 12:22:16 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:


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


And all is well.

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

vbgamer45

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

digger

Quote from: SMFHacks.com Team on March 15, 2018, 10:31:21 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

//    Query the database with these topic IDs


add

    // 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()
        );


SMFHacks.com Team

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.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Dannii

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."

vbgamer45

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

Gryzor

Indeed, that's one of the greatest mods out there. Its functionality should really be baked into SMF proper...

Advertisement: