Results 1 to 2 of 2

Thread: Jobs with less then one day duration

  1. #1
    Thread Starter
    Rookie prabo's Avatar
    Join Date
    Sep 2011
    Location
    Leipzig, Germany
    Posts
    9
    Thanks
    1
    Thanked 1 Time in 1 Post

    Jobs with less then one day duration

    Hy!

    I have found a bug in the Single-Job-Page View.
    If the placement runs less then one day, they will be shown as expired, but our client's would use the duration until the last hour.

    To fix this bug, I have done these changes:

    File: jobroller/include/theme-functions.php
    Function: jr_remaining_days(...)
    PHP Code:
    function jr_remaining_days($post) {
        
    $date get_post_meta($post->ID'_expires'true);

        if (
    $date) :

        
    $days = ($date-strtotime('NOW'))/86400;
            if(
    $days && $days 0$days 1;
            if (
    floor($days)==1) return '1 '.__('day','appthemes');
            if (
    $days<=0) return __('Expired''appthemes');
            return 
    floor($days).' '.__('days','appthemes');

            endif;

            return 
    '-';

    I hope I could help.

    Did exist any german forum for jobroller? Because I have problems with the tax in germany, which wouldn't calculated if customers use paypal.

    Bye,
    Stefan

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,693
    Thanks
    166
    Thanked 3,387 Times in 3,258 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. Duration of the paid ad
    By ivanko in forum Help Using ClassiPress
    Replies: 4
    Last Post: December 11th, 2011, 01:16 PM
  2. Expire an Ad on given date not duration
    By howiej in forum ClassiPress General Discussion
    Replies: 3
    Last Post: March 1st, 2011, 07:43 AM
  3. Duration of a featured ad?
    By islandhorses in forum ClassiPress General Discussion
    Replies: 1
    Last Post: January 26th, 2011, 01:45 AM
  4. CP 3.0.5.2 - Ad Pack duration
    By firstline in forum ClassiPress General Discussion
    Replies: 1
    Last Post: December 27th, 2010, 12:31 AM