Forum Replies Created

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter pob13

    (@pob13)

    I still have not found a solution to this problem, but what I have been doing is using php admin from my sites CPANEL and editing the details directly.

    If you want to do this you will need to use https://www.epochconverter.com/ to convert times to their epoch numbers. (Sounds more complicated than it is and that site also lets you do the other way round so you could use what is already there to give an idea of what’s required) Also note that the times next to these numbers were an hour our on my, possibly due to the timezone.

    The problem with the plug in, is that it uses a .php file that has not been declared correctly, which then calls .js files which also haven’t been declared correctly, to do all of the admin and widget stuff.
    The normal page display is just handled by the main php file, which is why it still displays in full if you use the shortcode. Unfortunately I do not know how to fix this. I’m sure, and hoping, someone who knows more about wordpress plugins would have no problem sorting it though

    Thread Starter pob13

    (@pob13)

    I have found out the the 2 .js files are inactive, but I don’t know enough of how WP coding works to resolve the issue. Any help would be much appreciated

    Its an easy fix to get this to do days of the week….its just a matter of getting it to compare the start date with date(“l”)
    which is the php code to get the current day name i.e. Monday

    Put

    if ($atts['start_date'] == date("l") ) {
    			$atts['start_date'] = $curTime[0];
    			$atts['end_date'] = $curTime[0];
    			$atts['start_time'] = $curTime[1];
    			$atts['end_time'] = '23:59';
     }

    just before

    if (empty($atts['start_date']))
    			$atts['start_date'] = $curTime[0];
Viewing 3 replies - 16 through 18 (of 18 total)