SetVariable with a Plugin Variable?

Posted by Bobo on Thu 07 Aug 2008 12:27 PM — 2 posts, 14,810 views.

USA #0
What am I supposed to do about setting a variable contained in a plugin to a value different from what the origional variable was?

The only way I can think of, with my limited knowledge (I'm trying to figure out plugins atm before I dive into them) is to create the variable when the plugin installs, but I don't know how to do that :o
Australia Forum Administrator #1
My advice is not to use variables in the plugin file itself. See the suggestions here for serializing variables:

http://www.gammon.com.au/forum/?id=4960

When the plugin installs you can create the variable if it didn't previously exist. I'm not too sure if that answers your question. If not, please do an example plugin, and explain what you are trying to do, and in what way it doesn't work.