Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Auction Countdown Timer, 2017 edition

 
post Feb 20 2017, 15:34
Post #1
Scremaz



A certain pervert. OT expert. Just dancing around in the game.
***********
Group: Gold Star Club
Posts: 24,287
Joined: 18-January 07
Level 500 (Ponyslayer)


In case you need a timer for your auction, giveaway or whatever else event, you can use Superlatanium's Countdown Timer, which can be reached here: [reasoningtheory.net] https://reasoningtheory.net/maketimer.html

Instructions:

1. go to the website linked
2. fill the needed fields: title, end date, end time; remember that time is UTC only
3. check the preview, and if it works as intended copy/paste it in your thread.


Example: the following timer:



can be generated by typing the following values:
CODE
Timer title: Test Timer
End date:
  Year: 2020
  Month: 12
  Day: 20
  Hour: 14
  Minute: 0


which will generate the following code:
CODE
[img]https://reasoningtheory.net/countdown.png?title=Test%20Timer&year=2020&month=12&day=20&hour=14&minute=0[/img]


This post has been edited by Scremaz: Feb 20 2017, 15:59
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 20 2017, 15:36
Post #2
Scremaz



A certain pervert. OT expert. Just dancing around in the game.
***********
Group: Gold Star Club
Posts: 24,287
Joined: 18-January 07
Level 500 (Ponyslayer)


also, i take the chance to:
  1. thanking Tearlow for his previous timer
  2. thanking Superlatanium for his current timer
  3. encourage all users to report here any feature about this project
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 20 2017, 16:08
Post #3
Superlatanium



Dreaming of optimizing the system
*********
Group: Gold Star Club
Posts: 7,497
Joined: 27-November 13
Level 500 (Godslayer)


Current source code:

Attached File  countdown.php.txt ( 1.48k ) Number of downloads: 182
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 17 2017, 16:04
Post #4
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,044
Joined: 24-March 12
Level 500 (Godslayer)


Super, can you add an expire= parameter? Like the old timer had.

Binglo used the old timer in tag votes, and set expire=Vote has ended. i.e.
CODE
$remaining = $endTime - time();
if(isset($_GET['expire']))
  $str_expire = $_GET['expire'];
else
  $str_expire = 'This auction has expired';

if ($remaining < 0) {
  $str = $str_expire;
  $textcolor = imagecolorallocate($img, 204, 0, 0);
} else {
...


Pretty please?

This post has been edited by blue penguin: Apr 17 2017, 16:04
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 18 2017, 02:07
Post #5
Superlatanium



Dreaming of optimizing the system
*********
Group: Gold Star Club
Posts: 7,497
Joined: 27-November 13
Level 500 (Godslayer)


Sure
Example: [reasoningtheory.net] https://reasoningtheory.net/countdown.png?t...e%20has%20ended.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 18 2017, 02:14
Post #6
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,044
Joined: 24-March 12
Level 500 (Godslayer)


QUOTE(Superlatanium @ Apr 18 2017, 01:07) *
Thank you!

I have used the parameter already in the tag vote thread (I'm not linking it here 'cause you posted there not long ago anyway). You just coded something towards and interface that was being used before you added the code (IMG:[invalid] style_emoticons/default/smile.gif) . Gotta love URL/web standards/PHP robustness.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 25th April 2024 - 12:05