Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 19 Oct 2011, 12:03
career career is offline
 
Join Date: Feb 2009
How to move thread and send PM simultaneously via Cron

Good day

How to move thread and send PM simultaneously via Cron?
Move thread made with datamanager_init the same as send PM.

The Problem is PM doesn't send, only if run this Cron Task manually (press button in AdminCP).

The code like is something like this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #2  
Old 19 Oct 2011, 14:59
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Maybe try this: add a call to $pm->pre_save() before the call to save, then echo $pm->errors if it's not empty. And also echo something if the "if ($recipients)" fails"



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #3  
Old 19 Oct 2011, 19:47
career career is offline
 
Join Date: Feb 2009
I'll try it, thanks

--------------- Added 20 Oct 2011 at 16:02 ---------------

No, I tried that code, but doesn't help.

Still can send PM only if press button near Cron task in Admincp

--------------- Added 20 Oct 2011 at 17:08 ---------------

finally, i found that problem occured when use "construct_phrase"

--------------- Added 20 Oct 2011 at 17:12 ---------------

btw, thanks kh99
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moderators Functions DTO Thread Move Notification - automatically send friendly message when moving thread mferguson vBulletin 3.8 Add-ons 103 09 Apr 2013 17:25
Moderators Functions DTO Thread Move Notification - automatically send friendly message when moving thread mferguson vBulletin 3.6 Add-ons 4 12 Nov 2010 17:24
Moderators Functions DTO Thread Move Notification - automatically send friendly message when moving thread mferguson vBulletin 3.7 Add-ons 17 14 Sep 2010 15:26



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:55.

Layout Options | Width: Wide Color: