PDA

View Full Version : want to use post date in title


ymcus
01-04-2014, 08:42 PM
dear all,
i want to use post date of thread in my title automatically when a user post any thread.
any body guide me which variable should be used to display post date in this code.
$thread['title'] = fetch_censored_text($thread['title'])

ozzy47
01-04-2014, 08:46 PM
I am sure there may be a way, but may I ask why you would want such a thing?

ymcus
01-05-2014, 06:46 AM
i want to make my title unique many users post thread in my forum with same title sometimes so i want to make by title unique by adding date attribute with titile

kh99
01-05-2014, 10:44 AM
You could try this:


$thread['title'] = fetch_censored_text($thread['title']) . ' ' .
vbdate($vbulletin->options['dateformat'] . ' ' . $vbulletin->options['timeformat'], $thread['dateline'])