Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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.
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
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.
Txp Builders – finely-crafted code, design and Txp
Offline
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.
Txp Builders – finely-crafted code, design and Txp
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 ?
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.php
which had never been included on the admin side AFAIR. This said, you can try toinclude_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
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
#46 Today 01:35:09
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.
Online
#47 Today 08:32:43
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 Today 10:41:24
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.
Txp Builders – finely-crafted code, design and Txp
Offline