Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2010-06-09 06:30:24
- tom1
- Member
- Registered: 2009-03-20
- Posts: 36
automate plugin installation and activation on new txp install setup.
I tried to browse thru forums, but found nothing on this. I haven’t got so familiar with txp structure and coding that i could solve this without losing my nerves, so wanted to ask if somebody has ready solution.
I have few plugins i use basicly on every single installation (mlp, smd_gallery etc ‘essentials’), and had idea of getting them installed automaticly as txp makes databases and such. Ofcourse i can add files to dir, but i would like to get rid of manual installation of plugins.
Offline
#2 2010-06-09 06:49:03
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: automate plugin installation and activation on new txp install setup.
If you’re familiar with managing the MySQL database, the quickest method is to import the DB from an existing install, that contains all your plugins.
We discussed that in detail here. Note that you only need to import the plugins table from the DB; see the follow-up comments in that thread.
Offline
Re: automate plugin installation and activation on new txp install setup.
Alternatively you can set up the Plugins directory in your Advanced Prefs. Then, install a copy of ied_plugin_composer in your current site and use the tools there to Save the plugins you always use as PHP files. You can then drop those resulting files into your nominated plugin directory and upload them via FTP each time you do an installation.
The downside (sort of) to this approach is that the plugins cannot be “turned off” (they’re not in the database) and they are always loaded — before all other plugins. So you cannot employ this trick with plugins such as rvm_maintenance, for example :-) They are also loaded in alphabetical order so if you need to alter the load order you have to rename the files.
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: automate plugin installation and activation on new txp install setup.
Or you could install Txp, install the plugins you want, then install mem_templates and use it to export the whole set-up to a folder. Once that is done you can use the folder for you new installs which will import and activate all your plugins.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: automate plugin installation and activation on new txp install setup.
A couple of problems with trying to take shortcuts with adding your plugins …
1. The plugin may have been updated and you don’t have the latest version …
2. The plugin may add a column or create a table in the txp dB for itself.
Unless a few people get together and do something at textpattern.org to create a download plugins check box list.
Plus it would need a plugin built in to txp to handle the upload of your selected plugins … there is no easy solution to this problem.
Also plugin owners/writers would have to agree to their plugins being downloaded in this way.
I’m sure many enjoy getting the traffic on their personal websites, so the “One Plugin To Rule Them All” scenario I describe may be a non-starter for this reason alone.
It would be a fantastic boost for making Textpattern easier to use/set up, if the right people could get together on this.
Imagine an “Add a Plugin” button in Txp Admin … check a box from the list … hit upload … bingo!
Back to reality …
The way I add plugins for what it’s worth is …. I’ve created a TXP Plugins bookmark folder in my browser.
I have all the sites which I need to visit for my favourite plugins bookmarked, and I upload them individually .. the boring, tedious way.
Not that clever but it saves quite a bit of time searching textpattern.org and these forums to find the plugins.
Last edited by geoff777 (2010-06-12 10:35:22)
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline