Two new Habari powered sites

74 views
Skip to first unread message

Dave Perry

unread,
Jan 3, 2012, 7:31:09 PM1/3/12
to habari-users
Up and running on Habari 8.0 using multi-site installation.

http://giantscreamingrobotmonkeys.com

and

http://monkeyjam.org

cheers,
Dave

Michael C. Harris

unread,
Jan 3, 2012, 8:31:08 PM1/3/12
to habari...@googlegroups.com
Nice work! Did you have any issues with multisite setup or its documentation?

--
Michael C. Harris
http://twofishcreative.com/michael/blog
IRC: michaeltwofish #habari

rick c

unread,
Jan 4, 2012, 1:31:13 PM1/4/12
to habari-users
NIce themes!

Rick

On Jan 3, 7:31 pm, Dave Perry <d...@giantscreamingrobotmonkeys.com>
wrote:

Dave Perry

unread,
Jan 4, 2012, 2:15:43 PM1/4/12
to habari-users

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.

Owen Winkler

unread,
Jan 4, 2012, 3:33:08 PM1/4/12
to habari...@googlegroups.com
On 1/4/2012 2:15 PM, Dave Perry wrote:
> 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.

Owen

Dave Perry

unread,
Jan 4, 2012, 3:54:02 PM1/4/12
to habari-users


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.

Dave

Colin

unread,
Jan 5, 2012, 2:13:19 AM1/5/12
to habari...@googlegroups.com

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.

--
To post to this group, send email to habari...@googlegroups.com
To unsubscribe from this group, send email to habari-users...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/habari-users

Colin

unread,
Jan 5, 2012, 2:17:45 AM1/5/12
to habari...@googlegroups.com

Ignore me, just seen Own asked the same thing in another thread.

Reply all
Reply to author
Forward
0 new messages