Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
increment +3 instead of +1
jackmaessen
✭✭✭
I am using this plugin for increment the views. I put in the settings increment by 1 (which is suggested).
By clicking a topic open, he increases with 3 instead of 1
How can that happen?
0
Comments
what does it increment by if you turn off the plugin?
the plugin will increment when you click open, regardless whether something else is incrementing.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
there is s saying Lucky at Card, Unlucky in love.
http://idioms.thefreedictionary.com/Lucky+at+cards,+unlucky+in+love
there is s saying Lucky at Card, Unlucky in Plugins.
I hope you are lucky in Love, because you don't seem to have much luck with plugins.
BTW, I just tested the plugin in the off chance, you are reporting a bug.
Unfortunately for you and fortunately for me, there is not a bug, and the plugin works as stated.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
yes, i feel bad asking again something but i do not understand it. When i disable the plugin the views doesn't count at all. It keeps staying at the same number. So that's the reason i choose for this plugin.
I followed some topics about it here with the same problem. I also tried the option with .htaccess (php_flag magic_quotes_gpc Off) but nothing seems to help. It is just not incrementing. So this plugin does increment but with 3 instead of 1
I also tried to edit the plugin a little bit like this:
$DiscussionView = $MyDiscussion->CountViews + $Increment ;
//original$DiscussionView = $MyDiscussion->CountViews + $Increment -2
; // editedBut when doing this, he still increments with 3
$Configuration['Plugins']['IncrementView']['Increment'] = '1';
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
why not ask your host to turn off magic quotes for you in the php.ini
have you verified if magic quotes is off or on?
http://vanillaforums.org/discussion/comment/209000/#Comment_209000
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Yes that line is already in my config file
did you ever set it to 3?
if so, your config.php is probably cached.
see....
http://vanillaforums.org/discussion/comment/209000/#Comment_209000
and contact your host, if the plugin doesn't work for you. so you can resolve it without a plugin.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
no i never did , and i emptied my ini files in cache folder and i also emtied my browsers cache...but no result
emptying ini files and emptying browser cache has no impact if you have some form of php caching or cloudlfare caching your config.php.
in that case re-read and answer that question.
why not ask your host to turn off magic quotes for you in the php.ini
have you verified if magic quotes is off or on?
also try making changes .... as indicated...
http://vanillaforums.org/discussion/comment/209000/#Comment_209000
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
these magic quotes are off
http://forum.webprofis.nl/info.php
file an issue on github, views should increment without needing the plugin or wait till next release.
the plugin works for most people as a workaround for:
https://github.com/vanilla/vanilla/issues/1899
other than the info I provided already, maybe there is a developer in your town you can hire to look at your site.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
oke...i also edited class.discussionmodel.php and class.statistics.php like you mentioned in the topic but also without result.
when disabling the plugin he doesn't increment at all and with enabling plugin he counts +3
Oke, never mind, thanks for support @peregrine
OK, i found something very important! I use Bootstrap theme and when switch back to Baseline theme, views is now incremented with 1. So next step is to find out what causes the problem in Bootstrap theme...
Also tested with Bitter Sweet theme: increment with 1
for the record I tested on bootstrap theme in my environment and increment view works as expected for every theme, including bootstrap.
you have an interesting issue, unless you made mods, to bootstrap theme, I find it a bit hard to fathom, why the theme cause issues in your environment and not mine using same theme.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Good to hear that @peregrine; that means it is not an issue with Bootstrap theme. I also can not explain why this is an issue, because the theme has nothing to do with the input in the database. The only thing i can imagine is that there is some kind of refresh when using the theme and therefore it counts 2 or 3 times extra in the database. This is very very strange for me, specially when you affirm that it works fine in your case.
remember the goal is to simplify. reduce all extraneous factors. when trying to solve something.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Pergerine, you made my day! I downloaded again complete bootstrap theme, deleted the old one and replaced the new one. And.....increment with 1!!! Conclusion: one of my own stupid modifications in the theme causes that problem. Glad it works fine now! Thanks for testing it. The issue is history now
you deserve the smatching badge.
and always clone your theme if you can, instead of making direct changes.
then you could have tested with MyBootstrap theme vs. Original Bootstrap.
just a best practice.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.