2014-06-26, 11:59 PM
I had removed
And I commented out the randomplot_admin function line (including the opening and closing curly braces). So that when the file was called it should have just started running checks as if the function were called.
So, by rights, it should just start executing when the page gets loaded. I've tried adding an echo line just to see if the conditions are being met, but for some reason it still blanks out.
Though I've discovered that if I go to:
admin/index.php?module=forum-randomplot&action=randomplot
Then it does rendered the table correctly. (The add, edit and delete pages don't render properly yet... but one thing at a time.)
EDIT - Everything for normal use appears to be functioning properly now (adding new, editing existing, deleting unnecessary, etc...).
I've got a few more tests to run (installing, uninstalling etc...) with it first before I make it available though. (I hope those functions work smoothly, but if not I'll be back with more questions...)
But either way... thanks for all your help Dragonexpert, I appreciate it.
$plugins->add_hook('admin_load', 'randomplot_admin');
from the inc/plugins file.And I commented out the randomplot_admin function line (including the opening and closing curly braces). So that when the file was called it should have just started running checks as if the function were called.
So, by rights, it should just start executing when the page gets loaded. I've tried adding an echo line just to see if the conditions are being met, but for some reason it still blanks out.
Though I've discovered that if I go to:
admin/index.php?module=forum-randomplot&action=randomplot
Then it does rendered the table correctly. (The add, edit and delete pages don't render properly yet... but one thing at a time.)
EDIT - Everything for normal use appears to be functioning properly now (adding new, editing existing, deleting unnecessary, etc...).
I've got a few more tests to run (installing, uninstalling etc...) with it first before I make it available though. (I hope those functions work smoothly, but if not I'll be back with more questions...)
But either way... thanks for all your help Dragonexpert, I appreciate it.