1
wizanda
Xoops Private Message 2.2 Admin Email selection?
  • 2006/11/28 11:32

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


Since XOOPS has its own module PM now. Can’t this have the PM email hack added to it as an admin option or has it?
Since this is a really needed feature...I go back to sites when I get constant PM's from people!

Here needs it for sure!

Whom among us find's it annoying to not login and find out one of us has messaged you over night on here.... as we are all in different time Zones...yet you don't notice until the next day?

So can't XOOPS get with the times and make that a standard option in 2.0.16 and 2.2.....as emailing each other through PM is the part of community...maybe what in fact makes it if we browse user's sites and activity...


It may be a key factor to a successful site...

Other positive if some of us post on this thread!!.... Is us covering Google tracks of RC1 release: lol: of "Xoops Private Message" shows us as security risks...which I don't believe we would have any more...

Another thought, is Smarty can do Ajax plug-in has a chat the author of the plug-in made....Smarty'z have the answer! for real...think about this if XOOPS could have smarty cache of what is going on, yet being in real time...like instant PM chat if online...Auto updating who is online real time....unsure how many extra server call we would cost our self’s...yet regardless in principle....it would mean XOOPS would be a first real time CMS that actual stores it self in advance...well an idea

2
wizanda
Re: Xoops Private Message 2.2 Admin Email selection?
  • 2006/11/28 12:16

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


Ok fixed!

You can do as Marcan at Smartfactory has done, and add this in the pmlite.php of PM module for 2.2...

// Hack by marcan to receive Private Message email notification
                
$userHandler =& xoops_gethandler('user');
                
$toUser =& $userHandler->get($_POST['to_userid']);
                
// Only send email notif if notification method is mail
                
if ($toUser->notify_method() == 2) {
                    
$xoopsMailer =& getMailer();
                    
$xoopsMailer->useMail();
                    
$xoopsMailer->setToEmails($toUser->email());
                    
$xoopsMailer->setFromEmail($xoopsUser->email());
                    
$xoopsMailer->setTemplate('new_pm.tpl');
                    
$xoopsMailer->assign('X_SITENAME'$xoopsConfig['sitename']);
                    
$xoopsMailer->assign('X_SITEURL'XOOPS_URL."/");
                    
$xoopsMailer->assign('X_ADMINMAIL'$xoopsConfig['adminmail']);
                    
$xoopsMailer->assign('X_UNAME'$toUser->uname());
                    
$xoopsMailer->assign('X_FROMUNAME'$xoopsUser->uname());
                    
$xoopsMailer->assign('X_SUBJECT'$myts->stripSlashesGPC($_POST['subject']));
                    
$xoopsMailer->assign('X_MESSAGE'$myts->stripSlashesGPC($_POST['message']));    
                    
$xoopsMailer->assign('X_ITEM_URL'XOOPS_URL "/viewpmsg.php");    
                    
$xoopsMailer->setFromName($xoopsUser->uname());
                    
$xoopsMailer->setSubject(sprintf(_PM_MESSAGEPOSTED_EMAILSUBJ$xoopsConfig['sitename']));
                    
$xoopsMailer->setBody($_POST['message']);
                    
$xoopsMailer->send();
                }

That works for the most part to recieve emails, still the title in langauges to do and then we rolling!

3
wizanda
Re: Xoops Private Message 2.2 Admin Email selection?
  • 2006/11/28 12:28

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


Ok and instead you add that line some where in the main.php for langague and that is done....2.2 PM Mod with email hack included!!
// Hack by marcan to receive Private Message email notification
define("_PM_MESSAGEPOSTED_EMAILSUBJ","[%s] Private Message Notification");
// End of hack by marcan



Thats better now can try to find a community to talk too with it...
yet should help loads in building one to begin with when you can at least talk with each other the way you would on most sites....makes for more warm feel...

Login

Who's Online

362 user(s) are online (113 user(s) are browsing Support Forums)


Members: 0


Guests: 362


more...

Donat-O-Meter

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

Latest GitHub Commits