2006/8/14 12:38
DarthHH
Just popping in
Posts: 16
Since: 2006/6/28
2006/8/14 12:42
davidl2
XOOPS is my life!
Posts: 4843
Since: 2003/5/26
2006/8/14 13:26
WarDick
Just can't stay away
Posts: 890
Since: 2003/9/13
2006/8/14 14:00
2006/8/14 14:58
2006/8/14 15:09
2006/8/14 22:20
2006/8/14 23:20
3lr0n
Not too shy to talk
Posts: 167
Since: 2004/3/13
$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 == 0 ) { echo ""._PM_YOUDONTHAVE." "; $display= 0; } else { // echo "Feature will be active shortly. "; $display = 1; } // if ( $xoopsUser->getVar('uid') == 1){ for ($i = 0; $i < $total_messages; $i++) { $class = ($i % 2 == 0) ? 'even' : 'odd'; echo "$class'>n"; if ($pm_arr[$i]->getVar('read_msg') == 1) { echo "._PM_NOTREAD."' />n"; } else { echo "._PM_NOTREAD."' />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 == 1 ) { 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"; } ?>
2006/8/18 13:43
Advanced Search
323 user(s) are online (246 user(s) are browsing Support Forums)
Members: 0
Guests: 323