-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Begin Utilization of SMS Reminders #26
Comments
It requires access to cron tab in Apache or similar program. I explain a bit about it here: |
Thanks! Also, I saw that on your website a user can log in as a retunring booker. Now, if I do not use the wordpress plugin, am I able to add this function too? |
I built that with the Theme My Login plugin (TML). So that is different. If I had it to do again I would use Gravity Forms login add on. I use Gravity to generate my forms. I used to use CF7 until there was an update and a lot the other plugin's I was using to make CF7 do the magic for me did not work with CF7 anymore (it took over a month for them to update). So I switched to Gravity, which is a paid plug in. I like it a lot and it is worth the price. So, if you are going to do wordpress and want to do a login that has a custom registration process TML is the most popular and it is free. Gravity is paid but more user friendly and the forms development engine is really quite good. The wordpress plugin for EA is good but it does not hook into wordpress thus letting you use the wordpress functions to grab user ID user email and so on from the word press database. What I have done with my method is to fully hook in. I am able to use the wordpress functions in my code, this allows me to auto fill the username and email into EA if the client is logged in. That may not be a big deal for some. But for me everything is linked to that email address of my clients. I need it to auto fill correctly every time. I also grab the wordpress ID and it is loaded into EA. That way they work together. Also with the hooks I can use other plugins like "Insert PHP" to make a page where clients can see all their upcoming appointments and cancel them or edit them. So that is what I was wanting to do when I edited the EA code. --Craig |
Okay sounds good thank you. I am really quite confused on the cron tab. I'm going to see if there is another way to send texts without using cron. |
Cron is an issue. Every server has a slightly different address for it and then there are different ways of reaching php. It does not require cron, it the script can be launched by any timer. Have you found chron on your server? Have you opened it up. Often you will see other scripts running in there and you can discern from there how it is reaching php. |
I am not sure where to look honestly? I use blue host as my host, would that be considered my server? |
Yes, you may want to contact blue host and ask about access to cron tab. Let them know the address of the script you are hoping to launch. They may be able to help you out with that. |
Okay, thank you! Sorry to ask so many questions! Great application mods on your part! |
One quick question, is it possible to change the time that the text notification is sent to 1 or 2 hours before opposed to days? How would I go about doing that? Could I just write 1/24? |
It could be done. I have set it up for days. But you could tweak the code to allow for hours instead. I do not think that would be too difficult. |
Okay thanks! |
So, if the cron path is correct from the reminders.php file, will it send the texts? |
Short answer yes. Ok long answer, in my file "/application/controllers/cli/HowToUseCLI.txt" I have an example of how to add a line into Cron. The line will look something like this: 30 7 * * * root /usr/local/bin/php56 /volume1/web/PathToE!A/index.php cli/reminders The first two numbers (30 7) indicate that the script will launch at 7:30 AM. The 'root' indicates the level of permission to do the task and it is likely that root will be the case for you. The next path is the path to php on your server and in my case the path is /usr/local/bin/php56. But it is not that on all servers. For some, you just need 'php' and no path. This is not uncommon and it may be the case on your server. The server interprets it and knows the path. Mine requires php56 and the path to it because I have php5.6 and php 7.0 running at the same time on my server so I have to differentiate. And then the final path, of course is to EA and then the path to the reminders script. So the format that I am describing is common but the paths are unique. And then there is the use of a tab vs a space when separating the paths. Some require a space and others require a tab. Mine requires a tab. If you open up cron you will see how it is done on your server and you just need to keep with that convention. |
Found through "[/usr/local/bin]# ls" through terminal when I ssh'd into my host |
No you have php running it is just not there in that file. EA would not work without it. Try something like this: It often will work. |
Is there a certain way I should name the cron job? |
Never mind, I understand why that doesn't work! I think I may have gotten it, thanks! |
Is there a way to test if it works or not since I'm already live with clients currently? |
What you can do is launch the script through command line usually that means you go into the terminal and launch it with something like this: php /volume1/web/PathToE!A/index.php cli/waitinglist In cron try something like this: Are you sure that your address starts with volume1? Not all do. And not all have the web root folder as web so just be sure that is correct. Look at what is in cron now. Post it if it is safe, and I may be able to discern what to do from that. |
my username is blanked out on the fourth line to the bottom |
So it looks like you are not using the proper address to your easy appoitments. I found this: From this it looks like the line would be: Change username to your username and that should hit it. What you can do is, make an appointment within the time range, just set the cron time to 5 minutes from now and see if the reminder sends. That should do it. |
That looks good. you can leave out the line that is /home2/username/public_html/cron.php |
hmm, no dice- I took that line out. I'm going to sleep on it and trouble shoot tomorrow. Thank you so much for your help, I really appreciate the time you've spent helping me! |
So, I set it up to email me if successful.. the google/sync3 was! The cli/reminders hit an error Any thoughts? Would it be that it was not able to format or generate the phone number? When I was testing, i did not receive a text Error message received via email: Severity: Notice A PHP Error was encountered Severity: Notice User-Agent: Easy!Appointments A PHP Error was encountered Severity: Notice User-Agent: Easy!Appointments A PHP Error was encountered Severity: Notice User-Agent: Easy!Appointments |
Weird thing is that emails send fine when people book an appointment. Both the provider and the customer get one automatically |
Are you using the latest build? Your reminders file does not look right. It should look like this: So it line 45 in your file is found about 100 lines down in this. |
I am not using the latest build. I am using the previous build before your latest. Would I be able to configure a way to get this one working? I played around with the new one, love it, just wasn't sure the best way to update it without losing the appointments so I continued the current one. I also like how this one sends an email appointment right away, in the newest one it didn't and I have trouble configuring. Would it be possible to get the reminders.php working from the old one? Or, would it best to upgrade, configure then get it working from the newest build? |
I would use the newest one. The older one has lots of little glitches that are fixed in the new one. |
I am using the version before still - would that be the case? Is there a
way to work it with the one before your newest build?
Could I just switch out these files or would I have to update the whole
system?
…On Thu, Nov 16, 2017 at 19:31 Craig Tucker ***@***.***> wrote:
Are you using the latest build? Your reminders file does not look right.
It should look like this:
https://github.com/CraigT543/EasyBlue/blob/master/easyblue_1.2.0/easyblue_1.2.0/application/controllers/cli/Reminders.php
So it line 45 in your file is found about 100 lines down in this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXxC8T-bPcsZjPbokCTleQIqT6o_lMK_ks5s3NPVgaJpZM4QZ9O7>
.
|
You would need to run the update routine. It is pretty simple. I think you will see it is a significant improvement over the other builds. Bullmoose added some very nice features to the settings page and I built on what he did. Also, the mail system was improved so that everything is using the phpMailer system and I have dumped php Mail. It looks like that is an issue for you too. The update procedure is here: https://github.com/alextselegidis/easyappointments/blob/master/doc/update-guide.md |
I just noticed that I had forgotten to add the phpMailer changes. I will update that now. |
Ok, I have added the phpMailer changes. That should take care of your email problem. Give it a shot. I see that you made some modifications to the text in the reminder and waiting list file. Rather than do this directly to the code, now you will make those changes in the language file: EA/application/language/english/translations_lang.php I think the notes are sufficient to indicate where you will be changing things there. Also it is a lot easier to modify the colors now to match your site. So look at what is done there. That was another bullmoose idea. It is really good. Bullmoose also added formatting to the reminders and waiting list so it looks a little more polished. I have added some things that you will not need like a consent page. You can turn that off in settings. Take a good look there because there are a lot of improvements on that page. |
Wonderful, so now if I download the one off github it is updated? |
Yes, it should be good to go. |
Hi, I love the application.
I was wondering how I could get the SMS reminders to work? Right now they do not send. Is there an application I have to purchase or code mods that need to be made for the messages and reminders to go out through email and through texting?
Thank you so much!
The text was updated successfully, but these errors were encountered: