mfyvie
07-06-2007, 10:39 AM
I'm seeing a very strange issue which I'm thinking of raising as bug.
Before I do, I just want to double check that I'm not doing something silly.
A few weeks ago I had 2 users report that I mod I made was doing something which was not default behaviour (as I had set it up). Everybody else did get the default behaviour. At least one user said that they checked the setting in question and it was set to "No" which was the default. However, the mod was behaving as if it were set to "Yes".
To be honest, I assumed these users were just thick. Since it worked for everyone else, I guessed they were wasting my time.
Last night I uninstalled a new mod I was working on (totally different to the one I just mentioned), and then reinstalled it to test it. Without going and saving the settings I got non-default behaviour. I immediately went to check settings, and I could see a similar issue to the one that was reported to me earlier - those users weren't lying, it was possible for a variable to be set in the admincp options and for it to end up a something different!
I'm not able to recreate this (have to invest more time in it), but I'm suspecting that if the user checks the settings after install and clicks save, then everything is ok. However, if they accept defaults and never look at the settings, then maybe some of these variables are not being initialised correctly?
I am making the assumption that I don't have to have my installation routine update anything, that vbulletin should handle this automatically.
Should I raise this as a bug report?
Just to illustrate this point further in case it wasn't clear. Imagine a hypothetical mod called dancing hamsters. It has an option like this:
"Show dancing hamsters on every forum page. Recommended setting: No - hamsters will annoy visitors". Variable name: $showhamsters. Type: yesno. Default no.
In your plugin you have something like this:
if ($vbulletin->options['showhampsters'])
{
// Pull in our hamster template
}
Now 100 people install your mod and nobody gets hamsters by default. But one person contacts you about the annoying hamsters on their forum page. The conversation goes like this:
User: I have hamsters, how do I turn them off?
Coder: They are off by default, did you turn them on?
User: No
Coder: I don't believe you
User: It's true - I don't even know where to turn them on or off, what should I do?
Coder: Check in the settings.
User: Ok, according to the settings, they are off. But I still see them.
Coder: I still don't believe you
User: If I turned them on and off, that fixed it. Now they are off.
Coder: Mutters under breath, still doesn't believe the user.
Until one evening, coder discovers the same thing with a different mod on a new installation of that mod...
Before I do, I just want to double check that I'm not doing something silly.
A few weeks ago I had 2 users report that I mod I made was doing something which was not default behaviour (as I had set it up). Everybody else did get the default behaviour. At least one user said that they checked the setting in question and it was set to "No" which was the default. However, the mod was behaving as if it were set to "Yes".
To be honest, I assumed these users were just thick. Since it worked for everyone else, I guessed they were wasting my time.
Last night I uninstalled a new mod I was working on (totally different to the one I just mentioned), and then reinstalled it to test it. Without going and saving the settings I got non-default behaviour. I immediately went to check settings, and I could see a similar issue to the one that was reported to me earlier - those users weren't lying, it was possible for a variable to be set in the admincp options and for it to end up a something different!
I'm not able to recreate this (have to invest more time in it), but I'm suspecting that if the user checks the settings after install and clicks save, then everything is ok. However, if they accept defaults and never look at the settings, then maybe some of these variables are not being initialised correctly?
I am making the assumption that I don't have to have my installation routine update anything, that vbulletin should handle this automatically.
Should I raise this as a bug report?
Just to illustrate this point further in case it wasn't clear. Imagine a hypothetical mod called dancing hamsters. It has an option like this:
"Show dancing hamsters on every forum page. Recommended setting: No - hamsters will annoy visitors". Variable name: $showhamsters. Type: yesno. Default no.
In your plugin you have something like this:
if ($vbulletin->options['showhampsters'])
{
// Pull in our hamster template
}
Now 100 people install your mod and nobody gets hamsters by default. But one person contacts you about the annoying hamsters on their forum page. The conversation goes like this:
User: I have hamsters, how do I turn them off?
Coder: They are off by default, did you turn them on?
User: No
Coder: I don't believe you
User: It's true - I don't even know where to turn them on or off, what should I do?
Coder: Check in the settings.
User: Ok, according to the settings, they are off. But I still see them.
Coder: I still don't believe you
User: If I turned them on and off, that fixed it. Now they are off.
Coder: Mutters under breath, still doesn't believe the user.
Until one evening, coder discovers the same thing with a different mod on a new installation of that mod...