1
wcrwcr
PM constants
  • 2006/8/29 18:41

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi all

Does anybody know where i can find the translations constants that show up when a user, for instance try to send a PM without subject or message body (oh yes, belive me there?s such kind of user )

I did a good research in the most of the files but could not find the right spot. If you open your language/yourlanguage/pmsg.php you?ll find a lot of constants but i could not succeed on changing the:

"Errors
subject is required.
msg_text is required."

I could not found the function used to custonize the pop up window too.

We get .....javascript:openWithSelfMain('http://www.yoursite.com/pmlite.php?send2=1&to_userid=1232','pmlite',450,370);

Any help will be very appreciated, thanks

2
wcrwcr
Re: PM constants
  • 2006/8/30 16:24

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi

Anyone???

Thanks

3
CeBepuH
Re: PM constants
  • 2006/8/30 17:16

  • CeBepuH

  • Not too shy to talk

  • Posts: 128

  • Since: 2002/6/10


Without looking at it: might be getting it from xoops.js. Worth a quick try. Although, I might be quite wrong.
Humans need fantasy to be humans. To be the place where the fallen angel meets the rising ape.

4
Bender
Re: PM constants
  • 2006/8/30 18:17

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


\kernel\privmessage.php function insert(&$pm) line 122+
\kernel\object.php function cleanvars line 431+

seems to be the files to look into and the string seems to come split form both files.

is required --> object.php
criteria (msg_txt; subject ...) --> privmessage.php


However i am far from explaining how that works. Tried some editing but ended up in trouble.
Sorry, this signature is experiencing technical difficulties. We will return you to the sheduled signature as soon as possible ...

5
wcrwcr
Re: PM constants
  • 2006/8/31 2:18

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi guys

Thanks for taking tha time

Well, from the xoops.js i found the "constructor" of the openwithselfmain function:

function openWithSelfMain(url,name,width,height,returnwindow) {
    var 
options "width=" width ",height=" height ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no";
but could not find where to set some paramethers of the pm specific window, as that functions seems to be used for many others popups.

From "kernel/object.php"

I found:

case XOBJ_DTYPE_TXTAREA:
                    if (
$v['required'] && $cleanv != '0' && $cleanv == '') {
                        
$this->setErrors("$k is necessary.");
                        continue;


and change the:

$this->setErrors("$k is necessary.");


to
$this->setErrors("$k é necessário.");


and seems to work pretty well till now, although hard coded

now i got:

Errors
subject is required.
msg_text é necessário.( in my language)

Let?s dig a bit more

6
giba
Re: PM constants
  • 2006/8/31 9:19

  • giba

  • Just can't stay away

  • Posts: 638

  • Since: 2003/4/26


OK My (Embaixador) Wilson, your report problem is fixed in tracker:

http://sourceforge.net/tracker/index.php

Thanks for your report here and attention team core.

7
wcrwcr
Re: PM constants
  • 2006/8/31 19:47

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi Giba

The link to bug tracker is broken.
I guess the group is missing.

See u

Login

Who's Online

186 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 186


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits