MN Forum
Change "# Registered Users" to "# total hits" - Printable Version

+- MN Forum (http://forum.mn-shop.com)
+-- Forum: Products (http://forum.mn-shop.com/forum-products.html)
+--- Forum: Ask a Question (http://forum.mn-shop.com/forum-ask-a-question.html)
+--- Thread: Change "# Registered Users" to "# total hits" (/thread-change-registered-users-to-total-hits.html)



Change "# Registered Users" to "# total hits" - youcanfinddavid - 08-05-2014

Hello,

I am trying out the demo and I would like to know if there is a way to change "# registered users" on the home page to "# total hits"?

Thanks!


RE: Change "# Registered Users" to "# total hits" - Admin - 08-05-2014

Hello,

There isn't such a feature, but script is not encoed and what you need is easy to be done, so yes, is possible.

Regards!


RE: Change "# Registered Users" to "# total hits" - DyegoAV - 08-05-2014

Open header.php file;

Find <p class="user_count"> and change query "SELECT COUNT(*) AS total FROM `users`" to "SELECT SUM(`value`) AS `total` FROM `web_stats`"

Change <?=$lang['b_230']?> to total hits.

Good luck!


RE: Change "# Registered Users" to "# total hits" - youcanfinddavid - 08-06-2014

(08-05-2014, 01:02 PM)DyegoAV Wrote: Hidden content for guests

Thanks!