This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Gerhard Lazu (author)
Thu May 01 08:51:44 -0700 2008
| name | age | message | |
|---|---|---|---|
| |
.gitmodules | Thu Apr 10 08:01:31 -0700 2008 | [Gerhard Lazu] |
| |
README.txt | Fri Apr 11 07:50:22 -0700 2008 | [Gerhard Lazu] |
| |
TODO.txt | Thu May 01 08:51:44 -0700 2008 | [Gerhard Lazu] |
| |
glz_multi_site-0.1.gz.txt | Fri Apr 11 07:50:22 -0700 2008 | [Gerhard Lazu] |
| |
glz_multi_site.php | Fri Apr 11 07:50:22 -0700 2008 | [Gerhard Lazu] |
| |
glz_multi_site_raw.php | Fri Apr 11 07:50:22 -0700 2008 | [Gerhard Lazu] |
README.txt
glz_multi_site, share articles (for now) across multiple TXP websites. Requires glz_custom_fields (http://forum.textpattern.com/viewtopic.php?id=23996). == REQUIREMENTS == * minimum TXP 4 (TXP 4.0.6 recommended) * without glz_custom_fields you will have trouble... == USAGE == This plugin works behind the scenes, it only needs to be configured initially, it takes care of itself afterwards. The configuration happens in textpattern/config.php. Sample configuration file: == $txpcfg['db'] = 'database'; $txpcfg['user'] = 'user'; $txpcfg['pass'] = 'pass'; $txpcfg['host'] = 'localhost'; $txpcfg['table_prefix'] = ''; $txpcfg['txpath'] = dirname(__FILE__); $txpcfg['dbcharset'] = 'utf8'; ## REMOTE WEBSITE 1 ## $txpcfg['remote.website1.url']['db'] = "remote_website1_db"; //<- when posting articles, remote.website1.url will be the string that you'll in the list of locations. This MUST be the same to that site's $siteurl. $txpcfg['remote.website1.url']['user'] = "remote_website1_user"; $txpcfg['remote.website1.url']['pass'] = "remote_website1_pass"; $txpcfg['remote.website1.url']['host'] = 'remote.website1.url'; $txpcfg['remote.website1.url']['table_prefix'] = ''; ## REMOTE WEBSITE 2 ## $txpcfg['remote.website2.url']['db'] = "remote_website2_db"; //<- when posting articles, remote.website1.url will be the string that you'll in the list of locations. This MUST be the same to that site's $siteurl. $txpcfg['remote.website2.url']['user'] = "remote_website2_user"; $txpcfg['remote.website2.url']['pass'] = "remote_website2_pass"; $txpcfg['remote.website2.url']['host'] = 'remote.website2.url'; $txpcfg['remote.website2.url']['table_prefix'] = ''; // Getting the sitepath out of our txpath $arr_current_dir = split("/",$txpcfg['txpath']); array_pop($arr_current_dir); $txpcfg['sitepath'] = join("/", $arr_current_dir); == == ROADMAP == Next step is to give this plugin a dual role: * Master - responsible for maintaining all articles for all websites. Pushes articles to all locations. * Slave - updates articles locally as well as the master. Doesn't know about other slaves. We'll most probably need to release this alongside an API for this. TXP does come with an RPC class, but it's mostly specific to MovableType, MetaBlog & Blogger. It is a starting point, but by a very very long shot. == IMPROVEMENTS == If you want to improve on this plugin, by all means, fork it and make it yours :). This plugin has been originally posted on Github (http://github.com/gerhard/glz_title/tree/master). Git (http://git.or.cz) is a lovely little thing.




