1
NatyN
Private Messages: Outbox
  • 2003/11/14 14:32

  • NatyN

  • Just popping in

  • Posts: 10

  • Since: 2003/11/11


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

2
Catzwolf
Re: Private Messages: Outbox
  • 2003/11/14 14:47

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


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 )

3
kjs222
Re: Private Messages: Outbox
  • 2004/3/31 0:45

  • kjs222

  • Friend of XOOPS

  • Posts: 116

  • Since: 2003/3/1 1


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

4
topet05
Re: Private Messages: Outbox
  • 2004/3/31 1:38

  • topet05

  • Just popping in

  • Posts: 33

  • Since: 2003/4/19


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...

5
kjs222
Re: Private Messages: Outbox
  • 2004/3/31 3:53

  • kjs222

  • Friend of XOOPS

  • Posts: 116

  • Since: 2003/3/1 1


Thank you very much Topet, I will do this.

I appreciate.
Keith

6
migoe
Re: Private Messages: Outbox
  • 2004/3/31 9:38

  • migoe

  • Just popping in

  • Posts: 68

  • Since: 2003/4/2 9


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

7
Setaseta
Re: Private Messages: Outbox
  • 2004/3/31 13:21

  • Setaseta

  • Just popping in

  • Posts: 23

  • Since: 2003/5/5 2


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. :)

8
kjs222
Re: Private Messages: Outbox
  • 2004/3/31 13:46

  • kjs222

  • Friend of XOOPS

  • Posts: 116

  • Since: 2003/3/1 1


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!

9
Setaseta
Re: Private Messages: Outbox
  • 2004/3/31 13:49

  • Setaseta

  • Just popping in

  • Posts: 23

  • Since: 2003/5/5 2


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

10
kjs222
Re: Private Messages: Outbox
  • 2004/3/31 13:50

  • kjs222

  • Friend of XOOPS

  • Posts: 116

  • Since: 2003/3/1 1


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

Login

Who's Online

160 user(s) are online (95 user(s) are browsing Support Forums)


Members: 0


Guests: 160


more...

Donat-O-Meter

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

Latest GitHub Commits