2014-06-26, 12:20 AM
I've been working on a plugin for my MyBB forum for a while now. But I've hit an impasse. I've gotten basically everything done and by rights it should be working properly... I mean the front end aspects work as intended. But I can't for the life of me get the ACP side working.
The ACP side should work, but when I go to click on the link to load the plugin, this is the screen I get. I don't think the issue is in the admin/index.php part so much as somewhere in the code I've written.
I've stared at the code for this for a while and I'm just not seeing where the issue actual stems from. (I'm sure it's something simple that I'm overlooking.) So can someone (who knows a bit more about PHP) please have a look and help me figure this out?
The plugin is here (or a slightly newer text version here.)
Notes:
1- Please don't install on live sites. It's not ready for that yet. I'm not responsible for any issues/errors or problems that result from your use of this code. You've been warned.
2- In order to get the replacement aspect to work you have to add {randomplot_chosen} somewhere in your templates (preferably on your index).
3- You can manually add content (to get swapped by the code) with PHPMyAdmin and the swap function does work.
The ACP side should work, but when I go to click on the link to load the plugin, this is the screen I get. I don't think the issue is in the admin/index.php part so much as somewhere in the code I've written.
I've stared at the code for this for a while and I'm just not seeing where the issue actual stems from. (I'm sure it's something simple that I'm overlooking.) So can someone (who knows a bit more about PHP) please have a look and help me figure this out?
The plugin is here (or a slightly newer text version here.)
Notes:
1- Please don't install on live sites. It's not ready for that yet. I'm not responsible for any issues/errors or problems that result from your use of this code. You've been warned.
2- In order to get the replacement aspect to work you have to add {randomplot_chosen} somewhere in your templates (preferably on your index).
3- You can manually add content (to get swapped by the code) with PHPMyAdmin and the swap function does work.