We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE 3.3 DP1 - Do a recount at end of theme install so dashboard stats correct.

Developer Preview

John Henry Donovan's avatar
John Henry Donovan
12,339 posts
9 years ago
John Henry Donovan's avatar John Henry Donovan

If the default theme is selected and installed, it might be a good idea to do a recount so the initial dashboard shows correct amount of entries.

       
Wes Baker's avatar
Wes Baker
343 posts
9 years ago
Wes Baker's avatar Wes Baker

Open up system/ee/EllisLab/ExpressionEngine/Service/Theme/ThemeInstaller.php and look at line 401 and replace this:

->filter('entry_date', '<', $now)

With this:

->filter('entry_date', '<=', $now)

Next, open up system/ee/EllisLab/ExpressionEngine/Model/Member/Member.php and look at line2 262-263 and replace this:

$this->total_entries = $total_entries;
$this->total_comments = $total_comments;

With this:

$this->setProperty('total_entries', $total_entries);
$this->setProperty('total_comments', $total_comments);

Last up, open up system/ee/EllisLab/ExpressionEngine/Service/Theme/ThemeInstaller.php and look at line 578:

$entry->entry_date = time();

And replace that with this:

$entry->entry_date = ee()->localize->now;
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.