Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-22-2012, 07:34 AM   #1
Django
So Fucking Banned
 
Industry Role:
Join Date: Jul 2010
Posts: 2,578
is there a jQuery plugin or JS code for time durations?

This is what I'm looking for

from 1 minute 7 seconds to 67 seconds
Django is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2012, 09:41 AM   #2
Why
MFBA
 
Industry Role:
Join Date: Mar 2003
Location: PNW
Posts: 7,230
Quote:
Originally Posted by Django View Post
This is what I'm looking for

from 1 minute 7 seconds to 67 seconds
why does it need to be in JS?
Why is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2012, 09:49 AM   #3
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by Django View Post
This is what I'm looking for

from 1 minute 7 seconds to 67 seconds
if its for wordpress you can do this with built in functions.

Code:
<?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?>
but if you want jquery here is a couple.

http://pragmaticly.github.com/smart-time-ago/

http://timeago.yarp.com/
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2012, 10:58 AM   #4
Django
So Fucking Banned
 
Industry Role:
Join Date: Jul 2010
Posts: 2,578
Quote:
Originally Posted by fris View Post
if its for wordpress you can do this with built in functions.

Code:
<?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?>
but if you want jquery here is a couple.

http://pragmaticly.github.com/smart-time-ago/

http://timeago.yarp.com/

no it's for mechbunny, I'm going to read and try

thanks
Django is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2012, 01:47 PM   #5
Django
So Fucking Banned
 
Industry Role:
Join Date: Jul 2010
Posts: 2,578
Quote:
Originally Posted by Why View Post
why does it need to be in JS?
no, I thought about JS. if you know a better solution please let me know.
Django is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2012, 02:42 PM   #6
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by Django View Post
no, I thought about JS. if you know a better solution please let me know.
if you want something you can plug into mechbunny, you could do a php function which you could just call for in your template.

http://css-tricks.com/snippets/php/time-ago-function/
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2012, 09:47 PM   #7
potter
Confirmed User
 
Industry Role:
Join Date: Dec 2004
Location: Denver
Posts: 6,559
Quote:
Originally Posted by Django View Post
This is what I'm looking for

from 1 minute 7 seconds to 67 seconds
multiple minutes by 60, add to seconds?
__________________

potter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2012, 12:28 AM   #8
Django
So Fucking Banned
 
Industry Role:
Join Date: Jul 2010
Posts: 2,578
Quote:
Originally Posted by potter View Post
multiple minutes by 60, add to seconds?
indeed that's it.


thanks fris
Django is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.