Bug Date / Time Line is not correctly formatted in downloads listing.

Status
Not open for further replies.

chatty

Customer
Hi there,

dont know why that happend :) but it's not nice to see hyroglyphs in the Download Listing Section.
It shows not the Dateline and not the Time correctly. It shows : %10%20%30 and so on.
Have a look into the screenshots.

On the screen before.PNG you see the Listing after newly installation of the Addon.

On the screen after.PNG you see the listing after my changes in actions/listings.php

find in actions/listings.php
PHP:
$listings['updated']         = vbdate($vbulletin->options['dateformat'] . ' ' . $vbulletin->options['timeformat'], $listings['updated'], true , false);

replace it with

PHP:
            /* Cosmetics Start*/ 
            // $listings['updated']         = vbdate($vbulletin->options['dateformat'] . ' ' . $vbulletin->options['timeformat'], $listings['updated'], true , false);
            
            $formatted_dateline = vbdate($vbulletin->options['dateformat'], $listings['updated'], true);
            $formatted_timeline = vbdate($vbulletin->options['timeformat'], $listings['updated']);
            $listings['updated'] = $formatted_dateline. "  ".$formatted_timeline;
            /* Cosmetics End */

I know , your code do the same, but it won't show up.

After that it looks a bit nicer
 

Attachments

  • before.webp
    before.webp
    5.1 KB · Views: 5
  • after.webp
    after.webp
    7.1 KB · Views: 4
Or you can change the original Codeline from
PHP:
$listings['updated']         = vbdate($vbulletin->options['dateformat'] . ' ' . $vbulletin->options['timeformat'], $listings['updated'], true , false);
to
PHP:
$listings['updated'] = vbdate($vbulletin->options['dateformat'],$listings['updated'],true).'  '.vbdate($vbulletin->options['timeformat'],$listings['updated']);

The same thing in actions/download.php
original Code :
PHP:
$comment['dateline'] = vbdate('M jS Y', $comment['dateline'], true, false);
My Code
PHP:
$comment['dateline'] = vbdate($vbulletin->options['dateformat'],$comment['dateline'],true).'  '.vbdate($vbulletin->options['timeformat'],$comment['dateline']);
So less variables :)
 
Status
Not open for further replies.

Similar threads

Legacy vBDownloads

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
1,716
Customer rating
0.00 star(s) 0 ratings
Back
Top