Jump to content


Photo
- - - - -

Date & Time Hook


  • Please log in to reply
8 replies to this topic

#1 Lase

Lase

    IPB Full Member

  • +Clients
  • 153 posts

Posted 12 June 2012 - 12:51 PM

I'm surprised there isn't one of these as far as I know.

I'm prepared to pay someone who would be able to come up with a sidebar hook that displays the date and time.

Something really simple, if it looked like this it would be ideal :

Posted Image

Naturally there'd need to be an option in profile settings to specify what time zone should be displayed in case of the user visiting from elsewhere in the world.

"When watching television your conscious mind doesn't really have to take much of a hold on it because it has no say in the matter. It's the subconscious mind they want it to work on because whatever the subconscious works on will ultimately work on you. It just takes more time to settle itself like jelly poured into a mould." - Lase.
 


#2 Lase

Lase

    IPB Full Member

  • +Clients
  • 153 posts

Posted 12 June 2012 - 12:59 PM

Maybe a square clockface or a combination of both

Posted Image

"When watching television your conscious mind doesn't really have to take much of a hold on it because it has no say in the matter. It's the subconscious mind they want it to work on because whatever the subconscious works on will ultimately work on you. It just takes more time to settle itself like jelly poured into a mould." - Lase.
 


#3 Aiwa

Aiwa

    I code for fun

  • Marketplace Moderator
  • PipPipPipPipPipPipPipPip
  • 5,034 posts

Posted 12 June 2012 - 02:29 PM

You could probably get away with some open source java applet and a little CSS. Componsating for the users timezone wouldn't be hard at all either...

#4 Dmacleo

Dmacleo

    Needs Life

  • +Clients
  • 6,548 posts

Posted 12 June 2012 - 02:33 PM

custom sidebar block mod is all you need I think.
then link to a widget or something.
http://community.inv...sidebar-blocks/

or if you have ip.content you can just build a block and put it on page.

Dmac
 


#5 Sandi_

Sandi_

    Code Addict

  • Members
  • PipPipPipPipPipPip
  • 1,064 posts

Posted 12 June 2012 - 02:36 PM

Occasionally I add a clock to one of my sites.

Whether forum, blog or webpage I like the variety of flash clocks. http://www.clocklink.com/gallery.php

The simple scripts can be placed almost anywhere.

Twenty years ago we had Johnny Cash, Bob Hope and Steve Jobs.

 

Now we have no Cash, no Hope and no Jobs. PLEASE! Don't let Kevin Bacon die.


#6 Lase

Lase

    IPB Full Member

  • +Clients
  • 153 posts

Posted 12 June 2012 - 03:17 PM

I've done a combination of what you Sandi_ and Dmacieo suggested and picked the least offensive date and time stamp I could find on that site, but I set it to GMT+1. Applicable to me but it won't be for someone in America and users are from everywhere.

"When watching television your conscious mind doesn't really have to take much of a hold on it because it has no say in the matter. It's the subconscious mind they want it to work on because whatever the subconscious works on will ultimately work on you. It just takes more time to settle itself like jelly poured into a mould." - Lase.
 


#7 Aiwa

Aiwa

    I code for fun

  • Marketplace Moderator
  • PipPipPipPipPipPipPipPip
  • 5,034 posts

Posted 12 June 2012 - 04:19 PM

Like I said before, you need to find a good open source javascript clock script. Specifically one that allow you to alter what timestamp it uses to generate the time. You can then throw in the data pertinent to the member or guest that trigers the load...

I wouldn't call myself someone that knows much about javascript... I'll certainly putz with it since it is a good idea...

#8 Lase

Lase

    IPB Full Member

  • +Clients
  • 153 posts

Posted 12 June 2012 - 05:39 PM

Foooo, we're going beyond my level of understanding there.

"When watching television your conscious mind doesn't really have to take much of a hold on it because it has no say in the matter. It's the subconscious mind they want it to work on because whatever the subconscious works on will ultimately work on you. It just takes more time to settle itself like jelly poured into a mould." - Lase.
 


#9 Sandi_

Sandi_

    Code Addict

  • Members
  • PipPipPipPipPipPip
  • 1,064 posts

Posted 12 June 2012 - 05:51 PM

Most members have their timezone set. You can use one of the javascript clocks in my link above in a js function, and send the members timezone to it. You will probably have to fiddle with some date functions to change the offset to timezone.

$offset = $this->memberData['time_offset'];

Twenty years ago we had Johnny Cash, Bob Hope and Steve Jobs.

 

Now we have no Cash, no Hope and no Jobs. PLEASE! Don't let Kevin Bacon die.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users