Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
8 - 4 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
setVar('from_userid', !empty($this->fromUser) ? $this->fromUser->getVar('uid') : $xoopsUser->getVar('uid')); $pm->setVar("msg_text", $body); $pm->setVar("to_userid", $uid); if (!$pm_handler->insert($pm)) { return false; } //start $pm_handler->setFromdelete($pm); //end return true; } [/code] Umm... I tested and confirmed it works well this evening. So.. I think other PMs(sent automatically from other modules)..also will be deleted automatically from OUTBOX/SENTBOX in the same way. ^^ [quote] For me this is definitely a bug. Why do other users (non-admins) have Automatic Notifications in their SENT-Box? I thought that the admin sent the notifications and not the users? [/quote] ^^...I also checked what you said above. but...On my test-server..and public server....It works well..without any trouble. If user has automatic notification PM in his/her postbox(outbox/sentbox/psavebox), the reason is simply because that PM has his/her uid as from_userid. ^^ This is part of the criteria of OUTBOX. Do you think OUTBOX can have PM which has other's uid as from_userid ? $criteria = new CriteriaCompo(new Criteria('from_userid', $xoopsUser->getVar('uid'))); $criteria->add(new Criteria('read_msg', 0)); $criteria->add(new Criteria('from_delete', 0)); $criteria->add(new Criteria('to_delete', 0)); $criteria->add(new Criteria('from_save', 0)); Anyway...I think this line in xoopsmailer.php may cause PM(sent automatically) to have other' uid besides Admin as from_userid. $pm->setVar('from_userid', !empty($this->fromUser) ? $this->fromUser->getVar('uid') : $xoopsUser->getVar('uid')); As you know, it basically decides from_userid like this.(notification.php) case XOOPS_NOTIFICATION_METHOD_PM: $xoopsMailer->usePM(); $config_handler =& xoops_gethandler('config'); $xoopsMailerConfig =& $config_handler->getConfigsByCat(XOOPS_CONF_MAILER); $xoopsMailer->setFromUser($member_handler->getUser($xoopsMailerConfig['fromuid'])); foreach ($tags as $k=>$v) { $xoopsMailer->assign($k, $v); } break;[/quote]" />

Re: XOOPS PM(Private Message)-Hack
by maxxy on 2008/6/29 0:18:35

you can try it in localhost if it still works

but i suggest you to try

mp manager 2.63 https://xoops.org/modules/news/article.php?storyid=3931
rember to do backup b4 replacing any of your file

or wait for catzwolfs pm module
https://xoops.org/modules/newbb/viewtopic.php?topic_id=63633&forum=10
Re: XOOPS PM(Private Message)-Hack
by hnn_gerd on 2008/6/28 22:36:53

Does this hack still work with the latest XOOPS 2.0.x Release? An outbox would be very much appreciated. XOOPS unfortunatelly only provide an Inbox.
Re: XOOPS PM(Private Message)-Hack
by luckylin on 2006/11/17 18:00:17

Quote:

Damaster wrote:
Yep, impressive !



This is a great "module".
I also tried to add some icons into the table (for example, incoming folder icon and outgoing icon) so it looks even better! Very impressed.

I have a question on the "Trash" folders - I see all deleted ones (in or out) went to trash folder, and it could be reversed back (undeleted), but can we completely purge them? I see no option for that and wonder how to.


Also, does that mean - when we delete a SENT message, is it also be gone from the receiver's folder? I want the Admin have a way to clean up PMs but not seeing any hack for this.

Thanks in advanced.
Re: XOOPS PM(Private Message)-Hack
by damaster on 2006/5/2 17:06:14

Yep, impressive !

Re: XOOPS PM(Private Message)-Hack
by davidl2 on 2006/5/2 11:49:11

The hack mention on this thread is really impressive work indeed! Sorry I missed this previously.

Who's Online

226 user(s) are online (176 user(s) are browsing Support Forums)


Members: 0


Guests: 226


more...

Donat-O-Meter

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

Latest GitHub Commits