curriertech
01-25-2013, 08:14 PM
First off let me be clear, I'm not a programmer so I don't know what I'm talking about, and I'm probably going to break my forum trying to do this.
So today I was trying to figure out how to make a basic plugin to define an array of forumids to generate a value that I could use in a template conditional. After several iterations of trial and error it functions well, suprisingly. However, I thought it would be better if instead of having to edit the array with forumids, I could add a checkbox in the forum settings for "don't show ads" and store that attribute in the database, using that data to generate the array. That way if I add a new forum and check that box, no ads are displayed and I didn't have to touch the plugin.
Any advice on how I could accomplish this? Conceptually it doesn't sound like it could be that difficult but as I said, I'm no programmer.
So today I was trying to figure out how to make a basic plugin to define an array of forumids to generate a value that I could use in a template conditional. After several iterations of trial and error it functions well, suprisingly. However, I thought it would be better if instead of having to edit the array with forumids, I could add a checkbox in the forum settings for "don't show ads" and store that attribute in the database, using that data to generate the array. That way if I add a new forum and check that box, no ads are displayed and I didn't have to touch the plugin.
Any advice on how I could accomplish this? Conceptually it doesn't sound like it could be that difficult but as I said, I'm no programmer.