Forum Activity for @pch

pch
@pch
11/13/15 01:38:50PM
328 posts

Replacing special Latin characters in friendly URLs issue


Using Jamroom

I have this:

iconv

iconv support enabled
iconv implementation glibc
iconv library version 2.12

Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1
pch
@pch
11/13/15 01:30:11PM
328 posts

Replacing special Latin characters in friendly URLs issue


Using Jamroom

Well, how to check if it is installed on my server? I run a VPS.
pch
@pch
11/13/15 01:16:47PM
328 posts

Replacing special Latin characters in friendly URLs issue


Using Jamroom

Hello,

JR has an issue with replacing special latin characters in the friendly URLs.

Example: A profile with a French name like: François Hollande will get an url like this:

site.com/franois-hollande

Instead of:

site.com/francois-hollande

Special Latin characters (French, Spanish, Portuguese) are not been replaced. They are just being ignored/removed from the friendly URL url.

How to get it fixed in JR?

I have already used many other script on the internet that managed to fixed this issue with a String replace function.

Example:

$string = str_replace
       
array('á', 'à', 'ä', 'â', 'ª', 'Á', 'À', 'Â', 'Ä'),
array('a', 'a', 'a', 'a', 'a', 'A', 'A', 'A', 'A'),

array('é', 'è', 'ë', 'ê', 'É', 'È', 'Ê', 'Ë'),
array('e', 'e', 'e', 'e', 'E', 'E', 'E', 'E'),

array('í', 'ì', 'ï', 'î', 'Í', 'Ì', 'Ï', 'Î'),
array('i', 'i', 'i', 'i', 'I', 'I', 'I', 'I'),

array('ó', 'ò', 'ö', 'ô', 'Ó', 'Ò', 'Ö', 'Ô'),
array('o', 'o', 'o', 'o', 'O', 'O', 'O', 'O'),

array('ú', 'ù', 'ü', 'û', 'Ú', 'Ù', 'Û', 'Ü'),
array('u', 'u', 'u', 'u', 'U', 'U', 'U', 'U'),
        
array('ñ', 'Ñ', 'ç', 'Ç'),
array('n', 'N', 'c', 'C',),
        
array("\\", "¨", "º", "-", "~",
      "#", "@", "|", "!", "\"",
      "·", "$", "%", "&", "/",
      "(", ")", "?", "'", "¡",
      "¿", "[", "^", "`", "]",
      "+", "}", "{", "¨", "´",
      ">", "< ", ";", ",", ":",
      "."),


or Maybe like this:

array('Š'=>'S','š'=>'s','Ð'=>'Dj','ð'=>'dj','Ž'=>'Z','ž'=>'z','?'=>'C',
'?'=>'c','?'=>'C','?'=>'c','À'=>'A','Á'=>'A','Â'=>'A','Ã'=>'A','Ä'=>'A',
'Å'=>'A','Æ'=>'A','Ç'=>'C','È'=>'E','É'=>'E','Ê'=>'E','Ë'=>'E','Ì'=>'I',
'Í'=>'I','Î'=>'I','Ï'=>'I','Ñ'=>'N','Ò'=>'O','Ó'=>'O','Ô'=>'O','Õ'=>'O',
'Ö'=>'O','Ø'=>'O','Ù'=>'U','Ú'=>'U','Û'=>'U','Ü'=>'U','Ý'=>'Y','Þ'=>'B',
'ß'=>'Ss','à'=>'a','á'=>'a','â'=>'a','ã'=>'a','ä'=>'a','å'=>'a','æ'=>'a'
,'ç'=>'c','è'=>'e','é'=>'e','ê'=>'e','ë'=>'e','ì'=>'i','í'=>'i','î'=>'i',
'ï'=>'i','ð'=>'o','ñ'=>'n','ò'=>'o','ó'=>'o','ô'=>'o','õ'=>'o','ö'=>'o',
'ø'=>'o','ù'=>'u','ú'=>'u','û'=>'u','ý'=>'y','ý'=>'y','þ'=>'b','ÿ'=>'y',
'?'=>'R','?'=>'r',);

I am not giving a lesson. I am not a coder. I have just copied this stuff from the internet and pasted it here for illustration purposes only (example).


Thanks
updated by @pch: 02/18/16 06:06:39PM
pch
@pch
11/13/15 12:00:02PM
328 posts

How to build a JrElastic multilingual-based site using the Site Builder?


Using Jamroom

Okay Brian. I understand that in the meantime, I should just forget about the site builder, It won't work for me. Sad!

Anyway, would you mind helping me on how to create a menu with child menu items in Elastic skin (not using the site builder) that will get translated when the site language changes? Same with the page Meta tag.

Thanks
pch
@pch
11/13/15 10:58:57AM
328 posts

New 'Auto Follow' Module (Free)


Announcements

Awesome! Thanks a lot for the module :)

Regards.
pch
@pch
11/13/15 10:55:17AM
328 posts

How to allow new accounts to automatically follow a specific profile?


Using Jamroom

Hi Paul,

Hurrah! Thankssssssss. :)

I have just installed it and it's exactly what i was looking for. Great job!

Thanks, once again.
pch
@pch
11/13/15 08:45:43AM
328 posts

How to build a JrElastic multilingual-based site using the Site Builder?


Using Jamroom

brian:
pch:
How can JR Developers work in a new JR version, new skin, new site builder system etc which is great and then just leave the multi languages aspect (one of the most important features) behind? Why? I just can't believe it.

Site Builder is still in beta... :)

Funny answer, Brian. Would you mind driving me through a solution to the questions posted above.

Thanks in advanced.
pch
@pch
11/13/15 08:24:43AM
328 posts

How to build a JrElastic multilingual-based site using the Site Builder?


Using Jamroom

Thanks Michael,

Yes, I am just realizing that the site builder is pretty awesome but limited in many things and maybe it won't help me a lot with multi languages. I will probably need to manually hack the jrElastic code. I am extremely sad.

I had almost given up with Jamroom and the site builder was the ONLY thing that brought me back here and re-hiter my confiance to Jamroom. I love this site builder and menu editor a long with the Elastic skin.

IMHO the site builder is the most revolutionary feature / tool ever built in JR. Hats off to the JR Dev Team. What a great job!!! .

I've thought I would have been able to easily build a multilingual site using the site builder and menu editor. Unfortunately that's not the case. I am very frustrated and disappointed at the same time by the fact that I won't probably use them.

How can JR Developers work in a new JR version, new skin, new site builder system etc which is great and then just leave the multi languages aspect (one of the most important features) behind? Why? I just can't believe it.

You have forgot to answer the question #1 and #3. Please can you help me? Thanks. If I can not do it with the site Builder, then how can I do it in JR? (probably hacking the code, right? but how?)

About question #2, which widget should i use to place the {if} template block, if i had to use the site builder? HTML Editor or Template Code Widget?

Thanks
updated by @pch: 11/13/15 08:25:25AM
pch
@pch
11/13/15 07:09:24AM
328 posts

How to allow new accounts to automatically follow a specific profile?


Using Jamroom

Hi Michael,

Good news! When will it be released? Will it be a free module or paid one?

Thanks
pch
@pch
11/12/15 10:49:50PM
328 posts

How to allow new accounts to automatically follow a specific profile?


Using Jamroom

Hello,

is it possible to get all the new accounts sign-up to automatically follow a specific profile?

I have the main site profile (in-house profile) and i would like all the users in the system to automatically follow it.

Thanks
updated by @pch: 02/25/16 02:51:22AM
  23