5
Hello,
Thanks for the plug Stefan.
Our module, Formulize, could be used to do this. You would create a form for your widgets, with two textboxes as you describe. Then users can fill in the form multiple times if necessary (for multiple widgets). You would not need to manually do anything in the DB, since Formulize does that for you.
To display the counts, you could write a page in the companion "Pageworks" module, where you can use a function called
"getData" to gather information from your form. You can then display that data however you need to in the page.
To display the page as a block, you just create a PHP block in XOOPS with this code in it:
$page=1;
include XOOPS_ROOT_PATH . "/modules/pageworks/index.php";
And that's about it. Obviously there's more details in how you actually use the getData function and so on, but that's probably the only tricky bit of this process. The creation of the form and having users fill it in is all "out-of-the-box" functionality that Formulize provides.
If you have any questions about using Formulize, please check out our area on dev.xoops.org, where you can also download the latest versions. It's conveniently accessible through this URL:
http://www.freeformsolutions.ca/formulize--Julian