Welcome to Lantro UI! Test link Buy now!

Enable Realtime Post Views Counter

Easy steps to Enable Realtime Post Views Counter in Plus UI v2.6

Realtime Views
Fineshop Design | Realtime Views

Most welcome to Fineshop Design!

As you know, Fineshop Design recently released Plus UI v2.6 which comes with more features if compared with Plus UI v2.5.1. Realtime Views Counter has been added in the Lastest Version, which shows the realtime views of your Blog Posts with the help of Firebase Database.

If you would like to enable it on your Blog, follow these simple steps to get started.

Note that it will not work in Plus UI older versions. Make sure you get the lastest template update.

Requirements

  1. Firebase Account
  2. Plus UI v2.6 Template

Enabling Views Count

Step 1: First of all create a project in Firebase.

Step 2: Create Database for your Project.

Step 3: Paste the following rules:

{
"rules": {
".read": true,
".write": true,
}
}

These rules are sensitive, it allows anyone to steal, modify or delete data in your database.

Step 4: Copy the Database URL.

Step 5: Go to Theme HTML Editor.

Step 6: Find the following codes:

realViews: {
databaseUrl: "",
abbreviation: "false"
}

Step 7: Paste your Database URL, it will look something like following:

realViews: {
databaseUrl: "https://example-rtdb.firebaseio.com",
abbreviation: "false"
}

Step 8: Save Changes and refresh your Blog Page.

Showing Abbreviated Views Count

If you would like to display the views counts in Abbreviated numbers, i.e. 67.89K instead of 67894, you just need to follow simple steps.

Step 1: Find the following codes by going to Theme HTML Editor:

realViews: {
databaseUrl: "",
abbreviation: "false"
}

Step 2: Replace false with true as shown below:

Don't make any changes if it is already true.

realViews: {
databaseUrl: "",
abbreviation: "true"
}

Step 3: Save Changes and refresh your Blog Page.

Related Articles

Contacting Us

Feel free to contact us through Contact Page or reach us on Telegram (@deo_kumar) if you are facing any problem while following the steps described above.

Documentation
Droidnur is the Founder & CEO of droidnur.eu.org & Publisher with an Entrepreneur. He is Also a Collage Student & Full Time Passionate Blogger.

Post a Comment

Cookies Consent

This website uses cookies to ensure you get the best experience on our website.

Cookies Policy

We employ the use of cookies. By accessing Lantro UI, you agreed to use cookies in agreement with the Lantro UI's Privacy Policy.

Most interactive websites use cookies to let us retrieve the user’s details for each visit. Cookies are used by our website to enable the functionality of certain areas to make it easier for people visiting our website. Some of our affiliate/advertising partners may also use cookies.