Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2012-05-24 16:42:20

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: smd_tabber: create custom admin-side tab structures

What permissions are required for users to get the css for the tabs? Not sure if it’s how I’m using bot_privs or not but my Managing Editor gets a restricted message for the css url.

Edit: Uninstalling bot_privs didn’t fix the issue.

Last edited by MattD (2012-05-24 16:44:05)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#32 2012-05-25 04:01:52

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 597
Website

Re: smd_tabber: create custom admin-side tab structures

Same here, always end up hard linking CSS in admin templates.

Offline

#33 2012-06-10 19:01:14

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,421
Website GitHub Mastodon

Re: smd_tabber: create custom admin-side tab structures

Ditto. Looks like publisher privilege is required for the tab’s own css. Other users get the theme’s css and nothing more.

Offline

#34 2012-07-28 14:37:37

etc
Developer
Registered: 2010-11-11
Posts: 5,677
Website GitHub

Re: smd_tabber: create custom admin-side tab structures

I am speechless… where can we grab a good collection of admin tags, and when will they work on the whole admin side?

Offline

#35 2012-08-13 22:24:06

gfdesign
Member
From: Argentina
Registered: 2009-04-20
Posts: 401

Re: smd_tabber: create custom admin-side tab structures

Hi Stef. First of all, thanks for this and the other (awesome) plugins. This, I discovered it thank to my compatriot @Maniqui. He suggested me use it for custom article lists with its associated image, of course inside Admin side. Something that I wanted since I started to use Txp.

I’m working with MLP plugin to manage a bilingual site. I wonder if is possible to create two tabs and in each one, to make a custom article list (showing its associated image) of each language. Do you think it is possible?
Looking forward your reply.
Best regards

Offline

#36 2017-10-18 08:34:01

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: smd_tabber: create custom admin-side tab structures

Hello, I have the following problem when I create a tab that makes a full text search paged in a table of an old site. When displaying the first page of the search, I have this url and a correct result page.

https://mysite.be/textpattern/index.php?event=old-site

When I click on page links 0, 1, 2, 3, … I have this url

https://mysite.be/textpattern/index.php?event=old-site?cmd=search&words=Herbeuval&mode=normal&p=0

that leads to an empty page with the message “restricted area”.
Where is the problem ? My code ? TXP ?

I’m on 4.7 dev

Last edited by jpdupont (2017-10-18 08:36:16)

Offline

#37 2017-10-18 10:13:52

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

Re: smd_tabber: create custom admin-side tab structures

jpdupont wrote #307432:

https://mysite.be/textpattern/index.php?event=old-site?cmd=search&words=Herbeuval&mode=normal&p=0

You have two question marks in the URL, which probably won’t be helping. The one before cmd should be an &. Looks like the plugin or your code is just tacking the search results onto the end without taking into account the existing URL params.

If you manually change the URL to use an ampersand, does the restricted area message go away? If so, we need to trace back and find out why the URL is being mangled.


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

#38 2017-10-18 10:55:40

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: smd_tabber: create custom admin-side tab structures

Bloke wrote #307434:

You have two question marks in the URL

That was the mistake! I should have seen it, so obvious. Thanks Stef!

Offline

#39 2020-11-23 10:50:53

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

Re: smd_tabber: create custom admin-side tab structures

Hi,

I installed the plugin in a txp 4.8.1 and it worked, i used a page with an smd_query to get some DB data, but it tells me that: smd_query tag does not exist (Before you ask smd_query is installed and activated)

I used the same code in the a txp 4.5.7 installation and it worked!

has something changed to throw this error ?

Thanks.

Offline

#40 2020-11-23 11:47:50

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

Re: smd_tabber: create custom admin-side tab structures

Dragondz wrote #326985:

I installed the plugin in a txp 4.8.1 and it worked, i used a page with an smd_query to get some DB data, but it tells me that: smd_query tag does not exist

Probably because the smd_query plugin is type ‘0’ (load on public side only) but you’re trying to use it on an admin tab. You’ll need to nudge it to type ‘4’ in the database to get it to respond on the admin side too. No idea why it’d work in 4.5.7 though, as there’s nothing I can think of that’s changed in the plugin loading regard since. Unless you’d already altered the plugin’s type there?


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

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

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

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: 12,459
Website GitHub

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.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

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

etc
Developer
Registered: 2010-11-11
Posts: 5,677
Website GitHub

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,559
Website GitHub Twitter

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: 12,459
Website GitHub

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.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB