Hi,
Ive downloaded and installed an add-on called "Last Seen Online" (
https://vborg.vbsupport.ru/showthread.php?t=123366) which shows when users were last online in their postbit. It works as intended, and displays the following:
Last Online: 26/09/2009 21.35PM
I believe the relevent code is:
Quote:
$this->post['lastseen_date'] = vbdate($this->registry->options['dateformat'], $this->post['lastactivity'], true);
|
Unfortuately however, this is wider than the postbit on my forum and goes on to a second line which looks messy. So I was hoping to make it shorter. For example:
Last Online: 26/09 21.35PM
Or ideally in a more user friendly format;
Last Online: Today 21.35PM
My programming skills are a bit lacking but I had a go and tried making the following adjustment:
Quote:
$this->post['lastseen_date'] = vbdate[d/m], $this->post['lastactivity'], true);
|
Not surprisingly this gave an error! So what is the correct markup to change the date format (btw I realise you can change the overall Date/Time options from the AdminCP, but I only wanted to change this)?
Many Thanks. :up: