Skip to Content Skip to Menu

Problem with the uddeIMgetUserTZ()

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
12 years 9 months ago #191464 by slabbi
pms.mypmspro does not use uddeIMgetUserTZ(), but it seems that you have updated cb_plug_pms_uddeim which was installed in an older version, so the uddeIMgetUserTZ() bug was fixed.

You can download the required files from Joomlacode.org. The plugin also works with uddeIM 2.6 and it would be really helpful to know if this fixes the "\n\r" bug since I cannot reproduce it.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
12 years 9 months ago #191562 by fribse2011
Replied by fribse2011 on topic Re: Problem with the uddeIMgetUserTZ()
I'm not sure I'm doing this right, at the moment still seeing badly formatted lines.

I found the project on joomlacode after quite a bit of searching...
Then I went to
joomlacode.org/gf/project/com_uddeim/scmsvn/?action=browse&path=%2Ftrunk%2Fcb_plug_pms_uddeim%2F
And downloaded the two pms files (xml and php).

I then went to the tab handling the uddeim, and set the Single escaped messages: to yes
Finally I sent a friend-request to another user, and that appeared with nn etc. in the text instead of new lines.

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
12 years 9 months ago #191568 by slabbi
Replied by slabbi on topic Re: Problem with the uddeIMgetUserTZ()
I am pretty sure it has something to do with the language file that contains the text for the friend-request. Can you send me the file please (ssl(at)gmx(dot)de).

Maybe you can try following:

Method 1:

Ensure that the text is quoted with double quotes (") not single quotes (').


Method 2:

Change the text from

"This is the fist line\n\nThe second one"

to

"This is the first line

The second one"


The reason for that is that PHP interprets escape characters in double quotes but not in single quotes.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
12 years 9 months ago - 12 years 9 months ago #191576 by fribse2011
Replied by fribse2011 on topic Re: Problem with the uddeIMgetUserTZ()
Ok, I tried to mass replace ' to " in the danish.php language file, but then I got a syntax error.
I've attached the file below, I'm a bit unsure, as the file holds both single \n and pairs of \r\n
Which should I change to linefeed?

The file above results in:
Code:
[b]Du har en afventende ven, natti![/b] BEMÆRK: Dette er en automatisk afsendt besked fra vennesystemet. Det har vennens adresse indsat så du kan svare direkte på denne besked.nn[url=http://www.dkdb.dk/bruger/userprofile/natti.html?tab=1]natti[/url] har bedt om at blive tilføjet som ven med dig og afventer din godkendelse. Accepter eller afvis anmodningen. natti skrev følgende besked:n n testn [url=http://www.dkdb.dk/bruger/manageconnections.html]Administrer venner[/url]n

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.
Attachments:
Last edit: 12 years 9 months ago by fribse2011.

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
12 years 9 months ago #191577 by slabbi
Replied by slabbi on topic Re: Problem with the uddeIMgetUserTZ()
Do not mass replace the quotes. Quotes inside quotes must be escaped. It is not necessary to change the \n and \n\r when you use double quotes. The translator was unaware of the fact that PHP handles quotes differently.

So please do only change the quotes for the lines that contain the text.

This is - I am 100% sure - the solution for your problem.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
12 years 9 months ago #191578 by fribse2011
Replied by fribse2011 on topic Re: Problem with the uddeIMgetUserTZ()
Ok, so for a line like this:
DEFINE('_UE_NAME_FORMAT','Navneformat');

I should change it to:

DEFINE('_UE_NAME_FORMAT',"Navneformat");

And nothing else?

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum