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 "<form action='pmlite.php' method='post' name='coolsus'>n";
            echo 
"<table width='300' align='center' class='outer'><tr><td class='head' width='25%'>"._PM_TO."</td>";
        if ( 
$reply == ) {
            echo 
"<td class='even'><input type='hidden' name='to_userid' value='".$pm->getVar("from_userid")."' />".$pm_uname."</td>";
        } elseif ( 
$send2 == ) {
            
$to_username XoopsUser::getUnameFromId($to_userid);
            echo 
"<td class='even'><input type='hidden' name='to_userid' value='".$to_userid."' />".$to_username."</td>";
        } else {
            echo 
"<td class='even'><select name='to_userid'>";
            
$result $xoopsDB->query("SELECT uid, uname FROM ".$xoopsDB->prefix("users")." WHERE level > 0 ORDER BY uname");
            while ( list(
$ftouid$ftouname) = $xoopsDB->fetchRow($result) ) {
                echo 
"<option value='".$ftouid."'>".$myts->makeTboxData4Show($ftouname)."</option>";
            }
            echo 
"</select></td>";
        }
        echo 
"</tr>";
        echo 
"<tr><td class='head' width='25%'>"._PM_SUBJECTC."</td>";
        if ( 
$reply == ) {
            
$subject $pm->getVar('subject''E');
            if (!
preg_match("/^Re:/i",$subject)) {
                
$subject 'Re: '.$subject;
            }
            echo 
"<td class='even'><input type='text' name='subject' value='".$subject."' size='30' maxlength='100' /></td>";
        } else {
            echo 
"<td class='even'><input type='text' name='subject' size='30' maxlength='100' /></td>";
        }
        echo 
"</tr>";
        echo 
"<tr valign='top'><td class='head' width='25%'>"._PM_MESSAGEC."</td>";
        echo 
"<td class='even'>";
        
xoopsCodeTarea("message",37,8);
        
xoopsSmilies("message");
        echo 
"</td>";
        echo 
"</tr>";
        echo 
"<tr><td class='head'>&nbsp;</td><td class='even'>
        <input type='hidden' name='op' value='submit' />
        <input type='submit' class='formButton' name='submit' value='"
._PM_SUBMIT."' />&nbsp;
        <input type='reset' class='formButton' value='"
._PM_CLEAR."' />
        &nbsp;<input type='button' class='formButton' name='cancel' value='"
._PM_CANCELSEND."' onclick='javascript:window.close();' />
        </td></tr></table>n"
;
           echo 
"</form>n";
    }
} else {
    echo 
_PM_SORRY."<br /><br /><a href='".XOOPS_URL."/register.php'>"._PM_REGISTERNOW."</a>.";
}


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

254 user(s) are online (156 user(s) are browsing Support Forums)


Members: 0


Guests: 254


more...

Donat-O-Meter

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

Latest GitHub Commits