<< Start < Prev 1 2 3 4 5 6 Next > End >>
Re:Send from frontend - 2008/05/29 22:58 Hello,

Edit the code in order to insert a Send button isn't easy and it's not the best solution.

If your student wants to leave the page, he can't because he must wait the end of the send process.

So, you can scheduled the newsletter normally but you can define automatically. For example, you can schedule your newsletter 1h in the future.

5 min would be better but you don't know if your student will edit the newsletter more than 5 min, so it isn't optimized.

You can edit a file in order to automate the scheduling process.

Find the line 323 of the file mailings.acajoom.html.php (<joomla>/administrator/components/com_acajoom/) :
Code:

 <input type="text" name="senddate" class="inputbox" size="20" maxlength="25" value="<?php echo $mailingEdit->send_date; ?>" />



Replace by :
Code:

 <?php $date date_parse($mailingEdit->send_date); $timestamp mktime($date['hour'] + 2$date['minute'], $date['second'], $date['month'], $date['day'], $date['year']); $send_date date('Y-m-d H:i:s'$timestamp); ?> <input type="text" name="senddate" class="inputbox" size="20" maxlength="25"  value="<?php echo $send_date; ?>" />



I add 2 hours, because by default, there's one hour less on the current time. So, to add 1 hour on the current time, I must add 2 hours.

Let me know if you have any problem.

Post edited by: kornikopic, at: 2008/05/29 23:03
*** Please, read our official documentation before posting. Thank you ***

Best regards,
Jonathan
  | | To post on the forum you need to sign in.
Re:Send from frontend - 2008/06/19 03:37 Hi Jonathan

I did as you have said and copied the code into the files. Unfortunately it still doesn't work in the frontend. The Newsletters just don't get sent.
In the backend the field for the timing of Newsletters has vanished and the senddate for Newsletters timed Newsletters reads 0000-00-00 00:00:00.

I am using Acajoom PRO 1.5.2, Joomla 1.0.13, Jcron wit UNIX Crontab: [10 * * * *] running in http://www.fachschaft-vetmed.ch/index.php?option=com_acajoom&act=cron

SELECT `id` FROM `#__content` WHERE `created`< '2008-06-11 00:00:00'

Maybe we can discuss this further on a bilateral base via skype or mail.

See you, martin
  | | To post on the forum you need to sign in.
Re:Send from frontend - 2008/06/20 00:04 Hello Martin,

Have you verified that the variable $mailingEdit exists ?

Otherwise, I highly don't recommend you to use JCron because it's not a good component at all as it's based on user visits.

You can setup a cron task for free. Please, follow the instructions in the documentation page :
http://www.acajoom.com/content/view/4249/93/

Post edited by: kornikopic, at: 2008/06/20 00:05
*** Please, read our official documentation before posting. Thank you ***

Best regards,
Jonathan
  | | To post on the forum you need to sign in.
Re:Send from frontend - 2008/06/23 19:56 Hello Jonathan

Thanks for your reply again. I have set up the cron at joobi last night and tried to schedule a newsletter - both in the front and in the backend. Both didn't get sent and both show 0000-00-00 00:00:00 as the senddate.

I guess we are getting closer now as I am convinced that you know why it doesn't write a date.

Will you tell?

Martin

Post edited by: stalders, at: 2008/06/23 19:59
  | | To post on the forum you need to sign in.
Re:Send from frontend - 2008/06/24 21:25 Hello Martin,

Could you provide me a temporary access with the admin rights to your website ? I would like to check your configuration. Thank you.

Please, use our contact form (support) to send me the private data.
*** Please, read our official documentation before posting. Thank you ***

Best regards,
Jonathan
  | | To post on the forum you need to sign in.
<< Start < Prev 1 2 3 4 5 6 Next > End >>
Acajoom Acajoom
- - - - - - - - - - - - - - - - - -
Content Statistics
Google Adsense Search
News
Acajoom PRO
Acajoom PRO
€79.95
Add to Cart






Lost Password?
No account yet? Register

Last Posts

Breathtakers