Hi all,
I just wanna run a cron (daily) to send emails to some specific people who has not logged in for the last 1 month
i have can get the array of users with entity prev_last_login in a separate file located in views/default/page/elements/
My question is, can i call this array in a function notlogin_cron($hook, $entity_type, $returnvalue, $params)
or should i put all code in the notlogin.php to above function to have a cron running?
Plus.. i have installed croncheck plugin.. its not showing the last time of the cron run.. its show like 208 days ago... (?? means cron not running?)
Please help.. thank you for your help
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
The easiest way to do this would be to pass a custom where clause to elgg_get_entities in a cron hook:
Thank you Bret for your reply...
i made a code like this as u suggested...
But still cron triggering is not happening..
Added following code to Aathira_init()
Then made a fuction for cron trigger
http://community.elgg.org/pg/forum/topic/856970/admin-search-for-last-login/
I had an idea for a profile to somehow cripple after some time with no update, like turning black and white from color until the log in or update....evil me!
I have another code for sending a birthday wish every day.. can anyone point out the mistakes that i made i this ....(sorry, i am not a professional)
Thankyou very much
1) post elgg.Vr# always ;-) nobody seems to do that ;-)
2) post error messages if any - not simply 'does not work' ;)
3) what is '$bday' inside funcn ? not defined ?
4) check/review all parms @ ..-from_metadata - i think u got some bad/.missing parms there !
'metadata_names' => -- needs 'metadata_values' => -- also
but => better to use 'metadata_name_value_pairs' - just read thru someotherougn for examples of 'how-to' code this.
weelll - i suppose that the problem's got fixed, seeing as there's no further interjections yet... ;-P
not yet...
var $bday will get it from the settings.. everthing is correct and its fetching all members with birthday... if you give a view to that arry it will show members...
but its not sending mails.. or cron is not running...
may be the wallgarden is blocking the cron as this page says...
http://trac.elgg.org/ticket/4394
after upgrading to 1.8.4 also this problem is not solved.. can any one help me out?
- Previous
- 1
- 2
- Next
You must log in to post replies.