Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: smd_tabber: create custom admin-side tab structures
Same here, always end up hard linking CSS in admin templates.
Offline
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
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
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
Online
#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
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
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
Online
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
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
Online
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
Re: smd_tabber: create custom admin-side tab structures
etc wrote #326990:
All tags-processing functions are in
txplib_publish.phpwhich had never been included on the admin side AFAIR. This said, you can try toinclude_onceit 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
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
Online