Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
685 views
in Q2A Core by
I want to display question views but only to a certain limit. For example:

Question A: 340 views

Question B: 1,000+ views

I think it's important to hide your most visited pages from competitors. Keyword competition in Google results can be brutal. But I still want users to know which questions are most visited.
Q2A version: Latest

1 Answer

+1 vote
by

If you have fixed maximum number than the easiest (may not be the perfect) way to do is just check conditionally with the max number and show unless it is lower than that else display your max number. 

Here is the simple logic. Of course, you will have to change variable and figure you want.

if ($viewCount < 1000) {
	//show view count as it is
} else {
	//show view count 1000+
}
by
Thank you. That helps.
by
OH 0_0
I didn't know that i can use this option :) Thank you, guys!
...