cotonti.com : Create Alias From Title https://www.cotonti.com Последние сообщения в теме Cotonti en Thu, 16 Oct 2025 03:59:58 -0000 Lombi вт, 10 ноя 2009 01:11:27 -0000 musiconly
Since I haven't found solution for this specific problem, I included capitalized letters in array :)]]>
сб, 07 ноя 2009 23:13:08 -0000
Lombi

just make another line, using BIG CHARACTERS :D]]>
сб, 07 ноя 2009 21:40:22 -0000
musiconly
seems to me i'll have to add capitalized letters in that replacement array :(]]>
пт, 06 ноя 2009 02:19:58 -0000
GHengeveld чт, 05 ноя 2009 20:29:39 -0000 musiconly чт, 05 ноя 2009 16:24:19 -0000 Kilandor чт, 05 ноя 2009 09:31:14 -0000 musiconly outputs:
Đorđe Balašević opet u Kerempuhu - �orde_balasevic_opet_u_kerempuhu_22
changed format from ansi, to uft8 without bom, utf8.. and still weird char:S]]>
чт, 05 ноя 2009 07:33:48 -0000
GHengeveld
I'm sure there's an existing solution for this problem that I just don't know about.]]>
чт, 05 ноя 2009 07:24:06 -0000
musiconly

Here's the thing, since I have 10,000+ pages and around 50 of them have alias, I want to auto create alias from page title.

I want to do this because of few reasons:
1. Improve current SEO
2. Prepare database for Cotonti(yep, still using Sed125) - my nice urls will look like site.com/category/alias

Anyways, I'm not even a mediocre PHP programmer so don't laugh at my approach. It's almost working :D

Basic idea (since my titles consist of croatian letters like č,ć,š,ž,đ):
Turn: Đorđe Balašević - koncert u Šibeniku
into: Dorde_Balasevic_koncert_u_Sibeniku


What's wrong? Well, I get this kind of output:

Đorđe Balašević opet u Kerempuhu - Đorde_Balasevic_opet_u_Kerempuhu_22
Šta ćeš bez mene? - Šta_ces_bez_mene_28

And it should be
Đorđe Balašević opet u Kerempuhu - Dorde_Balasevic_opet_u_Kerempuhu_22
Šta ćeš bez mene? - Sta_ces_bez_mene_28

As you can see, output IS case sensitive, and it shouldn't be since I'm using str_ireplace. Right?

I don't get it :O

And second thing, has anyone created this "plugin" already and is willing to share it :D I'm sure lots of people could use it.

Thanks in advance!]]>
чт, 05 ноя 2009 06:00:38 -0000