Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#41 2020-11-23 12:04:41

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,383
Website

Re: smd_tabber: create custom admin-side tab structures

Hi Stef thanks for answer, i put smd_query as working on both public and admin and it worked.

But that s not explaining why it s working on txp 4.5.7 and not in 4.8.1!

Did that means that we cant use public plugins on smd_tabber now ?

Cheers.

Offline

#42 2020-11-23 12:23:53

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,994
Website

Re: smd_tabber: create custom admin-side tab structures

Dragondz wrote #326988:

Did that means that we cant use public plugins on smd_tabber now ?

As far as I recall, you never could. Might be wrong. Might have been because we moved some admin functions to a dedicated file that is only loaded on admin panels, but I’m not sure.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#43 2020-11-23 13:03:39

etc
Developer
Registered: 2010-11-11
Posts: 4,076
Website

Re: smd_tabber: create custom admin-side tab structures

Dragondz wrote #326988:

Did that means that we cant use public plugins on smd_tabber now ?

Bloke wrote #326989:

As far as I recall, you never could. Might be wrong. Might have been because we moved some admin functions to a dedicated file that is only loaded on admin panels, but I’m not sure.

All tags-processing functions are in txplib_publish.php which had never been included on the admin side AFAIR. This said, you can try to include_once it in the plugins code.

Offline

#44 2020-11-23 14:33:39

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,383
Website

Re: smd_tabber: create custom admin-side tab structures

etc wrote #326990:

All tags-processing functions are in txplib_publish.php which had never been included on the admin side AFAIR. This said, you can try to include_once it in the plugins code.

Hi Oleg

I tryed that but it s not working, the only solution (and a simple one) is tu make the plugin i want to use in smd_tabber as public+admin type plugin.

Cheers.

Offline

#45 2020-11-23 15:26:03

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,994
Website

Re: smd_tabber: create custom admin-side tab structures

Dragondz wrote #326992:

the only solution (and a simple one) is tu make the plugin i want to use in smd_tabber as public+admin type plugin.

Yes. No matter what else is going on with core files, the plugin type governs where a plugin loads. If it’s not designated to run there, it’ll get skipped.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB