PDA

View Full Version : Today's Date: Anywhere you want!


King Kovifor
04 Jan 2006, 02:21
Plugin today's date anywhere in the system. Just place the following JAVASCRIPT in the HTML Code.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Different Version: http://www.vbulletin.org/forum/showpost.php?p=864146&postcount=4

Note:

Java taken from freeservers site. I take NO Credit once so ever, it's just instructions.

Snake
04 Jan 2006, 12:33
Thanks, works just fine! :)

Allan
04 Jan 2006, 12:47
Screen please :)

jugo
04 Jan 2006, 12:58
Wouldn't a plugin using php's



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



function work just as well....

then set that to a variable and insert it wherever you want.

EDIT: this is for jilly - as requested in PM: (don't mean to be rude and steal your thread, so please let me know if you want me to move this post.)

Install this plugin and insert


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


wherever you want to display the date and time.

You can change the display of the date and time by editing the plugin:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Rich
04 Jan 2006, 13:38
Hello,

Just to make sure no one gets in trouble, did you get this script from Dynamic Drive? If you did, and you removed their copyright, people can get in trouble for using it with the copyright stripped.

King Kovifor
08 Jan 2006, 23:21
Hello,

Just to make sure no one gets in trouble, did you get this script from Dynamic Drive? If you did, and you removed their copyright, people can get in trouble for using it with the copyright stripped.

Nope, what's Dynamic Drive?

ChurchMedia
09 Jan 2006, 06:49
Wouldn't a plugin using php's


Code:
date();

function work just as well....

then set that to a variable and insert it wherever you want.



I tried it your way and it just shows up as yyyy-mm-dd (2006-01-08) on the FORUM HOME page. It's fine on other pages...

Ideas?

Paul M
09 Jan 2006, 09:23
The date and time are already available anywhere in vb as $datenow and $timenow (formatted as per your vb options). The year is also available as $copyrightyear.

King Kovifor
10 Jan 2006, 20:09
The date and time are already available anywhere in vb as $datenow and $timenow (formatted as per your vb options). The year is also available as $copyrightyear.
I did not know that. Thanks.