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



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
5 - 1 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
getVar('uid'); $sql = "INSERT INTO " . XOOPS_DB_PREFIX . "_priv_msgs (msg_image, subject, from_userid, to_userid, msg_time, msg_text) VALUES ('icon1.gif', '$subject', $from_userid, $to_userid, ".time().", '$msg_text')"; $xoopsDB->queryf($sql); [/quote] Change your $to_userid & use XOOPS Code for more msg variety. Reference: [url=https://xoops.org/modules/newbb/viewtopic.php?topic_id=29238&forum=27&post_id=127505#forumpost127505]queryF[/url] [quote] den1662 wrote: This what i have tried 'Module PM' but getting errors: '[b]Errors None[/b]' by getHtmlErrors. Where did i go wrong? [quote] include("../../mainfile.php"); include(XOOPS_ROOT_PATH."/header.php"); $xoopsOption['show_rblock'] = 1; include(XOOPS_ROOT_PATH."/class/xoopsmailer.php"); $myts =& MyTextSanitizer::getInstance(); $pm_handler =& xoops_gethandler('privmessage'); $pm =& $pm_handler->create(); $pm->setVar("subject", "Hello World"); $pm->setVar("msg_text", "Apo kono eh jang!"); $pm->setVar("to_userid", 1); $pm->setVar("from_userid", 1); if (!$pm_handler->insert($pm)) { echo $pm->getHtmlErrors(); } include(XOOPS_ROOT_PATH."/footer.php"); [/quote][/quote][/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

231 user(s) are online (180 user(s) are browsing Support Forums)


Members: 0


Guests: 231


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