+ Post New Thread
Results 1 to 14 of 14
Web Development Thread, Snow watch in Coding and Web Development; Hi all, I'm wondering if any one can help me. What I'm wanting is something to put onto the schools ...
  1. #1

    bladedanny's Avatar
    Join Date
    May 2009
    Location
    Sheffield
    Posts
    1,297
    Thank Post
    191
    Thanked 309 Times in 230 Posts
    Rep Power
    170

    Snow watch

    Hi all,

    I'm wondering if any one can help me.
    What I'm wanting is something to put onto the schools home page to warn if the school is closed/open in the event of snow. It also needs to be updated as easily as possible by the head, who has no website editing knowledge.

    I've thought of using Twitter and embeding a Twitter badge on the site. The problem I have with this is hiding it when nothing is diplayed. I need it to kind of take over the main content when needed to.
    So far I have managed to strip the html badge down and with css make all borders etc invisible so it just displays the text. But when nothing is entered even though nothing displays it leaves a nasty looking blank spot on the page.

    I hope this makes sense and if it doesnt please ask for more detail.

    Hope some one has some ideas,

    Dan

  2. #2
    steve_nfi's Avatar
    Join Date
    Nov 2007
    Location
    Central London
    Posts
    291
    Thank Post
    149
    Thanked 24 Times in 20 Posts
    Rep Power
    19
    Can't you just insert an RSS feed from your local TV or Radio website?

  3. #3

    bladedanny's Avatar
    Join Date
    May 2009
    Location
    Sheffield
    Posts
    1,297
    Thank Post
    191
    Thanked 309 Times in 230 Posts
    Rep Power
    170
    Quote Originally Posted by steve_nfi View Post
    Can't you just insert an RSS feed from your local TV or Radio website?
    Pass, I don't know, this is something I will look at, but if its possible I would like to cut out the need to rely on 3rd parties.

    Thanks,

    Dan

  4. #4
    mossj's Avatar
    Join Date
    Dec 2008
    Location
    Leicester
    Posts
    1,466
    Thank Post
    157
    Thanked 189 Times in 174 Posts
    Rep Power
    52
    What is your website based on HTML? PHP? CMS?

    The solution the head found at my old school was to phone me at 6 in the morning to put it on...

  5. #5


    Join Date
    Sep 2007
    Location
    UK
    Posts
    5,463
    Thank Post
    1,462
    Thanked 892 Times in 573 Posts
    Rep Power
    647
    We use this.

    sipgate.co.uk - free phone service over your broadband link - voice over ip provider

    It gives a local number that they call for recorded info. There is an answerphone facility but we don't use that.

  6. #6
    somabc's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    2,337
    Thank Post
    83
    Thanked 388 Times in 258 Posts
    Rep Power
    112
    Quote Originally Posted by bladedanny View Post
    I've thought of using Twitter and embeding a Twitter badge on the site.
    Noooooooooooo! What if twitter is not working!?

    Quote Originally Posted by bladedanny View Post
    but if its possible I would like to cut out the need to rely on 3rd parties
    The Irony... I think you could update the page by SMS/MMS/email
    Last edited by somabc; 15th December 2009 at 12:36 PM.

  7. #7

    bladedanny's Avatar
    Join Date
    May 2009
    Location
    Sheffield
    Posts
    1,297
    Thank Post
    191
    Thanked 309 Times in 230 Posts
    Rep Power
    170
    Quote Originally Posted by mossj View Post
    What is your website based on HTML? PHP? CMS?

    The solution the head found at my old school was to phone me at 6 in the morning to put it on...
    It's HTML

  8. #8

    bladedanny's Avatar
    Join Date
    May 2009
    Location
    Sheffield
    Posts
    1,297
    Thank Post
    191
    Thanked 309 Times in 230 Posts
    Rep Power
    170
    Quote Originally Posted by somabc View Post
    Noooooooooooo! What if twitter is not working!?



    The Irony... I think you could update the page by SMS/MMS/email
    I Thought someone might point this out as soon as I posted it.

    What I meant to say was I'd like to cut out 3rd parties having to post the information. To acheive what I want I will almoast certainly need to use a 3rd party like twitter or something.

    Basicly the head needs to be able to log on (to something) and type in 'school closed' and press ok.

    Cheers,

    Dan

  9. #9
    somabc's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    2,337
    Thank Post
    83
    Thanked 388 Times in 258 Posts
    Rep Power
    112
    Quote Originally Posted by bladedanny View Post
    I Thought someone might point this out as soon as I posted it.

    What I meant to say was I'd like to cut out 3rd parties having to post the information. To acheive what I want I will almoast certainly need to use a 3rd party like twitter or something.

    Basicly the head needs to be able to log on (to something) and type in 'school closed' and press ok.

    Cheers,

    Dan
    Well done on getting the head to agree to update this by himself btw!

  10. #10

    bladedanny's Avatar
    Join Date
    May 2009
    Location
    Sheffield
    Posts
    1,297
    Thank Post
    191
    Thanked 309 Times in 230 Posts
    Rep Power
    170
    Quote Originally Posted by somabc View Post
    Well done on getting the head to agree to update this by himself btw!
    It wasn't that difficult, she is quite good at getting things done. She already updates the newsletter and note home weekly using ftp.

  11. #11
    SteveBentley's Avatar
    Join Date
    Jun 2007
    Location
    Yorkshire
    Posts
    1,447
    Thank Post
    120
    Thanked 263 Times in 189 Posts
    Rep Power
    73
    In that case, assuming your webserver allows PHP, rename your index page to be index.php

    Have a text file in a directory somewhere on ther server which the head can write to, and can put messages about snow etc into, perhaps teach her the very basics of the header tags. You could leave a note about how to do it commented out in the file.

    Then on your page, use

    PHP Code:
    <?php
    include("path/to/that/file.txt");
    ?>
    and the contents of the file the head updates will be automatically included wherever you put that. When there is no announcement just leave the included file blank.

  12. Thanks to SteveBentley from:

    bladedanny (15th December 2009)

  13. #12
    Chunky's Avatar
    Join Date
    Nov 2007
    Location
    Newbridge, Wales, UK.
    Posts
    167
    Thank Post
    15
    Thanked 26 Times in 20 Posts
    Rep Power
    19
    Here's a simple idea.
    Why not have 2 files, and make a batch file to rename / overwrite when necessary?

    Copy your current page, add "School open" and save as Open.htm
    Change it to School closed" and save as Closed.htm

    Batch file open.bat
    copy open.htm index.htm

    Same thing for closed.

    Then just give permission for access to the head to run the batches.

    Chunks
    Last edited by Chunky; 15th December 2009 at 01:25 PM.

  14. Thanks to Chunky from:

    bladedanny (15th December 2009)

  15. #13
    rad
    rad is online now
    rad's Avatar
    Join Date
    Jan 2009
    Location
    Middlesex
    Posts
    2,529
    Thank Post
    339
    Thanked 319 Times in 242 Posts
    Rep Power
    112
    if that doesnt work, what about using photobucket.

    Add onto Photobucket a picture of say a blank white box. In Photobucket you have the option of changing the picture and addign text onto it so you can edit the "picture" and retain the image coding.

    At least that way you can save the hassle of logging into the school site if the webusage goes sky high and have another option available to you.

    If that makes no sense then i'll rephrase the above.

  16. Thanks to rad from:

    bladedanny (15th December 2009)

  17. #14
    jmair's Avatar
    Join Date
    Aug 2007
    Posts
    279
    Thank Post
    61
    Thanked 9 Times in 9 Posts
    Rep Power
    16
    Quote Originally Posted by SteveBentley View Post
    In that case, assuming your webserver allows PHP, rename your index page to be index.php

    Have a text file in a directory somewhere on ther server which the head can write to, and can put messages about snow etc into, perhaps teach her the very basics of the header tags. You could leave a note about how to do it commented out in the file.

    Then on your page, use

    PHP Code:
    <?php
    include("path/to/that/file.txt");
    ?>
    and the contents of the file the head updates will be automatically included wherever you put that. When there is no announcement just leave the included file blank.
    I agree with this. If your webserver allows php, I would add two things to your site.
    1: a hidden backdoor page http://www.exampledomain.org/enews.php that would allow you to submit text to the first line of the file.txt file.
    2: the php include from the file.txt, pehaps in bold red on your websites homepage.

    This is quite simple and I'm sure any of us could assist you if you need help with it.

SHARE:
+ Post New Thread

Similar Threads

  1. Snow!!!
    By Pyroman in forum General Chat
    Replies: 138
    Last Post: 12th February 2009, 10:37 PM
  2. SNOW CLOSURE
    By alan-d in forum General Chat
    Replies: 137
    Last Post: 11th February 2009, 09:32 AM
  3. Snow please!
    By tech_guy in forum General Chat
    Replies: 41
    Last Post: 4th December 2008, 01:27 PM
  4. Snow
    By FN-GM in forum General Chat
    Replies: 44
    Last Post: 2nd December 2008, 03:25 PM

Thread Information

Users Browsing this Thread

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •