Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#46 2024-11-26 01:35:09

giz
Plugin Author
From: New Zealand
Registered: 2004-07-26
Posts: 433
Website GitHub Twitter

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

#47 2024-11-26 08:32:43

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,192
Website GitHub

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

#48 2024-11-26 10:41:24

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,438
Website GitHub

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

#49 2024-11-26 18:07:39

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,438
Website GitHub

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.

Download v0.2.0


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

#50 2024-11-26 18:37:31

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,192
Website GitHub

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

#51 2024-11-26 20:24:54

giz
Plugin Author
From: New Zealand
Registered: 2004-07-26
Posts: 433
Website GitHub Twitter

Re: smd_tabber: create custom admin-side tab structures

Thanks, both. Its working :).

Offline

Board footer

Powered by FluxBB