Results 1 to 1 of 1
 0 Attachment(s)    

Thread: Add date and time to the attachments list with vbulletin

  1. #1
    Senior Member fxtester's Avatar
    Join Date
    Nov 2008
    Posts
    3,165

    Default Add date and time to the attachments list with vbulletin

    Simply add this in attachmentbit in the "stats" part :

    Code:
    <li class="time">{vb:date {vb:raw attachment.dateline}, Y-m-d", "H:i}</li>
    vb:date will replace the unix date by a string date. Timestamp is not needed.

    {vb:raw attachment.dateline} will call the dateline (unix date) of the related attachment.

    Y-m-d", "H:i is the format of the string date. You can add
    Code:
    :s
    at the end to get the second.

    It took me two days to find these informations.

    In the "desc" part, add :

    Code:
    <li class="size shade">{vb:rawphrase date}:</li>
    More here : https://www.vbulletin.com/docs/html/main/styleref_templates_syntax
    Last edited by fxtester; 06-21-2016 at 23:16.

Similar Threads

  1. vBulletin alternatives
    By fxtester in forum General discussion
    Replies: 0
    Last Post: 06-15-2016, 18:58
  2. Requests about File Attachments & Elite section EAs
    By style-sheets in forum Trading discussion
    Replies: 1
    Last Post: 05-19-2016, 09:04
  3. Vbulletin search log
    By fxtester in forum General discussion
    Replies: 0
    Last Post: 09-03-2014, 20:03
  4. There is market time, but what about market date???
    By dennerle in forum MQL programming
    Replies: 2
    Last Post: 09-20-2010, 04:27
  5. Forum function: Shortcut to attachments.
    By CycleTrader in forum General discussion
    Replies: 2
    Last Post: 06-25-2010, 00:09

Tags for this Thread

add, attachment.dateline, date, main, time, vbraw, y-m-d

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •