The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Date Stamp
Alright I'm having trouble with one of may hacks because I want it to record the date the entry was made (i.e. When you post it automaticly adds the date.) Any one know the code for this? Or how abouts to do it?
|
#2
|
||||
|
||||
If you are inputting the date directly into the database, then simply use
Code:
NOW() for example for an insert statement: Code:
INSERT INTO forum (id,date,whatever) VALUES ('1', NOW(), 'whatever'); Code:
UPDATE forum SET id = '1', date = NOW(), whatever = 'whatever' WHERE id = '1'; What format MySQL uses will be determined by the column type. i.e. a 'DATE' type will only give today's date, whereas a datetime type will give a hash comprised of the date, and current time down to the second. |
#3
|
||||
|
||||
Hey thanks alot. When I can release this hack I'm sure many will love it. I have posted about it but I have done so much new stuff to it.
It's for vb3 so can't release yet. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|