The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Show current Data and time on Form field
How can i show the current date and time separately on the form field....
i have a form having the fields username, currentdate, currtime, field4, field5,.. i only want user can enter values in field4 and 5, and first three values are shown automatically.... Can anyone help me in this regards. |
#2
|
||||
|
||||
Use something like this:
<input type="text" value="<?=date('d.M.Y');?>" readonly="readonly" /> |
#3
|
|||
|
|||
Quote:
I don't think wether, php tages (<? .... ?>) tags are worked in vb templates. I already try this. But after that, i create one plugin named show_currdate have following code. $showdate = date("Y-d-m"); when i call the variable ($showdate) in template it will show the date in format (0000-00-00). Only work on localhost, when i upload this on internet it will show nothing... Can u help me in this regard. |
#4
|
||||
|
||||
Ah, this is in the templates...
The plugin is the right way to go... try $showdate = date("Y-d-m", TIMENOW); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|