Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: smd_tabber: create custom admin-side tab structures
I’m getting a fatal error when installing under 4.9 beta 1:
Fatal error: Uncaught mysqli_sql_exception:
Table 'tablename.v0_smd_tabber' doesn't exist in /home1/blah/public_html/textpattern/lib/txplib_db.php:442 Stack trace: #0
/blah/public_html/textpattern/lib/txplib_db.php(442): mysqli_query()
etc.
The plugin is listed in the plugins tab, but toggling to “yes” repeats the error above.
Offline
Re: smd_tabber: create custom admin-side tab structures
Hi Gary, it’s been a while since I checked, but I think I fixed those here.
PS: You need to copy the contents of the repo to your /textpattern/plugins/smd_tabber/ directory (or overwrite what you have now) and then import the plugin (again). You may need to re-trigger the setup step if you are copying over the past code.
TXP Builders – finely-crafted code, design and txp
Offline
Re: smd_tabber: create custom admin-side tab structures
Eek, have I not rolled those fixes into my repo and issued a new version? How slack of me, sorry. I’ll get a new version bundled up later today.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: smd_tabber: create custom admin-side tab structures
Okay, it was worse than I thought. I’d not even made a git repo for the plugin. Not touched the code since 2011 so it’s a testament to Txp that it still worked (bar the installation routine snafu) on all versions since 4.4.0!
Anyway, I totally refactored the plugin to reduce its footprint (made it a class), as well as registering the plugin tags and letting the stylesheets respond to CSP if using 4.9.0+.
The privileges now also take into account any changes made by other plugins such as smd_user_manager so you can offer dashboards to extended users and groups.
As always, feedback is welcome. Any problems, please raise an issue and I’ll try and tend to them.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: smd_tabber: create custom admin-side tab structures
Not tried it yet, but just have to say: “You’re a hero!” 🎉
TXP Builders – finely-crafted code, design and txp
Offline
Re: smd_tabber: create custom admin-side tab structures
Thanks, both. Its working :).
Offline