![]() |
| ||||||||
|
|||||||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
Warrior Member
War Room Member
Join Date: Oct 2008
Posts: 22
Thanks: 44
Thanked 7 Times in 4 Posts
|
Is it possible to create a WP theme that includes certain plugins already in the theme, just like Akismet and Hello Dolly are automatically included in the WP default theme?
If it is possible, is it easy enough for a super novice PHP programmer to do? Thanks. |
|
|
|
|
|
#2 |
|
Senior Warrior Member
War Room Member
Join Date: Sep 2008
Location: Honolulu, Hawaii, USA (Currently cooling down in Montreal Canada)
Posts: 1,185
Blog Entries: 1
Thanks: 211
Thanked 343 Times in 236 Posts
|
Hi Kristen
Plugins and Themes reside in independent directories and perform different functions in WordPress. The Akismet and Hello Dolly plugins are included with the base WordPress installation, not with the default theme - these plugins are available to use with any theme the user selects. You could bundle some plugins with your theme and offer them as a package, however you would need to install and activate them independently. If you want to learn how to program Themes and Plugins the best place to start is here: Developer Documentation WordPress Codex Bill |
|
|
|
|
|
#3 |
|
Warrior Member
War Room Member
Join Date: Oct 2008
Posts: 22
Thanks: 44
Thanked 7 Times in 4 Posts
|
Thanks Bill,
I guess what I'm really after is the ability to create a plugin that has a bunch of other plugins "in it" that automatically install, and activate. Does that make sense? Does auto install and activation go against the WP norm? Would it be Kosher to do something like that? Also, thanks for the How To resource. I will check it out today. |
|
|
|
|
|
#4 |
|
Senior Warrior Member
War Room Member
Join Date: Sep 2008
Location: Honolulu, Hawaii, USA (Currently cooling down in Montreal Canada)
Posts: 1,185
Blog Entries: 1
Thanks: 211
Thanked 343 Times in 236 Posts
|
Hi Kristen
Are you planning to create a multi-function Plugin that emulates the function of other popular plugins - i.e. a "Swiss Army Knife" of Plugins? That's a challenge but certainly doable, although perhaps you should start with a few simpler ones before building "the mother of all Plugins"! If instead you want to make a "super-plugin" that encompasses other common plugins and also installs and activates them - well that's not going to be an easy task. I'm sure you could automate the upload and installation part, but self-activating may not be that easy without modifying the WordPress core files or database. Self-activating does kind of go against the grain when it comes to WordPress, at least in my opinion. It's not unheard of for a plugin to cause a problem with a theme or a new release of WordPress, or for a poorly designed plugin to conflict with another one. Because of this it is necessary to be able to deactivate plugins and reinstall them easily. A few more links: http://www.devlounge.net/publik/Devl...s%20Plugin.pdf A 43-page PDF about building plugins How to create WordPress Plugin from a scratch Another guide to writing plugins. Bill |
|
|
|
|
|
#5 |
|
HyperActive Warrior
War Room Member
Join Date: Jul 2009
Posts: 142
Thanks: 28
Thanked 13 Times in 10 Posts
|
I think the OP just wants some way to automate having all of the plugins already installed, instead of having to go to the wp-admin screen, select Plugins->add new and manually add and activate each one. Its a nice idea, because some of the plugins become so standard that its tedious to have to install, say, Google Xsitemap each time you start a new domain.
Unfortunately, I don't know how to do it but there must be some way. |
|
|
|
|
|
#6 | ||||
|
Senior Warrior Member
War Room Member
Join Date: Sep 2008
Location: Honolulu, Hawaii, USA (Currently cooling down in Montreal Canada)
Posts: 1,185
Blog Entries: 1
Thanks: 211
Thanked 343 Times in 236 Posts
|
Quote:
Quote:
Quote:
Quote:
You could bundle up WordPress, your theme(s) and Plugins., activate everything and then save the database and ZIP all the files. Then you could run an install that expands the files, creates a MySQL database on your server and pumps all the relevant information into the config file. "WordPress in a box" so to speak! A custom Fantastico or similar scripted installation could also be a possibility. Bill | ||||
|
|
|
|
|
#7 | |
|
Warrior Member
War Room Member
Join Date: Oct 2008
Posts: 22
Thanks: 44
Thanked 7 Times in 4 Posts
|
Actually, jayveen hit the mail on the head. I am setting up a bunch of niche sites that all use a bunch of the same plugin. I would love to automate the creation of these sites. Adding all the plugins and then bulk activating them should be automated.
Somehow maybe there is a first plugin that is manually installed and has a list of all the plugins to be added and bulk activated. Then you pull the trigger and POW, the list of plugins get installed and activated. A simple alternative I thought of is to just create a vanilla version of the site that has all the plugins but no content and then use that site to copy to a new site. I'm not that familiar with copying a WP site. Does it also copy the plugins? Quote:
| |
|
|
|
|
|
#8 |
|
Senior Warrior Member
War Room Member
Join Date: Sep 2008
Location: Honolulu, Hawaii, USA (Currently cooling down in Montreal Canada)
Posts: 1,185
Blog Entries: 1
Thanks: 211
Thanked 343 Times in 236 Posts
|
Guess I can't be right all of the time!
Kristen, I keep a set of standard themes and plugins that I FTP up to my site for every WordPress installation, this isn't as automated as I think you want but it's really easy to setup and maintain. If you want to go "all the way" you'll need to perform a standard WP installation on your test server with all your favorite plugins and themes. Activate and configure them as required. Then FTP the entire site back to your local hard disk. You could use 7 ZIP or the equivalent Windows or Mac utility to create a ZIP file of the whole thing, or just leave it expanded. Now use phpMyAdmin or the equivalent (if your test server is a local LINUX workstation you could use the MySQL GUI Tools) to make a full database backup. make sure you note the user name and password as you're "cloning" that as well. Next time you want to make a WP site FTP the entire file set up to the site. Create a database, if possible keep the name the same as the old one (that isn't really mandatory). There are a few configuration file you will need to edit, these articles will steer you to the right place: Moving WordPress WordPress Codex How to Move WordPress Blog to New Domain or Location My Digital Life To REALLY automate this you could write an install script that copied and expanded the files, created the database and edited the configuration files. Not sure if you want to go to that extreme though! Bill |
|
|
|
|
|
#9 |
|
Small Business Advocate
War Room Member
Join Date: Jun 2008
Location: Houston, Texas, USA.
Posts: 103
Thanks: 13
Thanked 18 Times in 13 Posts
|
Why not just go with Wordpress MU?
Then you only have to install and update the plugin on one installation. I have seen a few themes that code the plugins in the function file, but then you run into issues when updating. |
|
|
|
|
|
#10 | |
|
Warrior Member
War Room Member
Join Date: Oct 2008
Posts: 22
Thanks: 44
Thanked 7 Times in 4 Posts
|
Quote:
WPMU can work in two different URL configurations. One is sub-domain based: joe.mydomain.com, steve.mydomain.com, etc. The other is sub-directory based: blogs.mydomain.com/steve, blogs.mydomain.com/joe. You have to decide what configuration to use when you install WPMU. I need distinct domain names since these are sites for commercial use (ta make me $.) mywebwork, Maybe I don't fully understand, but it sounds like it might take longer to do all the FTPing and creating the db than it does for me to manually create a new site and add the plugins. Did I miss something? Thanks to you both. | |
|
|
|
|
|
#11 |
|
Small Business Advocate
War Room Member
Join Date: Jun 2008
Location: Houston, Texas, USA.
Posts: 103
Thanks: 13
Thanked 18 Times in 13 Posts
|
No, you can use multiple domains each with their own site with WPMU.
There is also the subdomain feature, but I've actually never used it that way myself. |
|
|
|
|
|
#12 |
|
Warrior Member
War Room Member
Join Date: Oct 2008
Posts: 22
Thanks: 44
Thanked 7 Times in 4 Posts
|
Oh wow. That sounds great then.
So I am just setting up sites on addon domains so could I set up wpMu on my main domain and then use it to set the other sites? That would be awsome. Are there plugins specific to wpMu? Because I'm also interested in being able to monitor all those sites from a single panel. Thanks a ton. |
|
|
|
|
|
#13 |
|
Small Business Advocate
War Room Member
Join Date: Jun 2008
Location: Houston, Texas, USA.
Posts: 103
Thanks: 13
Thanked 18 Times in 13 Posts
|
Kristen,
Yes, adding a new site is super easy. The additional domain management used to be a little more tricky, but WPMU has come a long way in the past year in that regard. All I do is:
I've read that some plugins aren't compatible with WPMU, but I haven't run into that issue myself. I have about 40 plugins installed. I don't use all of them on every site as some sites have unique features. The only glitches that I've run into with the current version is that the option to change the site admin email doesn't work (the confirmation email doesn't get sent out,) so I just change it in the database with phpadmin. Also, the most recent versions of WPMU and WP-Postratings have an issue. The ratings don't register. I'm trying to figure out what the issue is right now. |
|
|
|
![]() |
|
| Tags |
| bundle, plugins, theme |
| Thread Tools | |
|
|
![]() |