Forum Replies Created
-
AuthorPosts
-
Andy MoyleKeymaster
You are being helpful! Judging by what is happening we are still in beta land I reckon!!!
Can I suggest you delete the files and reload a freshly downloaded copy of the plugin – I did an update a week or two ago without changing the version number, because I was finding that files were missing! small-group-list.php definitely should exist and does in a copy I installed recently from wordpress.org.
In your other thread, you offered help! I’m not sure my coding style is good enough for colloborative effort, but I appreciate the beta testing and suggestions!
I’m working on making families made up of individuals who can have different roles like elder, small group leader, kids worker etc – which will take the plugin to a whole another level of usefulness. I can’t get my head round svn tags and working copies ( do you know of a simple tutorial?) so I will do a beta testing section on the forum here – if you are interested in testing and improving!
I also need to work out how to set up a cron file that doesn’t need creating by the plugin, because it’s not working for you.
By the way is the plugin creating pdf’s in the cache folder okay?
Andy MoyleKeymasterAh. It’s just occurred to me that I’ve always tested wp-cron after cron – so cronemail.php has been created. If you were setting up the communication settings with wp-cron only, it is never going to work! redface š³
Line 142 of index.php change that if () to
Code:if(get_option(‘church_admin_cron’)==’wp-cron’||file_exists(CHURCH_ADMIN_INCLUDE_PATH.’cronemail.php’)) add_submenu_page(‘church_admin/index.php’, ‘Send Bulk Email’, ‘Send Bulk Email’, ‘administrator’, ‘church_admin_send_email’, ‘church_admin_send_email’);and it’ll work if you are a wp-cron kind of guy.
Another next release fix!
Andy MoyleKeymasterPhew!
Andy MoyleKeymasterMust be some sort of permission issue – although though that should have thrown an error. Check the permissions on the include directory.
I’ve had the plugin working on a number of sites I own and a client and it’s created the file well on unix servers and my home windows server.
Judging by your earlier post, you sound as though you could create cronemail.php and upload it to the includes file using this code which is for cron type… Just change teh db prefix if it isn’t wp_ and add your db login credentials…
Code:$attachment=array();// connect to database
$db=mysql_connect(DB_HOST,DB_USER,DB_PASSWORD);
mysql_select_db(DB_NAME);
//initialise phpmailer scriptrequire(“class.phpmailer.php”);
$mail = new PHPMailer();
//Grab messages
$sql=”SELECT * FROM wp_church_admin_email ORDER BY email_id LIMIT 0,90″;//change prefix if necessary, 90 is the number of emails per hour. Change as needed!
$result=mysql_query($sql);
if(mysql_num_rows($result)>0)
{//only proceed if emails queued in db
while($row=mysql_fetch_assoc($result))
{
$mail->From = $row[‘from_email’];
$mail->FromName = “{$row[‘from_name’]}”;
$mail->IsHTML(true);$mail->AddAddress($row[‘recipient’]);
if(!empty($row[‘copy’]))$mail->AddAddress($row[‘copy’]);
if(!empty($row[‘attachment’]))
{
$path=$row[‘attachment’];
$mail->AddAttachment($path, $name = “”, $encoding = “base64”,$type = “application/octet-stream”);$attachment[]=$path;
}
$mail->Subject = $row[‘subject’] ;
$mail->Body=$row[‘message’];
if($mail->Send())
{
//successful send, so delete from DB
$sql=”DELETE FROM wp_church_admin_email WHERE email_id='”.mysql_real_escape_string($row[’email_id’]).”‘”;//change prefix if necessary
mysql_query($sql)or die(mysql_error());}
echo $mail->ErrorInfo;
$mail->ClearAllRecipients();//clears all recipients
$mail->ClearCustomHeaders();//clears headers for next message
}
}
?>Andy MoyleKeymasterSorry – my reply has crossed yours!
The cronemail.php file is created when “communication settings” email form is submitted. Hence the if statement in line 142 of index.php.
BTW If you had upgraded the plugin, you have to submit the email settings form, even though the values are shown, to recreate the cronemail.php file – in the next version, on upgrading, reactivation will check to see if settings have been stored previously and recreate it for you
Andy MoyleKeymasterBulk Sms and email will only work once you have filled in and submitted the forms on the “communication settings” page. The form then creates the file that does the sending according to your preferences. Once you have submitted it, a link appears to let you send emails and/or sms
Andy MoyleKeymasterYes that is already there! On the visitor list you have three links to the left of each visitor in the table – the “Add” link adds them to the main address list – leaving them in the visitor table too. You can delete them from the visitor list if you want to.
Andy MoyleKeymasterAnd that too!
Andy MoyleKeymasterIn the current version 0.32.3, emails get sent to everyone or just parents. The upcoming next version will allow sending emails to different roles – like elders, small group leaders, kids workers and so on. It will be released mid March!
Andy MoyleKeymasterHaven’t condsidered photos will think about adding that. I’m looking at making the directory far more useful by making a family a group of individuals with different roles etc, rather than just a single database record. A photo would be easy to add!
You can add the online members directory to any page or post using the shortcode
Code:[church_admin type=address-list]Andy MoyleKeymasterI’ll add that to the list for the next release!
Andy MoyleKeymasterThe plugin is trying to write some initial pdf files to it’s own cache directory and sadly either the cache directory doesn’t exist or the permissions are wrong.
It should have created the directory, when it installed, but one or two people have had the same problem.If you have an ftp program, please have a look to see if the directory /var/www/vhosts/imilive.org/httpdocs/wp-content/plugins/church-admin/cache/ exists. If it does, please give it the permissions 755 and it will work. If it doesn’t, please create it. If that doesn’t make sense – get in touch via the contact form and I’ll do it for you!
Andy MoyleKeymaster1) The rota management allows rota tasks to be set up, so you could have 24 rota jobs and then for each date fill them with as many people as you like. The shortcode for displaying the rota can be put on any page or post within wordpress, so could be user access only. The pdf shows the next quarter. I never heard of power church, so couldn’t comment on how to export to it!
2) Bulksms.co.uk is an international company- my plugin uses their api. If you wanted to use a local sms gateway and their api – you would need to get the sms.php file recoded for that company’s api.
Andy MoyleKeymasterNo, it’s my fault – the widget is compatible with lots of themes, but not all! There’s a few lines of code to add which will make it more compatible – will do that for the next update very soon.
Andy MoyleKeymasterThat is a bug! It was to show up visitors that have become regulars in the visitors list – only that tickbox result wasn’t being stored. The next update will correct that.
-
AuthorPosts