Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
748 views
in Q2A Core by
I have turned off showing views and yes I have turned on "Count the number of question views"  For some reason the view numbers are not getting larger I have turned it back on just to check and also checked the database.  Any ideas?

my site is http://wiltedleaf.com but i currently have it off.
by
OK i know what is going on, since its counted based on IP address it appears all my request come from my ELB load balancer, is there anything I can do?

1 Answer

0 votes
by

Look for references to $_SERVER['REMOTE_ADDR'] in qa-page-question.php - that's how Q2A currently retrieves the remote IP address for incrementing the page views. You can replace that code as appropriate for your setup.

In Q2A 1.4.1 I will replace all references to $_SERVER['REMOTE_ADDR'] throughout the code base with calls to a single function defined in qa-base.php, so you'll have one place where you can make the change, and it will fix everything.

by
Thanks that would be great!
by
If you made this change it would also allow me to block users by IP right?
by
Yes, that's correct.
by
I've the same problem with cdn.
what i can do with the last version to do not see ever only 1 or 2 views?

Thank you
...