xoops forums

NatyN

Just popping in
Posted on: 2003/11/14 14:32
NatyN
NatyN (Show more)
Just popping in
Posts: 10
Since: 2003/11/11
#1

Private Messages: Outbox

Hello, I've been searching on the site but could not find the solution.

I would like to have the Sent Messages box set for the Private Messages. Apparently there was no such a possibliity.

Was this solved somehow?

thanks

Catzwolf

Home away from home
Posted on: 2003/11/14 14:47
Catzwolf
Catzwolf (Show more)
Home away from home
Posts: 1392
Since: 2007/9/30
#2

Re: Private Messages: Outbox

Skalpa is currently turning this system on its head right now, the new PM system will be something else (I should know Ive seen it ;-0 )

kjs222

Friend of XOOPS
Posted on: 2004/3/31 0:45
kjs222
kjs222 (Show more)
Friend of XOOPS
Posts: 116
Since: 2003/3/1 1
#3

Re: Private Messages: Outbox

Any progress on getting a sent message page? I have a client who wants me to implement this NOW, so... while I don't mind re-inventing the wheel (it's an easy enough page), I'd perfer to get on the bandwagon with 'Skalpa.'

Look forward to hearing back.

Keith

topet05

Just popping in
Posted on: 2004/3/31 1:38
topet05
topet05 (Show more)
Just popping in
Posts: 33
Since: 2003/4/19
#4

Re: Private Messages: Outbox

Sorry for my bad english...
Temporary Soluction:
Itens Enviados - XOOPS Brasil

In Brazilian Portuguese:
São apenas 2 arquivos adicionais para você colocar no diretório principal de seu Xoops, depois faça um link no seu bloco "User Menu" para o arquivo 'mpenviadas.php' e pronto.
Vantagens:
- Você pode ler as mensagens que você já enviou (para lembrar).
- Você fica sabendo se o User já leu a MP ou ainda não.
- Você fica sabendo se o User já deletou a MP (claro, pois se ele deletar, você não mais verá a MP... "É pra rir ou pra chorar" haha)

Desvantagem:
- Se o usuário que vc mandou a MP deletá-la, você não terá mais acesso a ela (nem aqui, nem no além).
Se quiser ver a postagem na íntegra, acesse:
XOOPS Brasil - Forum

(Translated by Babelfish)
It´s only 2 files for you place in main directory of Xoops, later make a link for the file ' mpenviadas.php ' in your "User Menu" block.
- You can read the PM that you already sent (to remember).
- You are knowing if the User already still read the PM or not.
- You are knowing if the User already delete the PM (clearly, therefore if it to delete, you more will not see the PM...

kjs222

Friend of XOOPS
Posted on: 2004/3/31 3:53
kjs222
kjs222 (Show more)
Friend of XOOPS
Posts: 116
Since: 2003/3/1 1
#5

Re: Private Messages: Outbox

Thank you very much Topet, I will do this.

I appreciate.
Keith

migoe

Just popping in
Posted on: 2004/3/31 9:38
migoe
migoe (Show more)
Just popping in
Posts: 68
Since: 2003/4/2 9
#6

Re: Private Messages: Outbox

Dear topet05,

thank you very much for this super duper usefull "Temporary Soluction"

It works very well. But 1 question i have: How can i change the order of the pns from "older first" to "latest first"?

I hope for a reply...

migoe

Edit:
I found the solution!

In file "mpenviadas.php" you must do that:
<?php

$xoopsOption
['pagetype'] = "pmsg";
include_once 
"mainfile.php";

if ( !
$xoopsUser ) {
    
$errormessage _PM_SORRY."<br />"._PM_PLZREG."";
       
redirect_header("user.php",2,$errormessage);
} else {
    include 
XOOPS_ROOT_PATH.'/header.php';
       
$pm_handler =& xoops_gethandler('privmessage');
[
b]//    $pm_arr =& $pm_handler->getObjects(new Criteria('from_userid', $xoopsUser->getVar('uid')));
    // Modification to swap sort order
    
$criteria = new CriteriaCompo(new Criteria('from_userid',    $xoopsUser->getVar('uid')));
    
$criteria->setSort('msg_time');
    
$criteria->setOrder('desc');
    
$pm_arr =& $pm_handler->getObjects($criteria);
    
// End Modification[/b]


an in the file "lermpenviadas.php" you must fill in that:
include XOOPS_ROOT_PATH.'/header.php';
    
$criteria = new Criteria('from_userid'$xoopsUser->getVar('uid'));
    
$criteria->setLimit(1);
    
$criteria->setStart($start);
    
$criteria->setSort('msg_time');
[
b]    $criteria->setOrder('desc');[/b]
    
$pm_arr =& $pm_handler->getObjects($criteria);


Hope, this ist usefull for the others

Setaseta

Just popping in
Posted on: 2004/3/31 13:21
Setaseta
Setaseta (Show more)
Just popping in
Posts: 23
Since: 2003/5/5 2
#7

Re: Private Messages: Outbox

Another thing that would be really really useful would be if it were somehow possible to limit the size of a member's inbox. Recently, I had to empty the database table for private messages, as it was well over 88 megs in size.

If it was possible to make distinctions in inbox size allowance based on groups, that would be even better. :)

kjs222

Friend of XOOPS
Posted on: 2004/3/31 13:46
kjs222
kjs222 (Show more)
Friend of XOOPS
Posts: 116
Since: 2003/3/1 1
#8

Re: Private Messages: Outbox

Do you have attachements working with PMs? I don't mean any harm, but in plaintext 80 MB is equivalant to 160 copies of 20,000 Leagues Under the Sea:

http://www.gutenberg.net/etext/164

... that's a LOT of PMs!

Setaseta

Just popping in
Posted on: 2004/3/31 13:49
Setaseta
Setaseta (Show more)
Just popping in
Posts: 23
Since: 2003/5/5 2
#9

Re: Private Messages: Outbox

I have around 1400 users on my site. They tend to babble. A lot.

kjs222

Friend of XOOPS
Posted on: 2004/3/31 13:50
kjs222
kjs222 (Show more)
Friend of XOOPS
Posts: 116
Since: 2003/3/1 1
#10

Re: Private Messages: Outbox

WOW. I'm impressed. What's your site?