Quote:
Originally Posted by Saint_ago
Hi! That's a nice hack, thank you for doing it!
I've installed the hack yesterday, and i'm having an issue with the Thumbs Center. In the column "Date/Time", all dates and time are showing the variables "d-m-Y - H:i" instead of the actual date and time. How can i fix it?
Thanks in advance
|
Quote:
Originally Posted by Saint_ago
Fixed by myself.
In "thumbs_center.php"
Changed from:
Code:
$content['date'] = vbdate("d-m-Y - H:i", $xxx['xxx']);
To:
Code:
$content['date'] = vbdate($vbulletin->options['dateformat'] . ', ' . $vbulletin->options['timeformat'], $xxx['xxx']);
Now it uses the date/time format i've set in Vbulletin settings 
|
I had the same problem, thanks for help in fixing it, tho I had to change another code.
When I used your code I got date "01-01-70 00:00" everywhere (probably because I pasted everything including $xxx

). So if anybody has the same problem this is how to fix it:
Go to thumbs_center.php
Change:
Code:
$content['date'] = vbdate("d-m-Y - H:i", $post['dateline']);
To:
Code:
$content['date'] = vbdate($vbulletin->options['dateformat'] . ', ' . $vbulletin->options['timeformat'], $post['dateline']);
And if you have thumbs up activated for more than just posts (like for visitor msgs, blog posts, etc) you need to find all:
Code:
$content['date'] = vbdate("d-m-Y - H:i",
And replace it with:
Code:
$content['date'] = vbdate($vbulletin->options['dateformat'] . ', ' . $vbulletin->options['timeformat'],
That worked for me.