Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter sektor1952

    (@sektor1952)

    So it wouldn’t be anything on the cpanel side where it resides?

    Thread Starter sektor1952

    (@sektor1952)

    I apologize I think I may have needed it to put this in networking.

    Thread Starter sektor1952

    (@sektor1952)

    Sorry for the delay in getting back to you the widget is running, hope you had a good christmas and new year. I was wondering if there is a way to only show 1 timer at a time like if it is counting down for midweek service, hide the sunday service timer and visa versa.

    I know it did it for a little bit, but when I removed the widget from the side bar because we were not going to have a service and put up a text box it no longer does it instead it shows the timers for both services at the same time and no we do not have a custom css file.

    Thread Starter sektor1952

    (@sektor1952)

    I had the plugin coded for multiple days and it would switch between the 2 different days without an issue, just if there was 2 events on the same day it would just show the countdown for the event that was on a different day.

    Thread Starter sektor1952

    (@sektor1952)

    Ok thanks, by the way the timer widget is not working at all.

    Thread Starter sektor1952

    (@sektor1952)

    It’s ok I have been busy as well, but the multiple timer’s wouldn’t work as it would make the site to cluttered is it possible to have the 1 timer do multiple events on the same day?

    Thread Starter sektor1952

    (@sektor1952)

    Well at church we have a select group of users that run our video switcher during service and I wanted to give them limited access to our site ie to trigger a live broadcast and instead adding them to the role which has the appropriate permissions and then using your plugin to hide the menu’s that I don’t want them to see it would be easier just to tie it to the role and take care of 2 birds with one stone so to speak.

    Thread Starter sektor1952

    (@sektor1952)

    I haven’t heard anything and was wondering if there was an update?

    Thread Starter sektor1952

    (@sektor1952)

    Sorry for the delayed reply I have been busy, I don’t know if a ticket got opened or not I don’t remember it has been a while, but basically on Sunday we were running 2 services 8:30 AM and 10:30 AM, and Wednesday we have a service at 6:45.

    There are occasions where we may have 3 services in one day and I know in the readme I believe it stated that multiple services in one day have not been tested and may not work.

    It would be preferable if we can stick with one widget as multiple will make the site a little cluttered. Thank you in advance and god bless.

    Thread Starter sektor1952

    (@sektor1952)

    Anyone have any suggestion or updates?

    Thread Starter sektor1952

    (@sektor1952)

    Enjoy your time off and thanks, it worked sort of I didn’t get the error any more but it wasn’t working quite right I think it maybe the limitations of the code.

    Thread Starter sektor1952

    (@sektor1952)

    That’s ok I probably should have explained it better to begin with anyway and I do have to agree with you 100% about mixing code languages and sorry for the delay in getting back to you I was away for the weekend. So if I understand you correctly just do seperate if statements closing it with this <?php } ?> and remove the last else statement or keep it in there, because I thought that last else statement is like a fall back statement of some sort.

    Thread Starter sektor1952

    (@sektor1952)

    What about if it looked like this, except I think I tried that and I got an unexpceted end error, if I remember correctly.

    <?php if strtotime($event_start) - strtotime($event_start_mid) > 0) { /* Sunday 830 */ ?>
    		<span id="rt-until"><?php echo $instance['event_until_sun830']; ?></span>
    		<span id="rt-event"><?php echo $instance['event_name_sun830']; ?></span>
    		<span id="rt-on"><?php echo $instance['event_now_sun830']; ?></span>
    
    <?php else if(strtotime($event_start) - strtotime($event_start_mid) > 0) { /* MIDWEEK */ ?>
    		<span id="rt-until"><?php echo $instance['event_until_mid']; ?></span>
    		<span id="rt-event"><?php echo $instance['event_name_mid']; ?></span>
    		<span id="rt-on"><?php echo $instance['event_now_mid']; ?></span>
    		<?php } else { ?>
    		<span id="rt-until"><?php echo $instance['event_until']; ?></span>
    		<span id="rt-event"><?php echo $instance['event_name']; ?></span>
    		<span id="rt-on"><?php echo $instance['event_now']; ?></span>
                    <?php } ?>
    Thread Starter sektor1952

    (@sektor1952)

    I will post the whole file if need be the code listed above is the part I am having trouble with.

    Thread Starter sektor1952

    (@sektor1952)

    The event_start_mid is correct, basically this is a reoccuring timer for when we broadcast our church services, currently it is coded to allow for 2 different events, but we since added another service and I wanted to update the timer to refelect that.

    I already updated the .php file with the new variable, but when I try to duplicate the _mid lines I get either sudden end of file or unexpected ;, but I can’t find where the issue is so basically I was looking for suggestions on formatting to make sure it needed to be formatted a certain way.

    A clarification on the variables anything _mid stands for midweek service I want to add *_sun830 for the sunday morning 8:30 service and the default variables are for the regular sunday service, any suggestions would be greatly appreciated.

Viewing 15 replies - 1 through 15 (of 16 total)