Results 1 to 2 of 2

Thread: Modifying the Time Period for Alerts (CRON)

  1. #1
    Thread Starter
    Expired Customer linda2013's Avatar
    Join Date
    Feb 2013
    Posts
    5
    Thanks
    1
    Thanked 1 Time in 1 Post

    Modifying the Time Period for Alerts (CRON)

    Hi Guys

    Just confirm if below is OK? (Added Weekly and Monthly)

    In theme-cron.php

    PHP Code:
    // add custom job alerts schedules to cron
    function jr_cron_add_custom_schedules() {
          
        
    $schedules['ten_minutes'] = array ( 
                
    'display'  => __('Every Ten Minutes'APP_TD), 
                
    'interval' => 10*60
        );
            
        
    $schedules['twenty_minutes'] = array ( 
                
    'display' => __('Every Twenty Minutes'APP_TD), 
                
    'interval' => 20*60
        );    
        
        
    $schedules['thirty_minutes'] = array ( 
                
    'display'  => __('Every Thirty Minutes'APP_TD), 
                
    'interval' => 30*60
        );    
                             
        
    $schedules['every_week'] = array ( 
                
    'display'  => __('Weekly'APP_TD), 
                
    'interval' => 60*60*24*7
        );    

        
    $schedules['every_month'] = array ( 
                
    'display'  => __('Monthly'APP_TD), 
                
    'interval' => 60*60*24*30
        );        
                        
         return 
    $schedules;
             

    and in admin-values.php

    PHP Code:
            'options' => array(  
                
    'ten_minutes'    => __('Every Ten Minutes'APP_TD),
                
    'twenty_minutes' => __('Every Twenty Minutes'APP_TD),
                
    'thirty_minutes' => __('Every Thirty Minutes'APP_TD),
                
    'hourly'          => __('Once Hourly'APP_TD),
                
    'daily'          => __('Once Daily'APP_TD),
                
    'every_week' => __('Weekly'APP_TD),
                
    'every_month' => __('Monthly'APP_TD),
                
            ) 
    Cheers

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,978
    Thanks
    170
    Thanked 3,407 Times in 3,278 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Dimitris How to change the time of cp_ad_expired_check cron job?
    By talent in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: January 16th, 2013, 10:42 AM
  2. Replies: 1
    Last Post: December 3rd, 2012, 01:02 PM
  3. Unlimited time period for ads
    By webdevil in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: August 23rd, 2011, 09:05 AM
  4. Modifying Email of Expired Ad vs Modifying Email of Registration
    By kplunk in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: November 23rd, 2010, 08:43 PM