Thanks guys. Michael, multi-site was pretty smooth. I'm on a vps with
cpanel. Just set up the directory under user/sites and created an add-
on domain in cpanel and pointed it to the root (public_html).
Just a couple of things that came up:
1. if you name your secondary site directory in the 'sites' folder
something like 'www.monkeyjam.org' then a url request for
'monkeyjam.org' does not resolve as you might expect it to. It goes to
the main site. So if you want 'www.monkeyjam.org' and 'monkeyjam.org'
to resolve to the same secondary site then you need to name your multi-
site folder 'monkeyjam.org'.
2. Need to watch your plugins. Not all will work correctly with a
secondary site when installed in the user/plugins folder. You may need
to install in the secondary site 'plugins' folder also. Note when
doing this, you need to deactivate the plugin for the secondary site
first before copying the plugin. If the plugin is left active, once
you copy the plugin to the secondary site's plugin folder you get an
error when trying to activate or deactivate the plugin on the
secondary site. Then you need to delete the copied plugin, deactivate
it, copy it again and then activate it. Makes total sense why this
happens but it's easy to forget to deactivate the non-working plugin
first before copying so I'd imagine that this would crop up fairly
often.
ps Didn't say this before but I loooooove Habari.
pps Want more hooks in Habarisilo. Had to add a couple so that I could
modify it with a plugin.
> Want more hooks in Habarisilo. Had to add a couple so that I could > modify it with a plugin.
What hooks did you add? (do you have a pull request?)
HabariSilo was meant only as a simple silo for file access. A more complicated one was never written, though. I wonder if your additions might lead to some more detailed inspection of the silo system, especially for creating something like a AWS S3 silo.
On Jan 4, 12:33 pm, Owen Winkler <epit...@gmail.com> wrote:
> What hooks did you add? (do you have a pull request?)
I wanted more options for storing and inserting images into posts and
wanted to make a plugin to do that..
in habarisilo.plugin.php I added:
in function silo_get
<code>$props = Plugins::filter('habarisilo_media_props',$props);</
code>
right before
<code> $asset = new MediaAsset( self::SILO_NAME . '/' . $path,
false, $props );</code>
so that I could add some javascript accessible props to work with js
code added to the admin stack by the plugin. Basically creates
additional "code insert" options for the media assets in the silo
display.
in function silo_put
<code>Plugins::act('habarisilo_upload_after',$this,$file);</code>
right after
<code> $this->create_thumbnail( $file );</code>
so that the plugin could be configured to store thumbnails of specific
sizes and image types in addition to the default habarisilo
thumbnails.
Thanks for letting plugins in user/plugins override those in the
system folder.
Added more hooks to the Silo? Please share your changes and other suggested hooks (you can do this here or via github) and we can see about getting them added to the plugin. On Jan 4, 2012 7:15 PM, "Dave Perry" <d...@giantscreamingrobotmonkeys.com> wrote:
> Thanks guys. Michael, multi-site was pretty smooth. I'm on a vps with > cpanel. Just set up the directory under user/sites and created an add- > on domain in cpanel and pointed it to the root (public_html).
> Just a couple of things that came up: > 1. if you name your secondary site directory in the 'sites' folder > something like 'www.monkeyjam.org' then a url request for > 'monkeyjam.org' does not resolve as you might expect it to. It goes to > the main site. So if you want 'www.monkeyjam.org' and 'monkeyjam.org' > to resolve to the same secondary site then you need to name your multi- > site folder 'monkeyjam.org'.
> 2. Need to watch your plugins. Not all will work correctly with a > secondary site when installed in the user/plugins folder. You may need > to install in the secondary site 'plugins' folder also. Note when > doing this, you need to deactivate the plugin for the secondary site > first before copying the plugin. If the plugin is left active, once > you copy the plugin to the secondary site's plugin folder you get an > error when trying to activate or deactivate the plugin on the > secondary site. Then you need to delete the copied plugin, deactivate > it, copy it again and then activate it. Makes total sense why this > happens but it's easy to forget to deactivate the non-working plugin > first before copying so I'd imagine that this would crop up fairly > often.
> ps Didn't say this before but I loooooove Habari. > pps Want more hooks in Habarisilo. Had to add a couple so that I could > modify it with a plugin.
> -- > To post to this group, send email to habari-users@googlegroups.com > To unsubscribe from this group, send email to > habari-users-unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/habari-users
> Added more hooks to the Silo? Please share your changes and other > suggested hooks (you can do this here or via github) and we can see about > getting them added to the plugin. > On Jan 4, 2012 7:15 PM, "Dave Perry" <d...@giantscreamingrobotmonkeys.com> > wrote:
>> Thanks guys. Michael, multi-site was pretty smooth. I'm on a vps with >> cpanel. Just set up the directory under user/sites and created an add- >> on domain in cpanel and pointed it to the root (public_html).
>> Just a couple of things that came up: >> 1. if you name your secondary site directory in the 'sites' folder >> something like 'www.monkeyjam.org' then a url request for >> 'monkeyjam.org' does not resolve as you might expect it to. It goes to >> the main site. So if you want 'www.monkeyjam.org' and 'monkeyjam.org' >> to resolve to the same secondary site then you need to name your multi- >> site folder 'monkeyjam.org'.
>> 2. Need to watch your plugins. Not all will work correctly with a >> secondary site when installed in the user/plugins folder. You may need >> to install in the secondary site 'plugins' folder also. Note when >> doing this, you need to deactivate the plugin for the secondary site >> first before copying the plugin. If the plugin is left active, once >> you copy the plugin to the secondary site's plugin folder you get an >> error when trying to activate or deactivate the plugin on the >> secondary site. Then you need to delete the copied plugin, deactivate >> it, copy it again and then activate it. Makes total sense why this >> happens but it's easy to forget to deactivate the non-working plugin >> first before copying so I'd imagine that this would crop up fairly >> often.
>> ps Didn't say this before but I loooooove Habari. >> pps Want more hooks in Habarisilo. Had to add a couple so that I could >> modify it with a plugin.
>> -- >> To post to this group, send email to habari-users@googlegroups.com >> To unsubscribe from this group, send email to >> habari-users-unsubscribe@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/habari-users