The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I look for this modification
![]() I have this code, but I can not say 'today' when creating a theme today, looks like this "(He <1 day)" and "yesterday" when I spend a day and if you could put in gray and remove the "()" would be perfect, thanks Code:
$startparts = explode('/', vbdate('m/d/Y', $thread['dateline'], true));
$endparts = explode('/', vbdate('m/d/Y', TIMENOW, true));
$startdate = gregoriantojd($startparts[0], $startparts[1], $startparts[2]);
$enddate = gregoriantojd($endparts[0], $endparts[1], $endparts[2]);
$days = ($enddate - $startdate == 0) ? '< 1' : $enddate - $startdate;
if ($thread['dateline'])
{
$thread['threaddate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline'], 1);
$thread['threaddate'] = " Hace $days d?as";
}
|
|
#2
|
||||
|
||||
|
tried closing the angle brackets? like
'<1>' ? |
|
#3
|
|||
|
|||
|
now appears "<1> days" but does not say "today"
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|