[Web4lib] Using DOM scripting to show/hide Meebo widget based onlogin status
Kozlowski,Brendon
bkozlowski at sals.edu
Wed Oct 7 15:43:23 EDT 2009
Alex replied to me when I think the reply was meant to go to the topic, so that comment is below.
Brendon Kozlowski
Web Administrator
Saratoga Springs Public Library
49 Henry Street
Saratoga Springs, NY, 12866
[518] 584-7860 x217
________________________________
From: Alex Smith [mailto:smith48 at sonoma.edu]
Sent: Wed 10/7/2009 12:45 PM
To: Kozlowski,Brendon
Subject: Re: [Web4lib] Using DOM scripting to show/hide Meebo widget based onlogin status
If you're on PHP, do this. Include this wherever you need to include
the widget withing the page. Note that time() will calculate whatever
time your server is set to so make sure you know that.
detect the time with time() function;
assign a variable to time $time = time();
$refdeskopentime = (this is a timestamp of when the desk opens each
day). I woud use mktime() to construct this.
$refeeskclosetime = the opposite of open time: it's the closing time.
//the function to display it:
//yourfilename would reference the file which contains the meebo <div>
element.
if ($time >= $refdeskopentime && $time < $refdeskclosetime){
include('yourfilename.php');
}
questions?
Alex Smith
Web Services Librarian
Sonoma State University
To report this message as spam, offensive, or if you feel you have received this in error,
please send e-mail to abuse at sals.edu including the entire contents and subject of the message.
It will be reviewed by staff and acted upon appropriately.
More information about the Web4lib
mailing list