pob13
Forum Replies Created
-
Forum: Plugins
In reply to: [Showtime] Problem with the Admin sideI 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 thoughForum: Plugins
In reply to: [Showtime] Problem with the Admin sideI 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. MondayPut
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];