1
wcrwcr
Private Message - is there a template?
  • 2005/7/2 9:49

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi guys

Is there a template file for the send pm popup window or I must try to edit the "root/pmlite.php" file in order to achieve some customization?

Thanks

2
psindia
Re: Private Message - is there a template?
  • 2005/7/2 11:40

  • psindia

  • Not too shy to talk

  • Posts: 171

  • Since: 2005/3/31


Yes you can .
The pm comes under the system modules
so to get the templates you must goto
modules/system/template

There you will find the template
Please don't visit ==>tenthstone.com!
==>vinodsr.com!

3
CeBepuH
Re: Private Message - is there a template?
  • 2005/7/2 12:03

  • CeBepuH

  • Not too shy to talk

  • Posts: 128

  • Since: 2002/6/10


In 2.0 there isn't. You'll have to edit pmlite.php I'm afraid.
Humans need fantasy to be humans. To be the place where the fallen angel meets the rising ape.

4
wcrwcr
Re: Private Message - is there a template?
  • 2005/7/2 12:32

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


well

Quote:
so to get the templates you must goto
modules/system/template


That was my first try but I could not find any relevant file


Quote:
In 2.0 there isn't.

In this case i?m running 2073

thanks for the comments

5
wcrwcr
Re: Private Message - is there a template?
  • 2005/7/3 0:16

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Ok, I founs something.

Open up your pmlite.php and look at line 88 :
echo "n";
            echo 
""._PM_TO."";
        if ( 
$reply == ) {
            echo 
".$pm->getVar("from_userid")."' />".$pm_uname."";
        } elseif ( 
$send2 == ) {
            
$to_username XoopsUser::getUnameFromId($to_userid);
            echo 
".$to_userid."' />".$to_username."";
        } else {
            echo 
"";
            
$result $xoopsDB->query("SELECT uid, uname FROM ".$xoopsDB->prefix("users")." WHERE level > 0 ORDER BY uname");
            while ( list(
$ftouid$ftouname) = $xoopsDB->fetchRow($result) ) {
                echo 
".$ftouid."'>".$myts->makeTboxData4Show($ftouname)."";
            }
            echo 
"";
        }
        echo 
"";
        echo 
""._PM_SUBJECTC."";
        if ( 
$reply == ) {
            
$subject $pm->getVar('subject''E');
            if (!
preg_match("/^Re:/i",$subject)) {
                
$subject 'Re: '.$subject;
            }
            echo 
".$subject."' size='30' maxlength='100' />";
        } else {
            echo 
"";
        }
        echo 
"";
        echo 
""._PM_MESSAGEC."";
        echo 
"";
        
xoopsCodeTarea("message",37,8);
        
xoopsSmilies("message");
        echo 
"";
        echo 
"";
        echo 
" 
        
        ._PM_SUBMIT."' /> 
        ._PM_CLEAR."' />
         ._PM_CANCELSEND."' onclick='javascript:window.close();' />
        n"
;
           echo 
"n";
    }
} else {
    echo 
_PM_SORRY.".XOOPS_URL."/register.php'>"._PM_REGISTERNOW.".";
}


Here we can do some popup window customization.
Hope that could help someone on a future search

BTW> does anybody knows if in the 2013 version we already got a templae for that?

6
psindia
Re: Private Message - is there a template?
  • 2005/7/3 3:34

  • psindia

  • Not too shy to talk

  • Posts: 171

  • Since: 2005/3/31


Quote:

wcrwcr wrote:
well

Quote:
so to get the templates you must goto
modules/system/template


That was my first try but I could not find any relevant file


Quote:
In 2.0 there isn't.

In this case i´m running 2073

thanks for the comments


Soory i misunderstand it
Please don't visit ==>tenthstone.com!
==>vinodsr.com!

Login

Who's Online

451 user(s) are online (375 user(s) are browsing Support Forums)


Members: 0


Guests: 451


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