Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2010-10-24 21:01:48
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Imports
All
quick admin interface cleanup idea…
Could the Admin > Import
tab please be hidden if not needed? I’ve never needed to migrate anyone over to Txp from another platform yet — though the day may come. So most of the time there’s a tab, a file (textpattern/include/txp_import.php) a sub-dir (textpattern/include/import) and its contents that are totally unneeded by my sites. Even better — I’d like to be able to flip a ‘Enable XML-RPC Server’ type preference to ‘off’ and then delete the aforementioned directory & files without anything being flagged up in the diagnostics page.
Would this be useful to other Txp users?
— Steve
Offline
Re: Imports
As far as the “Enable XML-RPC server?” preference is concerned Steve, there already is one on the “Advanced” page and if my memory serves me correctly, if it is set to “off” you can delete the directory. I seem to recall that being sorted some time back. I’ll see if I can find it.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2010-10-24 22:17:38
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: Imports
Hi Stuart,
As far as the “Enable XML-RPC server?” preference is concerned Steve, there already is one on the “Advanced” page and if my memory serves me correctly, if it is set to “off” you can delete the directory. I seem to recall that being sorted some time back. I’ll see if I can find it.
Yes, I know, I was just using that as an example. I’m really asking for a pref that’s similar to that one so that I can totally remove the ‘import’ related files and not have Txp complain about it but just stop showing the import tab under the admin interface.
— Steve
Offline
Re: Imports
I promise I won’t say another word Steve. ;)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#5 2010-10-24 22:26:52
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: Imports
Humbug :)
If it is a useful idea do say so.
— Steve
Offline
Re: Imports
Being more clueless than not on coding, could the import function be handled as an officially maintained plugin that is installed by default but then you just have to delete it?
Offline
Re: Imports
Well you wouldn’t have to delete it per se, just switch it off, a little bit like rvm_maintenance or mem_templates for example. Plus the “Import” tab could move to the “Extensions” tab.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Imports
good point – it would give the choice of turning it on or off. And the idea of being able to move it to the extension tab is a good thought as well.
Offline
#9 2010-10-25 10:33:10
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: Imports
I think it would generally be more useful as a post-install ‘opt-out’ rather than an ‘opt-in’ via plugin installation. If someone wants to migrate from, say, Wordpress then should we make them go through the totally unfamiliar ground of plugin acquisition, installation and enabling in order to import? I’d have thought that it’s easier just to have a core option that experienced installers can just uncheck on the prefs page before they remove un-needed files.
Perhaps having the ‘Allow Imports’ option unchecked by default on fresh installs would be a good middle-ground. Folks importing from other blogs would only have to go to the Admin > Prefs
page and change one setting then.
— Steve
Offline
Re: Imports
net-carver wrote:
I think it would generally be more useful as a post-install ‘opt-out’ rather than an ‘opt-in’ via plugin installation. If someone wants to migrate from, say, Wordpress then should we make them go through the totally unfamiliar ground of plugin acquisition, installation and enabling in order to import? I’d have thought that it’s easier just to have a core option that experienced installers can just uncheck on the prefs page before they remove un-needed files.
Perhaps having the ‘Allow Imports’ option unchecked by default on fresh installs would be a good middle-ground. Folks importing from other blogs would only have to go to the
Admin > Prefs
page and change one setting then.
Those 2 paragraphs are a bit of a contradiction, isn’t it? If you want to be ‘txp-newbie’ friendly, have the pref checked ‘on’ by default. And then make it easy to turn the option off. I don’t think the idea of a separate plugin is any good at all.
(I don’t have any firm opinion on the need to turn it of or not. That particular tab is not in my way, and I’ve only used it twice I think. Once for a wp import, once for importing – eh, I forgot the name of that thing that was popular early on in the blogging wave, the sixapart blog thing.)
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
#11 2010-10-25 12:32:43
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: Imports
phiw13 wrote:
Those 2 paragraphs are a bit of a contradiction, isn’t it? If you want to be ‘txp-newbie’ friendly, have the pref checked ‘on’ by default. And then make it easy to turn the option off.
Probably — as I usually do, I was developing my thoughts in type. :) Paragraph two was, as it said, suggesting a possible middle ground. Having the option ‘on’ by default is my preferred solution.
I don’t think the idea of a separate plugin is any good at all.
+1
(I don’t have any firm opinion on the need to turn it of or not. That particular tab is not in my way, and I’ve only used it twice I think. Once for a wp import, once for importing – eh, I forgot the name of that thing that was popular early on in the blogging wave, the sixapart blog thing.)
Right — it’s used so infrequently that I would like to be able to remove it from the UI + installs rather than having to tell folks to ignore it. I could hide it in the admin interface with CSS I guess but I’d like to remove the unused code from my installs too without missing files warnings coming up.
— Steve
Offline
#12 2010-10-25 13:55:42
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: Imports
Hi Steve,
this won’t solve the “unused code” issue, anyway you can get rid of the tab modifiyng admin_config.php (or using bot_privs)
Offline