1
DarthHH
outbox?
  • 2006/8/14 12:38

  • DarthHH

  • Just popping in

  • Posts: 16

  • Since: 2006/6/28


is there a module to add outbox for private messages?

2
davidl2
Re: oubox?
  • 2006/8/14 12:42

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26



3
WarDick
Re: oubox?
  • 2006/8/14 13:26

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


@DarthHH

Soon is a relative term.

If you want an outbox you might want to try Wanikoo's pm hack.
Urging XOOPS to be the Best It Can Be.
Richard......

4
davidl2
Re: oubox?
  • 2006/8/14 14:00

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Wardick - the developer has been working hard on this, and he's currently testing the latest release on his site... only issue is getting the French translation - so it shouldnt be long before a new release

5
WarDick
Re: oubox?
  • 2006/8/14 14:58

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


@davidl2

I was not referring to the new module you have pointed out.

I have no knowledge of it as I do not speak french.

If it has this feature - that is great news!

A PM module!
Urging XOOPS to be the Best It Can Be.
Richard......

6
davidl2
Re: outbox?
  • 2006/8/14 15:09

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


I'm struggling to use it at the moment.. but it is very impressive. (I was trying to translate it - but i've not enough time at the moment )

7
WarDick
Re: outbox?
  • 2006/8/14 22:20

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


This looks like a great module for managing PM's and it is definitely need.

However, I do not see an outbox.

So, as I said try Wanikoo's.
Urging XOOPS to be the Best It Can Be.
Richard......

8
3lr0n
Re: outbox?
  • 2006/8/14 23:20

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


I found this code in the forums i think... i check it and work.. and have to add a link to outbox.php (in your root)


$xoopsOption
['pagetype'] = "pmsg";


include_once 
"mainfile.php";

if ( !
$xoopsUser ) {
    
$errormessage _PM_SORRY.""._PM_PLZREG."";
       
redirect_header("user.php",2,$errormessage);
} else {
    include 
XOOPS_ROOT_PATH.'/header.php';
       
$pm_handler =& xoops_gethandler('privmessage');


    
$sql "SELECT * FROM ".$xoopsDB->prefix("privmessage")." where subject not like '[any subject you do not want to select]'
            and from_userid="
.$xoopsUser->getVar('uid')." order by msg_id";

    
//$result = $xoopsDB->query($sql);

//    $criteria = new CriteriaCompo();
//    $criteria->add(new Criteria('subject', '[Trisomy 18 Support]%', 'LIKE'));
//    $criteria->add(new Criteria( 'test%', 'subject', 'NOT LIKE'));

//    $pm_arr =& $pm_handler->getObjects($criteria);

    
$criteria = new CriteriaCompo();

    
$criteria1=new Criteria('from_userid'$xoopsUser->getVar('uid'));
    
$criteria2=new Criteria'subject''[Trisomy 18 Support]%''NOT LIKE');
    
$criteria->add($criteria1);
    
$criteria->add($criteria2);
    
$pm_arr =& $pm_handler->getObjects($criteria);

    
//$criteria->add(new Criteria('subject', '[Trisomy 18 Support]%', 'LIKE'));
    //$criteria2->add(new Criteria('uid', $uid), 'OR');

    //$criteria->add(new Criteria('from_userid', $xoopsUser->getVar('uid')));
    //$pm_arr =& $pm_handler->getObjects(criteria);
    //    $pm_arr =& $pm_handler->getObjects(new Criteria('subject', 'test', 'NOT LIKE'));
    //    $pm_arr =& $pm_handler->getObjects(new Criteria('subject', '[Trisomy 18 Support]'));


    // OLD ONE
    // $pm_arr =& $pm_handler->getObjects(new Criteria('from_userid', $xoopsUser->getVar('uid')));

//    if ( $xoopsUser->getVar('uid') == 1){
//        echo "Testing: 

";
//        echo $pm_arr[2];
//
//        echo "

Finished Testing

";
//    }

    
echo "Bandeja de Salida

    
$xoopsUser->getVar("uid")."'>"_PM_PROFILE .»» Outboxn"
;
    echo 
"";
    echo 
""_PM_TO .""_PM_SUBJECT .""_PM_DATE ."n";

    
$total_messages count($pm_arr);

    if ( 
$total_messages == ) {
        echo 
""._PM_YOUDONTHAVE." ";
        
$display0;
    } else {
    
//    echo "Feature will be active shortly. ";
        
$display 1;
    }
//    if ( $xoopsUser->getVar('uid') == 1){
    
for ($i 0$i $total_messages$i++) {
        
$class = ($i == 0) ? 'even' 'odd';
        echo 
"$class'>n";
        if (
$pm_arr[$i]->getVar('read_msg') == 1) {
            echo 
"n";
        } else {
            echo 
"n";
        }
        
        
$postername XoopsUser::getUnameFromId($pm_arr[$i]->getVar("to_userid"));
        echo 
"";
        
// no need to show deleted users
        
if ($postername) {
            echo 
".$pm_arr[$i]->getVar("to_userid")."'>".$postername."";
        } else {
            echo 
$xoopsConfig['anonymous'];
        }
        echo 
"n";
        if (
$pm_arr[$i]->getVar('read_msg') == 1) {
        echo 
"$i&total_messages=$total_messages'>".$pm_arr[$i]->getVar("subject")."";
} else {
        echo 
"$i&total_messages=$total_messages'>".$pm_arr[$i]->getVar("subject")."";
}
        echo 
"".formatTimestamp($pm_arr[$i]->getVar("msg_time"))."";
    }
//    }
    
if ( $display == ) {
        echo 
"/pmlite.php?send=1","pmlite",450,380);' value='"._PM_SEND."' /> ";
    } else {
        echo 
"/pmlite.php?send=1","pmlite",450,380);' value='"._PM_SEND."' />";
    }
    echo 
"";
    include 
"footer.php";
}
?>
Spanish Overclocking Community xoops based site : http://www.overclocking.es

9
DarthHH
Re: outbox?
  • 2006/8/18 13:43

  • DarthHH

  • Just popping in

  • Posts: 16

  • Since: 2006/6/28


thanks

Login

Who's Online

341 user(s) are online (217 user(s) are browsing Support Forums)


Members: 0


Guests: 341


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